CISCO3750 不同VLAN间访问故障
来源:百度知道 编辑:UC知道 时间:2024/05/17 03:20:47
我来告诉你,我在公司用的交换机和你的一样,你的情况我也遇到过.
一、运行配置如下:
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 acc