谢谢村长的回复,我已经找到问题了,是IOS的问题
下载一个支持IP plus的c3620-is-mz.113-11a.bin解决问题
顺便给个config 给大家看看,看一下一个很简单的vlan配置:
解释一下 vlan1 默认,路由器的F0/0连接交换机的F0/3,有问题希望大家一起讨论一下。
路由器配置
router# sh run
Building configuration...
Current configuration:
!
version 11.3
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname router
!
enable secret 5 $1$NBXP$7l9ym37N1p7D5IceXCQin/
!
no ip domain-lookup
ip host aux 2065 192.168.0.1
!
!
interface FastEthernet0/0
no ip address
!
interface FastEthernet0/0.1
encapsulation isl 1
ip address 192.168.1.1 255.255.255.0
no ip redirects
!
interface FastEthernet0/0.2
encapsulation isl 2
ip address 192.168.2.1 255.255.255.0
no ip redirects
!
interface FastEthernet0/0.3
encapsulation isl 3
ip address 192.168.3.1 255.255.255.0
no ip redirects
!
ip classless
!
!
line con 0
line aux 0
no exec
transport input all
line vty 0 4
password cisco
login
!
end
交换机配置
switch#sh run
Building configuration...
Current configuration:
!
version 12.0
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname switch
!
enable secret 5 $1$TMB1$jIXgssMuS16m8gYTrsNZw.
!
!
!
!
!
!
ip subnet-zero
no ip domain-lookup
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
switchport access vlan 2
!
interface FastEthernet0/3
switchport mode trunk
switchport trunk allowed vlan all
!
interface FastEthernet0/4
switchport access vlan 3
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
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 FastEthernet0/25
!
interface FastEthernet0/26
!
interface FastEthernet0/27
!
interface FastEthernet0/28
!
interface FastEthernet0/29
!
interface FastEthernet0/30
!
interface FastEthernet0/31
!
interface FastEthernet0/32
!
interface FastEthernet0/33
!
interface FastEthernet0/34
!
interface FastEthernet0/35
!
interface FastEthernet0/36
!
interface FastEthernet0/37
!
interface FastEthernet0/38
!
interface FastEthernet0/39
!
interface FastEthernet0/40
!
interface FastEthernet0/41
!
interface FastEthernet0/42
!
interface FastEthernet0/43
!
interface FastEthernet0/44
!
interface FastEthernet0/45
!
interface FastEthernet0/46
!
interface FastEthernet0/47
!
interface FastEthernet0/48
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface VLAN1
ip address 192.168.1.2 255.255.255.0
no ip directed-broadcast
no ip route-cache
!
ip default-gateway 192.168.1.1
snmp-server engineID local 00000009020000036BE14A80
snmp-server community private RW
snmp-server community public RO
!
line con 0
transport input none
stopbits 1
line vty 0 4
password cisco
login
line vty 5 15
login
!
end
注释:路由器的F 0/0和交换机的f0/3连接!!