其他分享
首页 > 其他分享> > CCNP(BCMSN)实验:Trunk配置及VTP服务

CCNP(BCMSN)实验:Trunk配置及VTP服务

作者:互联网

CCNP(BCMSN)实验:Trunk配置及VTP服务
实验过程:

第一步:在 SW1上配置VTP
sw1#vlan da
sw1(vlan)#vtp domain ccie
Changing VTP domain name from ccna to ccie
sw1(vlan)#vtp s
sw1(vlan)#vtp server
Device mode already VTP SERVER.
sw1(vlan)#exit
APPLY completed.
Exiting....
第二步:在R2上配置VTP

sw2(vlan)#vtp domain ccie
Changing VTP domain name from ccna to ccie
sw2(vlan)#vtp c
sw2(vlan)#vtp client
Setting device to VTP CLIENT mode.
sw2(vlan)#exit
In CLIENT state, no apply attempted.
Exiting....
第三步:在SW1上配置Trunk中继接口

Enter configuration commands, one per line. End with CNTL/Z.
sw1(config)#int f0/23
sw1(config-if)#switchport mo tr
//配置交换机端口为trunk
sw1(config-if)#sw tr en dot1q
//封装类型为802.1q
sw1(config-if)#sw tr all vlan all
//允许通过所有vlan

第四步:在SW2上配置trunk中继接口
sw2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
sw2(config)#int f0/23
sw2(config-if)#sw mo trunk
sw2(config-if)#switchport trunk encapsulation dot1q
第五步:在SW1上创建vlan
sw1(vlan)#vlan 4 name 4
VLAN 4 modified:
Name: 4
sw1(vlan)#vlan 5 name 5
VLAN 5 modified:
Name: 5
sw1(vlan)#
第六步:在SW1上验证帧中继接口

sw1#sh int f0/23 sw
Name: Fa0/23
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
第七步:到帧中继上查看是否学习到

sw2# sh vlan

VLAN Name Status Ports


1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Gi0/1, Gi0/2
4 4 active
5 5 active
6 VLAN0006 active
50 VLAN0050 active Fa0/12
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2


1 enet 100001 1500 - - - - - 0 0
4 enet 100004 1500 - - - - - 0 0
5 enet 100005 1500 - - - - - 0 0

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2


6 enet 100006 1500 - - - - - 0 0
50 enet 100050 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - srb 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0

Remote SPAN VLANs

Primary Secondary Type Ports


标签:VLAN,CCNP,default,Fa0,vlan,VTP,1500,BCMSN,config
来源: https://blog.51cto.com/starshomes/2541290