实验过程:第一步:在sw1上配置f0/11为trunk接口S1(config)#int f0/11S1(config-if)#switchport mode trunkS1(config-if)#no
.
实验过程:
第一步:在sw1上配置f0/11为trunk接口
S1(config)#int f0/11
S1(config-if)#switchport mode trunk
S1(config-if)#no sh
S1(config-if)#exit
S1(config)#
第二步:在sw2上配置f0/11为trunk接口
S1(config)#int f0/11
S1(config-if)#switchport mode trunk
S1(config-if)#no sh
S1(config-if)#exit
S1(config)#0
第三步:查看sw1上的f0/11接口的配置
S1#sho int f0/11 switchport
Name: Fa0/11
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Disabled
Access Mode VLAN: 0 ((Inactive))
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: ALL
Trunking VLANs Active: 1
Priority for untagged frames: 0
Override vlan tag priority: FALSE
Voice VLAN: none
Appliance trust: none
S1#
第四步:查看sw2的vlan信息
S2#sh vlan-s
VLAN Name Status Ports
1 default active Fa0/0, Fa0/1, Fa0/2, Fa0/3
Fa0/4, Fa0/5, Fa0/6, Fa0/7
Fa0/8, Fa0/9, Fa0/10, Fa0/12
Fa0/13, Fa0/14, Fa0/15
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
1002 fddi 101002 1500 - - - - - 1 1003
1003 tr 101003 1500 1005 0 - - srb 1 1002
1004 fdnet 101004 1500 - - 1 ibm - 0 0
1005 trnet 101005 1500 - - 1 ibm - 0 0
S2#
第五步:配置sw1的Vtp协议
S1#vlan da
S1(vlan)#vtp domain Bob (配置vrp 域名为Bob)
Changing VTP domain name from NULL to Bob
S1(vlan)#vtp server (设置Vtp为server端)
Device mode already VTP SERVER.
S1(vlan)#exit
APPLY completed.
Exiting....
S1#
第六步:配置sw2的Vtp协议
S2(vlan)#vtp domain Bob
Changing VTP domain name from Bov to Bob
S2(vlan)#vtp client
Setting device to VTP CLIENT mode.
S2(vlan)#exit
In CLIENT state, no apply attempted.
Exiting....
S2#
第七步:现在立即查看sw2上的vlan信息
S2#sh vlan-s
VLAN Name Status Ports
1 default active Fa0/0, Fa0/1, Fa0/2, Fa0/3
Fa0/4, Fa0/5, Fa0/6, Fa0/7
Fa0/8, Fa0/9, Fa0/10, Fa0/12
Fa0/13, Fa0/14, Fa0/15
2 Bob active
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
1002 fddi 101002 1500 - 0 - - - 1 1003
1003 tr 101003 1500 1005 0 - - srb 1 1002
1004 fdnet 101004 1500 - - 1 ibm - 0 0
1005 trnet 101005 1500 - - 1 ibm - 0 0
S2#