目录
单臂路由的概念
单臂路由是指在路由器的一个接口上通过配置子接口(或“逻辑接口”,并不存在真正物理接口)的方式,实现原来相互隔离的不同VLAN(虚拟局域网)之间的互联互通。 VLAN能有效分割局域网,实现各网络区域之间的访问控制。
VLAN间不同情况的通信
相同VLAN间通信:同一台交换机相同的VLAN之间通信口,查看本地MAC地址表,将打了相同pvid标签的数据包转发到对应的端口上去。
不同VLAN间通信:跨交换机,通过trunk技术实现多VLAN数据通信,可以帮助我们实现相同VLAN间的通信。
单臂路由:一台二层交换机加一台路由器
三层交换组成:三层交换机
实验
PC1的配置
PC2的配置:
配置交换机
<Huawei>
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname SW1
[SW1]
Aug 10 2021 09:23:38-08:00 SW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 4, the c
hange loop count is 0, and the maximum number of records is 4095.vlan batch 2 3
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1]undo
[SW1]undo t
[SW1]undo traffic-policy
<SW1>undo
<SW1>undo t
<SW1>undo terminal
Aug 10 2021 09:23:48-08:00 SW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change numbe