问题描述:
我们使用的相关命令如下:
int vlan1
ip add 192.168.0.1 255.255.255.0
quit
int g0/0/1
port link-type trunk
port trunk allow-pass vlan all
quit
ip route-static 0.0.0.0 0.0.0.0 192.168.0.253
dhcp enable
vlan 2
port g0/0/2
quit
int vlan2
ip add 192.168.2.1 255.255.255.0
quit
ip pool vlan2
network 192.168.2.2 mask 255.255.255.0
gateway 192.168.2.1
dns 61.139.2.69
quit
int vlan2
dhcp select global
quit
vlan 3
port g0/0/3
quit
int vlan3
ip add 192.168.3.1 255.255.255.0
quit
ip pool vlan3
network 192.168.3.2 mask 255.255.255.0
gateway 192.168.3.1
dns 61.139.2.69
quit
int vlan3
dhcp select global
quit
vlan 4
port g0/0/4
quit
int vlan4
ip add 192.168.4.1 255.255.255.0
quit
ip pool vlan4
network 192.168.4.2 mask 255.255.255.0
gateway 192.168.4.1
dns 61.139.2.69
quit
int vlan4
dhcp select global
quit
vlan 5
port g0/0/5
quit
int vlan5
ip add 192.168.5.1 255.255.255.0
quit
ip pool vlan5
network 192.168.5.2 mask 255.255.255.0
gateway 192.168.5.1
dns 61.139.2.69
quit
int vlan5
dhcp select global
quit
vlan 6
port g0/0/6
quit
int vlan6
ip add 192.168.6.1 255.255.255.0
quit
ip pool vlan6
network 192.168.6.2 mask 255.255.255.0
gateway 192.168.6.1
dns 61.139.2.69
quit
int vlan6
dhcp select global
quit
vlan 7
port g0/0/7
quit
int vlan7
ip add 192.168.7.1 255.255.255.0
quit
ip pool vlan7
network 192.168.7.2 mask 255.255.255.0
gateway 192.168.7.1
dns 61.139.2.69
quit
int vlan7
dhcp select global
quit
vlan 8
port g0/0/8
quit
int vlan8
ip add 192.168.8.1 255.255.255.0
quit
ip pool vlan8
network 192.168.8.2 mask 255.255.255.0
gateway 192.168.8.1
dns 61.139.2.69
quit
int vlan8
dhcp select global
quit
vlan 9
port g0/0/9
quit
int vlan9
ip add 192.168.9.1 255.255.255.0
quit
ip pool vlan9
network 192.168.9.2 mask 255.255.255.0
gateway 192.168.9.1
dns 61.139.2.69
quit
int vlan9
dhcp select global
quit
原因找到了,是后四个vlan的对应回程路由未设置造成的。谢谢zhiliao_Dy7。