CISCO3750 不同VLAN间访问故障
问:
我公司网络划分了3个VLAN,100、9、10网 段同网段之间都可正常使用\\192.168.100.1方式进行正常连接,自从交换机出现故障后重新配制后,同网段内可正常访问,跨网段却出现找不到网络路径现象,但同时PING完全正常,不影响连接互联网,请高手发一份3750完整配制步骤,谢谢!不胜感激!!
答:
我来告诉你,我在公司用的交换机和你的一样,你的情况我也遇到过,
CISCO3750 不同VLAN间访问故障
。运行配置如下:
Switch>en Password: Switch#show run Building configuration... Current configuration : 2225 bytes ! version 12.2 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Switch ! enable secret 5 $1$0x0f$o5vtXMdhgJOEZgWAiGdBg. ! no aaa new-model ip su-zero ip routing//(一定要敲此命令,是启用vlan间路由的,不敲的话就会出现你碰到的问题。) ! ! ! ! no file verify auto spanning-tree mode pvst spanning-tree extend system-id ! vlan internal allocation policy ascending ! ! interface GigabitEthe0/1 switchport access vlan 10 ! interface GigabitEthe0/2 switchport access vlan 10 ! interface GigabitEthe0/3 switchport access vlan 10 ! interface GigabitEthe0/4 switchport access vlan 10 ! interface GigabitEthe0/5 switchport access vlan 10 ! interface GigabitEthe0/6 switchport access vlan 10 ! interface GigabitEthe0/7 switchport access vlan 10 ! 删除一部分......... ! ! interface Vlan1 no ip address ! interface Vlan10 ip address 192.168.10.1 255.255.255.0 ! interface Vlan20 ip address 192.168.0.1 255.255.255.0 ! interface Vlan30 no ip address ! ip classless ip route 0.0.0.0 0.0.0.0 192.168.0.2//默认路由. ip http server ! ! ! control-plane ! ! line con 0 line vty 0 4 password ******** login