To configure DHCP server
Command |
Purpose |
Device(config)# service dhcp |
Enables the DHCP server and relay agent on your switch. |
Device(config)# ip dhcp excluded-address low-address [high-address] |
Specifies IP addresses that the DHCP server should not assign to DHCP clients. |
Device(config)# ip dhcp pool 1 |
Creates a name for the DHCP server address pool and enters DHCP pool configuration mode. |
Device(dhcp-config)# network 172.20.0.0 /24 |
Specifies the subnet network number and mask of the DHCP address pool. |
Device(dhcp-config)# dns server 8.8.4.4 8.8.8.8 |
Specifies the IP address of a DNS server that is available to a DHCP client. |
Device(dhcp-config)# default-router 172.16.20.0.1 |
Specifies the IP address of the default device for a DHCP client. |
Comments
Related