要求及分析
1.全网可达
2.PC通过DHCP获取地址
路由器配置
DHCP全局地址池分配
[R1]dhcp enable
[R1]ip pool 111
Info: It's successful to create an IP address pool.
[R1-ip-pool-111]network 192.168.1.0 mask 24
[R1-ip-pool-111]gateway-list 192.168.1.254
[R1-ip-pool-111]dns-list 1.1.1.1
[R1-ip-pool-111]q
[R1]in g 0/0/0.1
[R1-GigabitEthernet0/0/0.1]dhcp select global
[R1-GigabitEthernet0/0/0.1]
[R1]ip pool 222
Info: It's successful to create an IP address pool.
[R1-ip-pool-222]network 192.168.2.0 mask 24
[R1-ip-pool-222]gate