port trunk allow-pass vlan 2 to 4094 # interface Ethernet0/0/1 port link-type access port default vlan 11 interface Ethernet0/0/3 port link-type trunk port trunk allow-pass vlan 2 to 4094 # interface Ethernet0/0/4 port link-type trunk port trunk allow-pass vlan 2 to 4094 # interfac...
port trunk allow-pass vlan 2 to 4094 # interface Ethernet0/0/1 port link-type access port default vlan 11 interface Ethernet0/0/3 port link-type trunk port trunk allow-pass vlan 2 to 4094 # interface Ethernet0/0/4 port link-type trunk port trunk allow-pass vlan 2 to 4094 # interfac...
[Huawei-Eth-Trunk12]port trunk allow-pass vlan all [Huawei-Eth-Trunk12]int g0/0/2 [Huawei-GigabitEthernet0/0/2]port link-type trunk [Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan all [Huawei-GigabitEthernet0/0/2]int g0/0/3 [Huawei-GigabitEthernet0/0/3]port link-type trunk...
[LSW1-GigabitEthernet0/0/1]port trunk allow-pass vlan all # 这里注意一下port trunk allow-pass vlan all是放行所有vlan # 也可以放行某个或多个vlan例如: # port trunk allow-pass vlan 10 # 或者 # port trunk allow-pass vlan 10 20 # 因为不同vlan之间本就是不可达的所以我这边即便放行了所有也...
port trunk allow-pass vlan:命令用来配置Trunk类型接口允许通过的VLAN。 undo port trunk allow-pass vlan:命令用来删除Trunk类型接口加入的VLAN。 VLAN 1默认就在允许通过列表中,若无实际业务用途,出于安全考虑,一般要将它删除。 [LSW2]interface Ethernet 0/0/2 ...
port trunk allow-pass vlan 10 20 30 虚拟机要处于VMnet1中 手动设置一个地址,然后来试下。 Ping没问题 打开网页也可以,是不是这样就更加真实了,直接可以测试各种实验。(前提电脑性能OK,起码16G内存,CPU 高频点) 整理:老杨丨11年资深网络工程师,更多网工提升干货,请关注公众号:网络工程师俱乐部...
[SW2-GigabitEthernet0/0/2]port trunk allow-pass vlan 10 [SW2-GigabitEthernet0/0/2]port trunk allow-pass vlan all [SW2]int g0/00/1 [SW2-GigabitEthernet0/0/1]port link-type access [SW2-GigabitEthernet0/0/1]port default vlan 10 ...
porttrunkallow-passvlanall interfaceGigabitEthernet0/0/2 portlink-typeaccess portdefaultvlan10 interfaceGigabitEthernet0/0/3 portlink-typeaccess portdefaultvlan20 quit 运行命令截图 SW1 SW2 运行成功截图 八、设备consolo密码模式 最后配置形成的拓扑图 ...
[SwitchA-GigabitEthernet1/0/3] port trunk allow-pass vlan 2 3 //将端口G0/0/3加入vlan2和vlan 3 SwitchB和SwitchA的配置差不多,大家参考SwitchA的配置文件。 将PC1和PC2配置在一个网段,比如192.168.100.2/24和192.168.100.3/24,网关皆为192.168.100.1; ...
port default vlan 20 # interface Ethernet0/0/1 port link-type trunk port trunk allow-pass vlan...