不同网段的DHCP实验

1、前面跟上个同网段DHCP实验差不多,在其基础上加一个路由

2、设置好Pc4的IP和掩码地址,网关

3、路由R1:

sysname r1

interface GigabitEthernet 0/0

ip address 192.186.1.254 24

quit

interface GigabitEthernet 0/1

ip address 192.168.100.254 24

interface GigabitEthernet 0/0

dhcp select relay

dhcp relay server-address 192.168.100.10

 

路由DHCPserver:

sysname dhcpserver

interface GigabitEthernet 0/0

ip address 192.168.100.10 24

ip route-static 0.0.0.0 0.0.0.0 192.168.100.254

dhcp enable

dhcp server ip-pool 1

network 192.168.1.0 mask 255.255.255.0

gateway-list 192.168.1.254

 

4、测试PC5是否能获取IP地址

 

posted @ 2019-05-24 21:29  有点狂  阅读(157)  评论(0编辑  收藏  举报