在接口模式下,使用“switchport mode trunk”命令将端口设置为trunk模式,并通过“switchport trunk allowed vlan”命令指定允许通过的VLAN,例如“switchport trunk allowed vlan 10,20”。这一步骤中,可以使用“add”选项添加新的VLAN,例如“switchport trunk allowed vlan add 30”。通过这种方式,你可以...
使用switchport trunk allowed vlan add命令可以配置中继上允许的VLAN。 以下屏幕截图显示将千兆以太网端口(gi3)设置为中继端口并将其添加到VLAN 200所需的步骤: 步骤4.(可选)输入show vlan 命令查看更改。 步骤5.(可选)输入以下命令以显示有关端口的信息: 命令 ...
switchport mode trunk 配置二层口为trunk switchport trunk allowed vlan {add | all | except | remove} vlan-list可选) 配置trunk允 许的VLAN.使用add, all, except, remove关健字 no switchport trunk allowed vlan 允许所有VLAN通过 例 Switch(config)# interface fastethernet0/1 Switch(config-if)# swit...
I added a vlan to a port-channel on port the DR and the Switch uplinks. I updated the DR first C9600 vlan 1010name RONT08_PCCS interface Po25 switchport trunk allowed vlan add 1010 Then I did the access switch side C9300 configure terminalvlan 1010name RONT08_PCCS int Po1switchport ...
步骤5.使用switchport trunk allowed vlan命令指定端口模式配置为中继时属于哪些VLAN。 SG350X(config-if)#switchport trunk allowed vlan [all | none | add vlan-list | remove vlan-list | except vlan-list] 选项有: all— 指定1到4094之间的所有VLAN。任何时...
Switch(config-if)# switchport trunk allowed vlan remove 2 // 配置trunk允许的VLAN Switch(config-if)# end 附:switchport trunk allowed vlan {add | all | except | remove} vlan-list 1. 2. 3. 4. 5. 6. 7. (5)配置Native VLAN(802.1q) ...
core(config-if)#switchport trunk allowed vlan add 10,31,33,50,100 then check the trunks on the vlan I get core#sh int gi 1/2/0/13 trunk Port Mode Encapsulation Status Native vlanGi1/2/0/13 on 802.1q trunk-inbndl 1(Po31) Port Vlans allowed on trunkGi1/2/0/13 1-4093 Port ...
修改默认VLAN switchport trunk native vlan vlan-id switchport trunk allowed vlan remove vlan-id switchport trunk allowed vlan add vlan-id 关闭POE端口 Switch(config)# interface Switch(config-if)# power inline never 查看POE端口 Switch# show power inline ...
switch(config-if)# switchport trunk allowed vlan add vlan-list 在基于CLI的交换机上配置VLAN中继线: switch(enable) set trunk module/port [on|off|desirable|auto|nonegotiate] Vlan-range [isl|dotlq|dotl0|lane|negotiate] 10.在基于IOS的交换机上配置VTP管理域: switch# vlan database switch(vlan)# ...
Switch(config-if)# switchport mode trunk Switch(config-if)# switchport trunk encapsulation dot1q Switch(config-if)# end 定义TRUNK允许的VLAN configure terminal子进入配置状态 interface interface-id进入端口配置 switchport mode trunk配置二层口为trunk switchport trunk allowed vlan {add | all | except |...