如何作端口聚合—Trunk联接
如果要配置二台6509之间的Trunk联接,首先将二6509用千兆光纤相联好,然后分别配置二相联端口的trunk,可以是只用一双光纤,或用二对光纤做port channel,配置如下:
一双光纤相联时,分别在二台65上进行以下的配置:
复制
interface GigabitEthernet1/1 no ip address switchport switchport trunk encapsulation dot1q switchport trunk native vlan 1
1.
2.
3.
4.
5.
6.
7.
8.
9.
二对光纤相联时,必须要做port channel,分别在二台65上进行以下的配置:
复制
interface port-channe1 no ip address switchport switchport trunk encapsulation dot1q switchport trunk native vlan 1 ! interface GigabitEthernet1/1 no ip address duplex full speed 1000 switchport mode trunk switchport trunk encapsulation dot1q switchport trunk native vlan 1 channel-group 1 mode on ! interface GigabitEthernet1/2 no ip address duplex full speed 1000 switchport mode trunk switchport trunk encapsulation dot1q switchport trunk native vlan 1 channel-group 1 mode on
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
VTP裁剪
(1)在基于IOS的交换机上配置VTP 模式:
复制
switch# vlan database switch(vlan)# vtp domain domain-name switch(vlan)# vtp {sever|cilent|transparent} switch(vlan)# vtp password password
1.
2.
3.
4.
5.
6.
7.
在基于CLI的交换机上配置VTP 模式:
复制
switch(enable) set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password]
1.
(2)在基于IOS的交换机上配置VTP版本:
复制
switch# vlan database switch(vlan)# vtp v2-mode
1.
2.
3.
在基于CLI的交换机上配置VTP版本:
复制
switch(enable) set vtp v2 enable
1.
(3)在基于IOS的交换机上启动VTP剪裁:
复制
switch# vlan database switch(vlan)# vtp pruning
1.
2.
3.
在基于CLI 的交换机上启动VTP剪裁:
复制
switch(enable) set vtp pruning enable
1.
Trunk和VTP的配置就为大家介绍完了,希望大家已经掌握。
【编辑推荐】