实验目的:主机192.168.7.1与vlan10 20 30 40 50 互通
配置思路:
LSW2:创建vlan 10 20 30把 相应端口加入相应VLAN,在端口ge 0/0/1 配置TRUNK链路
LSW3:创建VLAN 40 50 加入相端口,在ge 0/0/2 配置TRUNK链路
LSW1:创建VLAN 10 20 30 40 50,在端口GE0/0/1配置TRUNK在端口GE0/0/2配置TRUNK,给GE0/0/3配置IP,给VLAN 配置IP,配置通往192.168.7.1的路由
AR1:给端口配置IP,配置通往VLAN 10 20 30 40 50的路由
具体配置如下:
LSW2
SYS
[Huawei]SYSNAME lsw2
[lsw2]
[lsw2]vlan batch 10 20 30
[lsw2]int Ethernet 0/0/1
[lsw2-Ethernet0/0/1]port link-type access
[lsw2-Ethernet0/0/1]port default vlan 10
[lsw2-Ethernet0/0/1]undo shut
[lsw2-Ethernet0/0/1]q
[lsw2]int Ethernet 0/0/2
[lsw2-Ethernet0/0/2]port link-type access
[lsw2-Ethernet0/0/2]port default vlan 20
[lsw2-Ethernet0/0/2]undo
[lsw2-Ethernet0/0/2]q
[lsw2]int Ethernet
华为三层交换实现不同vlan间通信
最新推荐文章于 2024-05-27 18:19:57 发布