ip dhcp excluded-address 192.168.1.1 192.168.1.99 # 这个范围内的IP地址不分配 ip dhcp excluded-address 192.168.1.201 192.168.1.254 ip dhcp pool cisco network 192.168.1.0 255.255.255.0 default-router 192.168.1.6 dns-server 36.36.36.3 R6#sh ip dhcp binding Bindings from all pools not associated with VRF: IP address Client-ID/ Lease expiration Type Hardware address/ User name 192.168.1.100 0063.6973.636f.2d61. Dec 26 1990 11:20 PM Automatic 6162.622e.6363.3030. 2e30.3430.302d.4574. 302f.30 192.168.1.101 0063.6973.636f.2d61. Dec 26 1990 11:26 PM Automatic 6162.622e.6363.3030. 2e30.3530.302d.4574. 302f.30
R1 interface Ethernet0/0 ip address 192.168.14.1 255.255.255.0 ip helper-address 192.168.12.2 ip ospf 1 area 0
interface Ethernet0/1 ip address 192.168.12.1 255.255.255.0 ip ospf 1 area 0 ============================== R2 ip dhcp pool 14 network 192.168.14.0 255.255.255.0 default-router 192.168.14.1
ip dhcp pool 35 network 192.168.35.0 255.255.255.0 default-router 192.168.35.3
interface Loopback0 ip address 2.2.2.2 255.255.255.0 ip ospf 1 area 0
interface Ethernet0/0 ip address 192.168.12.2 255.255.255.0 ip ospf 1 area 0
interface Ethernet0/1 ip address 192.168.23.2 255.255.255.0 ip ospf 1 area 0 ============================== R3 interface Ethernet0/0 ip address 192.168.23.3 255.255.255.0 ip ospf 1 area 0
interface Ethernet0/1 ip address 192.168.35.3 255.255.255.0 ip helper-address 2.2.2.2 ip ospf 1 area 0 ============================== R4 interface Ethernet0/0 ip address dhcp ============================== R5 interface Ethernet0/0 ip address dhcp