cisco 三层交换机只能ping通自己VLAN的ip,其他vlan ping不到

配置如下:

hostname Switch
!

ip routing

!
interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/4
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/5
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/6
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/7
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/8
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 10.0.2.1 255.255.254.0
!
interface Vlan20
ip address 10.0.4.1 255.255.254.0
!
interface Vlan30
ip address 10.0.6.1 255.255.254.0
!
interface Vlan40
ip address 10.0.8.1 255.255.254.0
!
ip classless
!

line con 0
line vty 0 4
login
!

end
只能vlan10 的网段能ping通也能ping自己的网关,但ping不到其他vlan,三层交换机也用了ip routing的命令

第1个回答  2015-01-11
在三层交换机上能ping通各个vlan的pc吗?

pc的网关设的是三层交换机吗?追问

各VLAN上的pc能ping通三层交换机上的网关,不懂什么在三层交换机上ping 各vlan的PC是什么意思?设置有什么问题?

追答

把你的pkt文件发上来看看。

本回答被提问者和网友采纳
相似回答