Chapter 15: DHCP Server with Port-Based IP Assignment
332
awplus(dhcp-config)# subnet-mask 255.255.255.0
Use the SUBNET-MASK
command to set the subnet mask
option to 255.255.255.0 for DHCP
pool P1.
awplus(dhcp-config)# default-router 192.168.1.2
Use the DEFAULT-ROUTER
command to add a default router
with an IP address of 192.168.1.2
to DHCP pool P1.
awplus(dhcp-config)# dns-server 192.168.1.1
Use the DNS-SERVER command
to add a DNS server with the
assigned IP address 192.168.1.1
to DHCP pool P1.
awplus(dhcp-config)# domain-name Branch-Office
Use the DOMAIN-NAME
command to add the domain
name Branch-Office to DHCP pool
P1.
awplus(dhcp-config)# exit
Return to Global Configuration
mode.
awplus(config)# interface port1.0.1
Enter Port Interface mode for port
1.
awplus(config-if)# dhcp-offer ip 192.168.1.100
Use the DHCP-OFFER IP
command to enable DHCP service
to assign IP address
192.168.1.100 on switch port
1.0.1.
awplus(config-if)# exit
Return to Global Configuration
mode.