三层交换机多Vlan情形下DHCP失效的原因是什么?
S1的详细配置:
en
config t
hostname S1
vlan 10
exit
vlan 20
exit
int range f0/1-5
switchport mode access
switchport access vlan 10
exit
int f0/10
switchport mode access
switchport access vlan 20
exit
int g0/1
switchport mode trunk
switchport trunk allowed vlan 10,20,30
end
write
S2的详细配置:
en
config t
hostname S2
vlan 30
exit
int f0/1
switchport mode access
switchport access vlan 30
exit
int g0/2
switchport mode trunk
switchport trunk allowed vlan 10,20,30
end
write
S3的详细配置:
en
config t
hostname S0
ip routing
vlan 10
exit
vlan 20
exit
vlan 30
exit
int vlan 10
ip add 192.168.10.254 255.255.255.0
no shu
exi
int vlan 20
ip add 192.168.20.254 255.255.255.0
no shu
exi
int vlan 30
ip add 192.168.30.254 255.255.255.0
no shu
exi
int g0/1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk alowed vlan 10,20,30
exi
int g0/2
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk alowed vlan 10,20,30
exi
ip dhcp excluded-address 192.168.10.254 255.255.255.0
ip dhcp excluded-address 192.168.20.254 255.255.255.0
ip dhcp excluded-address 192.168.30.254 255.255.255.0
ip dhcp pool 10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.254
exi
ip dhcp pool 20
network 192.168.20.0 255.255.255.0
default-router 192.168.20.254
exi
ip dhcp pool 30
network 192.168.30.0 255.255.255.0
default-router 192.168.30.254
exi
end
write
测试的结果是Vlan10是可以获得IP地址的,Vlan20和Vlan30则不能,提示的是原因是:APIPA is being used。
请问大神,这该怎么整?
写这篇帖子真不容易啊,,,,
|