Create DHCP Server on 6wind Router

State and enable DHCP server configuration.

vsr running config# vrf main dhcp server
vsr running server# enabled true

Define subnet and interface gateway on dhcp server. eg: gateway on interface eth1 with IP 192.168.10.1/24

vsr running config# vrf main interface physical eth1 ipv4 address 192.168.10.1/24
vsr running config# vrf main dhcp server
vsr running server# subnet 192.168.10.0/24
vsr running subnet 192.168.10.0/24# interface eth1 
vsr running subnet 192.168.10.0/24# default-gateway 192.168.10.1

Set default network address lease time assigned to DHCP clients for this subnet (in seconds, at least 180s).

vsr running server# subnet 192.168.10.0/24
vsr running subnet 192.168.10.0/24# default-lease-time 180

Set maximum network address lease time assigned to DHCP clients for this subnet (in seconds, at least 180s or the default-lease value)

vsr running server# subnet 192.168.10.0/24
vsr running subnet 192.168.10.0/24# max-lease-time 300

Set IP pool for dhcp client. eg: range 192.168.10.2 until 192.168.10.10

vsr running server# subnet 192.168.10.0/24
vsr running subnet 192.168.10.0/24# range 192.168.10.2 192.168.10.10

for verification if there is dhcp client that connected to dhcp client use this command

vsr running config# show dhcp-server
IP Address     MAC Address       Lease Start         Lease End           State
==========     ===========       ===========         =========           =====
192.168.10.10 00:0c:29:e3:9f:f1  2023/12/28 07:09:15 2023/12/28 19:09:15 active

Optional, this command to mapping from static MAC address to IP address. It need to define hostname, mac address, and IP address.

vsr running server# subnet 192.168.10.0/24
vsr running subnet 192.168.10.0/24# host hostname 00:0c:29:e3:9f:f1 192.168.10.10

Leave a Reply

Your email address will not be published. Required fields are marked *