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...
port link-type trunk port trunk allow-pass vlan 10 20 30 虚拟机要处于VMnet1中 手动设置一个地址,然后来试下。 Ping没问题 打开网页也可以,是不是这样就更加真实了,直接可以测试各种实验。(前提电脑性能OK,起码16G内存,CPU 高频点) 整理:老杨丨11年资深网络工程师,更多网工提升干货,请关注公众号:网络工程...
[LSW2-GigabitEthernet0/0/1]port trunk allow-pass vlan all 1. 2. 3. 4. 5. 6. 5.验证 PC1 ping PC2(不在同一vlan应是不可达的) PC1 ping PC3(同一vlan应是可达的) PC2 ping PC3(不在同一vlan应是不可达的) 总结 划分vlan就是为了提高网络的安全性、可靠性和管理效率的,其中access接口类型的端...
port trunk allow-pass vlan 10 20 900 interface GigabitEthernet0/0/2 //进入2接口,与接入交换机相连,配置为trunk口 port link-type trunk port trunk allow-pass vlan 10 900 interface Vlanif900 ip address 192.168.255.5 255.255.255.0 //配置远程链接的管理地址 ...
Huawei]inter GigabitEthernet 0/0/1[Huawei-GigabitEthernet0/0/1]port link-type trunk[Huawei-GigabitEthernet0/0/1]port trunk permit vlan all ^Error: Unrecognized command found at '^' position.[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all[Huawei-GigabitEthernet0/0/...
5 配置部门使用的计算机,设置IP地址,重点是网关的设置,要放在汇聚层。[S1]interface 交换机S1的上行端口[S1-GigabitEthernet0/0/1]port link-type trunk 交换机之间是Trunk接口类型。[S1-GigabitEthernet0/0/1]port trunk allow-pass vlan 许可可以通过的VLAN。[S1-GigabitEthernet0/0/1] User interface con0...
4 四、更改S1、S2的G0/0/9端口模式为TRUNK,并运行通过VLAN2、VLAN3[S1]interface GigabitEthernet 0/0/9[S1-GigabitEthernet0/0/9]port default vlan 1[S1-GigabitEthernet0/0/9]port link-type trunk[S1-GigabitEthernet0/0/9]port trunk allow-pass vlan 2 3[S2]interface GigabitEthernet 0/0/9[S2...
[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; ...