思科路由器是我们比较常用的路由器品种之一。那么对于很多管理原来说,对于这种路由器的设置也应该比较熟悉。那么今天,我们主要讲解一下思科路由器dhcp配置的简单代码。
思科路由器DHCP配置过程
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
!
!
以上就是全部思科路由器DHCP配置的代码。