有的'思科交換機使用者不知道怎麼配置,且因為思科有一款模擬器軟體,本文就以思科交換機的設定作為示例。這次小編來介紹一下思科交換機怎麼設定虛擬串列埠配置VLAN Trunk的步驟。
交換機串列埠(Trunk)的作用:
在乙太網上通過交換機的串列埠實現中繼可以使用如下兩種封裝型別:
—IEEE 802.1Q
—ISL(Inter Switch Link, Cisco私有)
配置步驟:
交換機怎麼設定-第一步:在交換機上新增VLAN
交換機怎麼設定-第二步:將介面新增到相應的VLAN中
Switch1#config terminal
Switch1(config)#interface fastEthernet 0/1
Switch1(config-if-range)#switchport access vlan 2
Switch1(config)#interface fastEthernet 0/2
Switch1(config-if-range)#switchport access vlan 3
交換機怎麼設定-第三步:配置交換機之間互聯的埠為串列埠(Trunk)
Switch1(config)#interface f0/15
Switch1(config-if-range)#switchport mode trunk
相關其他命令
去除VLAN:
Switch(config-if)#switchport trunk allowed vlan removevlan-list
新增VLAN:
Switch(config-if)#switchport trunk allowed vlan add vlan-list
檢視埠狀態:
Switch#show interface f0/15switchport
檢查中繼埠允許VLAN的列表:
Switch#show interface interface-id switchport
檢視VLAN資訊:
Switch#show vlan brief
檢視配置:
Switch#show running-config