
1.配置IP地址
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[R1-GigabitEthernet0/0/0]q
[R1]interface g0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.2.1 24
[R1-GigabitEthernet0/0/1]q
2.DHCP分配
[R1]dhcp enable
[R1]ip pool yy
[R1-ip-pool-yy]network 192.168.1.0 mask 255.255.255.0
[R1-ip-pool-yy]gateway-list 192.168.1.1
[R1-ip-pool-yy]dns-list 114.114.114.114
[R1-ip-pool-yy]q
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]dhcp select global
[R1-GigabitEthernet0/0/0]q
[R1]ip pool xx
[R1-ip-pool-xx]network 192.168.2.0 mask 255.255.255.0
[R1-ip-pool-xx]gateway-list 192.168.2.1
[R1-ip-pool-xx]dns-list 8.8.8.8
[R1-ip-pool-xx]q
[R1]interface g0/0/1
[R1-GigabitEthernet0/0/1]dhcp select global
[R1-GigabitEthernet0/0/1]Q
3.测试





363

被折叠的 条评论
为什么被折叠?



