思科交换机配置vlan

时间:2020-08-13 17:51:21 网络技术 我要投稿

思科交换机配置vlan

  如果要配置二台6509之间的Trunk联接,首先将二6509用千兆光纤相联好,然后分别配置二相联端口的trunk,可以是只用一双光纤,或用二对光纤做port channel,配置如下:

  一双光纤相联时,分别在二台65上进行以下的配置:

  interface GigabitEthernet1/1

  no ip address

  switchport

  switchport trunk encapsulation dot1q

  switchport trunk native vlan 1

  二对光纤相联时,必须要做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

  VTP裁剪

  (1)在基于IOS的交换机上配置VTP 模式:

  switch# vlan database

  switch(vlan)# vtp domain domain-name

  switch(vlan)# vtp {sever|cilent|transparent}

  switch(vlan)# vtp password password

  在基于CLI的交换机上配置VTP 模式:

  switch(enable) set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password]

  (2)在基于IOS的'交换机上配置VTP版本:

  switch# vlan database

  switch(vlan)# vtp v2-mode

  在基于CLI的交换机上配置VTP版本:

  switch(enable) set vtp v2 enable

  (3)在基于IOS的交换机上启动VTP剪裁:

  switch# vlan database

  switch(vlan)# vtp pruning

  在基于CLI 的交换机上启动VTP剪裁:

  switch(enable) set vtp pruning enable

【思科交换机配置vlan】相关文章:

思科交换机划分vlan配置实例09-15

交换机配置VLAN Trunk05-06

思科交换机Vlan如何删除06-03

思科交换机STP配置06-02

思科交换机基本配置05-31

思科跨交换机VLAN的实现11-14

思科交换机划分vlan的命令11-13

思科交换机QOS配置过程11-13

cisco思科交换机配置篇05-16