在不同的vtp域中,两台cisco1900交换机分别设置vtp的server mode 和 transparent mode,请问两种模式之间相同valn的pc可以ping通吗???
Pc1:
ip add 192.168.1.1 255.255.255.0 连交换机1
vlan10
Pc2:
ip add 192.168.1.1 255.255.255.0连交换机2
vlan10
交换机1(cisco1900)配置
vtp domain "cisco"
vlan 10 name "vlan10" sde 100010 state Operational mtu 1500
vlan 20 name "vlan20" sde 100020 state Operational mtu 1500
hostname "sw1"
interface Ethernet 0/1
interface Ethernet 0/2
vlan-membership static 10
interface Ethernet 0/3
vlan-membership static 10
interface Ethernet 0/4
vlan-membership static 10
interface Ethernet 0/5
vlan-membership static 10
interface Ethernet 0/6
vlan-membership static 10
interface Ethernet 0/7
vlan-membership static 10
interface Ethernet 0/8
vlan-membership static 10
interface Ethernet 0/9
vlan-membership static 20
interface Ethernet 0/10
vlan-membership static 20
interface FastEthernet 0/26
--More--
trunk On
interface FastEthernet 0/27
trunk On
看VTP配置:
VTP version: 1
Configuration revision: 2
Maximum VLANs supported locally: 1005
Number of existing VLANs: 7
VTP domain name
: cisco
(不同的域)
VTP password
:
VTP operating mode
: Server
VTP pruning mode
: Disabled
VTP traps generation
: Enabled
Configuration last modified by: 0.0.0.0 at 00-00-0000 00:00:00
看vlan配置:
1
default
Enabled
1, 11-24, AUI, A, B
10
vlan10
Enabled
2-8
20
vlan20
Enabled
9-10
1002 fddi-default
Suspended
1003 token-ring-defau Suspended
1004 fddinet-default
Suspended
1005 trnet-default
Suspended
--------------------------------------
VLAN Type
SAID
MTU
Parent RingNo BridgeNo Stp
Trans1 Trans2
---------------------------------------------------------------------------
1
Ethernet
100001 1500
0
0
0
Unkn 1002
1003
10
Ethernet
100010 1500
0
1
1
Unkn 0
0
20
Ethernet
100020 1500
0
1
1
Unkn 0
0
1002 FDDI
101002 1500
0
0
0
Unkn 1
1003
1003 Token-Ring
101003 1500
1005
1
0
Unkn 1
1002
1004 FDDI-Net
101004 1500
0
0
1
IEEE 0
0
1005 Token-Ring-Net 101005 1500
0
0
1
IEEE 0
0
交换机2(cisco1900)配置
#conf t
Enter configuration commands, one per line.
End with CNTL/Z
(config)#ho sw2
sw2(config)#vtp tran
sw2(config)#vtp domain tran
sw2#sh vtp
VTP version: 1
Configuration revision: 0(不在同一域学习不到修订号)
Maximum VLANs supported locally: 1005
Number of existing VLANs: 5
VTP domain name
: tran
(不同的域)
VTP password
:
VTP operating mode
: Transparent
VTP pruning mode
: Disabled
VTP traps generation
: Enabled
Configuration last modified by: 0.0.0.0 at 00-00-0000 00:00:00
Rack1_2511>2
[Resuming connection 2 to r77 ... ]
sw2#cofn t
sw2#conf t
Enter configuration commands, one per line.
End with CNTL/Z
sw2(config)#vlan 10
sw2(config)#vlan 20
sw2(config)#int e0/2
sw2(config-if)#vlan
sw2(config-if)#vlan-membership s
sw2(config-if)#vlan-membership static 10
sw2(config-if)#int e0/3
sw2(config-if)#vlan-membership static 10
sw2(config-if)#int e0/4
sw2(config-if)#vlan-membership static 10
sw2(config-if)#int e0/5
sw2(config-if)#vlan-membership static 10
sw2(config-if)#int e0/6
sw2(config-if)#vlan-membership static 10
sw2(config-if)#int e0/7
sw2(config-if)#vlan-membership static 10
sw2(config-if)#int e0/8
sw2(config-if)#vlan-membership static 10
sw2(config-if)#exit
sw2(config)#
sw2#sh vlan
VLAN Name
Status
Ports
--------------------------------------
1
default
Enabled
1, 9-12, AUI, A, B
10
VLAN0010
Enabled
2-8
20
VLAN0020
Enabled
1002 fddi-default
Suspended
1003 token-ring-defau Suspended
1004 fddinet-default
Suspended
1005 trnet-default
Suspended
--------------------------------------
VLAN Type
SAID
MTU
Parent RingNo BridgeNo Stp
Trans1 Trans2
---------------------------------------------------------------------------
1
Ethernet
100001 1500
0
0
0
Unkn 1002
1003
10
Ethernet
100010 1500
0
1
1
Unkn 0
0
20
Ethernet
100020 1500
0
1
1
Unkn 0
0
1002 FDDI
101002 1500
0
0
0
Unkn 1
1003
1003 Token-Ring
101003 1500
1005
1
0
Unkn 1
1002
1004 FDDI-Net
101004 1500
0
0
1
IEEE 0
0
1005 Token-Ring-Net 101005 1500
0
0
1
IEEE 0
0
---------------------------------------------------------------------------
sw2#sh vtp
VTP version: 1
Configuration revision: 0
Maximum VLANs supported locally: 1005
Number of existing VLANs: 7
VTP domain name
: tran
VTP password
:
VTP operating mode
: Transparent
VTP pruning mode
: Disabled
VTP traps generation
: Enabled
Configuration last modified by: 0.0.0.0 at 00-00-0000 00:00:00
Rack1_2511>1
[Resuming connection 1 to r66 ... ]
sw1#conf t
Enter configuration commands, one per line.
End with CNTL/Z
sw1(config)#int fa 0/26
sw1(config-if)#trunk on
sw1(config-if)#exit
sw1(config)#int fa 0/27
sw1(config-if)#trunk on
sw1(config-if)#
Rack1_2511>2
[Resuming connection 2 to r77 ... ]
sw2#conf t
Enter configuration commands, one per line.
End with CNTL/Z
sw2(config)#int fa 0/27
sw2(config-if)#trunk on
sw2(config-if)#exit
sw2(config)#int fa 0/26
sw2(config-if)#trunk on
sw2(config-if)#
sw2#sh trunk ?
A
Trunk A
B
Trunk B
sw2#sh trunk b
DISL state: On, Trunking: On, Encapsulation type: ISL
Rack1_2511>3
[Resuming connection 3 to r6 ... ]
pc1#ping 192.168.1.2(pc2 ip )
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/8 ms
可以ping通!!! |