思科交换机vlan trunk配置

标签:
科技思科交换机dot1q配置接口it |
分类: 乱谈IT |
思科交换机vlan trunk配置
http://s1/middle/600539b3x9cc3474cd8c0&690trunk配置" TITLE="思科交换机vlan
在如上图所示的网络结构上配置vlan trunk
配置过程:
在交换机2上添加vlan
Switch>enable
Switch#vlan database
Switch(vlan)#vlan 2
VLAN 2 added:
Name: VLAN0002
Switch(vlan)#vlan 3
VLAN 3 added:
Name: VLAN0003
Switch(vlan)#exit
将接口0/2添加到vlan2,接口0/3添加到 vlan3,接口0/1默认为vlan1
Switch#config terminal
Switch(config)#interface f0/2
Switch(config-if)#switchport access vlan 2
Switch(config)#interface f0/3
Switch(config-if)#switchport access vlan 3
配置交换机之间互连的端口为trunk模式(中继模式)本实验为0/24接口
Switch(config)#interface f0/24
Switch(config-if)#switchport mode trunk
在交换机3上使用相同的配置以后,可以使用show命令进行验证,
Switch#show interface f0/24 switchport
Name: Fa0/24
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: On
验证说明交换机2的0/24接口与交换机3的0/24接口为trunk模式。配置正确,实验完成。
http://www/uc/myshow/blog/misc/gif/E___6725EN00SIGG.giftrunk配置" TITLE="思科交换机vlan