左边是接口地址池的配置

设置R1g0/0/0IP192.168.1.254/24

sy

sy R1

dhcp enable

int g0/0/0

ip add 192.168.1.254 255.255.255.0

dhcp select interface

dhcp server dns-list 8.8.8.8

dhcp server lease day 3

PC1PC2地址获取方式改为DHCP

 右边配置全局地址池加中继配置

R1:

sy

dhcp enable 

int g0/0/1

ip add 192.168.30.2 255.255.255.0

dhcp select global 

qu

ip pool vlan10

gateway-list 192.168.10.254

network 192.168.10.0 mask 24

ip pool vlan20

gateway-list 192.168.20.254

network 192.168.20.0 mask 24

ip route-static 192.168.0.0 255.255.0.0 192.168.30.1

SW2:

sy

vlan batch 10 20 30

dhcp enable

int g0/0/3

p l a

p d v 30

int vlan30

ip add 192.168.30.1 255.255.255.0

int g0/0/1

p l a

p d v 10

int vlan10

ip add 192.168.10.254 255.255.255.0

dhcp select relay

dhcp relay server-ip 192.168.30.2

int g0/0/2

p l a

p d v 20

int vlan20

ip add 192.168.20.254 255.255.255.0

dhcp select relay

dhcp relay server-ip 192.168.30.2

qu

 

posted on 2020-10-23 14:08  求知的王某某  阅读(3431)  评论(0编辑  收藏  举报