VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/3, Fa0/5, Fa0/7
Fa0/9, Fa0/10, Fa0/11, Fa0/13
Fa0/15, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Gi0/1, Gi0/2
2 VLAN0002 active Fa0/21, Fa0/22, Fa0/23
3 VLAN0003 active
4 VLAN0004 active Fa0/12
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 1002 1003
2 enet 100002 1500 - - - - - 0 0
3 enet 100003 1500 - - - - - 0 0
4 enet 100004 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 1 1003
1003 tr 101003 1500 1005 0 - - srb 1 1002
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1004 fdnet 101004 1500 - - 1 ibm - 0 0
1005 trnet 101005 1500 - - 1 ibm - 0 0
C3550#show run
Building configuration...
Current configuration : 4606 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname C3550
!
enable secret 5 $1$ibul$tCDiyImmmWZVA9e5r2CxT0
!
ip subnet-zero
ip routing
no ip domain-lookup
!
spanning-tree extend system-id
!
!
!
interface FastEthernet0/1
no ip address
!
interface FastEthernet0/2
no ip address
!
interface FastEthernet0/3
no ip address
!
interface FastEthernet0/4
no ip address
!
interface FastEthernet0/5
no ip address
!
interface FastEthernet0/6
no ip address
!
interface FastEthernet0/7
no ip address
!
interface FastEthernet0/8
no ip address
!
interface FastEthernet0/9
no ip address
!
interface FastEthernet0/10
no ip address
!
interface FastEthernet0/11
no ip address
!
interface FastEthernet0/12
switchport access vlan 4
no ip address
!
interface FastEthernet0/13
no ip address
!
interface FastEthernet0/14
no ip address
!
interface FastEthernet0/15
no ip address
!
interface FastEthernet0/16
no ip address
!
interface FastEthernet0/17
no ip address
!
interface FastEthernet0/18
no ip address
!
interface FastEthernet0/19
no ip address
!
interface FastEthernet0/20
no ip address
!
interface FastEthernet0/21
switchport access vlan 2
no ip address
!
interface FastEthernet0/22
switchport access vlan 2
no ip address
!
interface FastEthernet0/23
switchport access vlan 2
no ip address
!
interface FastEthernet0/24
switchport access vlan 2
no ip address
!
interface GigabitEthernet0/1
no ip address
!
interface GigabitEthernet0/2
no ip address
!
interface Vlan1
ip address 10.10.10.10 255.255.0.0
!
interface Vlan2
description Finance
ip address 10.11.11.10 255.255.0.0
ip access-group 2 in
ip access-group 1 out
!
interface Vlan4
ip address 10.12.12.10 255.255.0.0
!
ip default-gateway 10.10.10.254
ip classless
ip route 0.0.0.0 0.0.0.0 10.10.10.254
ip http server
!
ip access-list extended internet_limit
permit tcp 10.10.0.0 0.0.255.255 any eq www time-range tr1
!
line con 0
line vty 0 4
password cisco
login
line vty 5 15
login
!
time-range tr1
periodic weekdays 8:30 to 19:00
!
end
vlan1和vlan2中的计算机(分别以10.10.10.10和10.11.11.10网关)都能上网!
现在我想新加入一个vlan 4(如图)
interface vlan 4
ip address 10.12.12.10 255.255.0.0
问题是:vlan4中的用户如:10.12.12.27(以10.12.12.10网关)上不了网? 但从10.12.12.27可以Ping通10.10.10.10,10.11.11.10,10.12.12.10!ping 不通10.10.10.254
[ 关闭窗口 ]
