Cisco routers are one of the most common types of routers. For many management systems, we should be familiar with such vro settings. Today, we will mainly explain the simple code for Cisco router dhcp configuration.
Cisco router DHCP configuration process
Cisco3825 (config) # ip dhcp pool root
Cisco3825 (dhcp-config) # network 192.168.100.1 255.255.255.0
Cisco3825 (config) # ip dhcp excluded-address 192.168.100.80 192.168.100.100
Cisco3825 (config) # ip dhcp excluded-address 192.168.100.1
Cisco3825 (dhcp-config) # domain-name domain.com
Cisco3825 (dhcp-config) # default-router 192.168.100.1
Cisco3825 (dhcp-config) # dns-server 192.168.100.200
Cisco3825 (dhcp-config) # netbios-node-type h-node
Cisco3825 (dhcp-config) # lease 30
Sho run ..
!
No ip dhcp use vrf connected
Ip dhcp excluded-address 192.168.100.80 192.168.100.100
Ip dhcp excluded-address 192.168.100.1
Ip dhcp excluded-address 192.168.100.200
!
Ip dhcp pool root
Network 192.168.100.0 255.255.255.0
Domain-name domain.com
Dns-server 192.168.100.200
Netbios-name-server 192.168.100.201
Netbios-node-type h-node
Default-router 192.168.100.1
Lease 30
!
!
The above is the code for all Cisco router DHCP configurations.