不同VLAN间访问故障
我公司网络划分了3个VLAN,100、9、10网 段同网段之间都可正常使用\\192.168.100.1方式进行正常连接,自从交换机出现故障后重新配制后,同网段内可正常访问,跨网段却出现找不到网络路径现象,但同时PING完全正常,不影响连接互联网,请高手发一份3750完整配制步骤,谢谢!不胜感激!!
一、运行配置如下:
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 subnet-zero
ip routing<<<---(一定要敲此命令,是启用vlan间路由的,不敲的话就会出现你碰到的问题。)
!
!
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
interface GigabitEthernet0/1
switchport access vlan 10
!
interface GigabitEthernet0/2
switchport access vlan 10
!
interface GigabitEthernet0/3
switchport access vlan 10
!
interface GigabitEthernet0/4
switchport access vlan 10
!
interface GigabitEthernet0/5
switchport access vlan 10
!
interface GigabitEthernet0/6
switchport access vlan 10
!
interface GigabitEthernet0/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
!
如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!
赞17
添加新评论0 条评论