基礎(chǔ)配置:cisco交換機(jī)配置vlan(3)
如何作端口聚合—Trunk聯(lián)接
如果要配置二臺(tái)6509之間的Trunk聯(lián)接,首先將二6509用千兆光纖相聯(lián)好,然后分別配置二相聯(lián)端口的trunk,可以是只用一雙光纖,或用二對(duì)光纖做port channel,配置如下:
一雙光纖相聯(lián)時(shí),分別在二臺(tái)65上進(jìn)行以下的配置:
- interface GigabitEthernet1/1
 - no ip address
 - switchport
 - switchport trunk encapsulation dot1q
 - switchport trunk native vlan 1
 
二對(duì)光纖相聯(lián)時(shí),必須要做port channel,分別在二臺(tái)65上進(jìn)行以下的配置:
- 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
 
VTP裁剪
(1)在基于IOS的交換機(jī)上配置VTP 模式:
- switch# vlan database
 - switch(vlan)# vtp domain domain-name
 - switch(vlan)# vtp {sever|cilent|transparent}
 - switch(vlan)# vtp password password
 
在基于CLI的交換機(jī)上配置VTP 模式:
- switch(enable) set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password]
 
(2)在基于IOS的交換機(jī)上配置VTP版本:
- switch# vlan database
 - switch(vlan)# vtp v2-mode
 
在基于CLI的交換機(jī)上配置VTP版本:
- switch(enable) set vtp v2 enable
 
(3)在基于IOS的交換機(jī)上啟動(dòng)VTP剪裁:
- switch# vlan database
 - switch(vlan)# vtp pruning
 
在基于CLI 的交換機(jī)上啟動(dòng)VTP剪裁:
- switch(enable) set vtp pruning enable
 
Trunk和VTP的配置就為大家介紹完了,希望大家已經(jīng)掌握。
【編輯推薦】















 
 
 
 
 
 
 