单臂路由跨vlan通信怎么实现的 (思科单个三层交换机实现vlan路由)

多个VLAN静态路由互通,hybrid能实现vlan间路由吗

拓扑

很简单的一个网络,有效的隔绝了ARP广播包,并且不影响不同网段的通信,还可以根据需求添加相应的策略进行限制。

主交换机配置:

The device is running!

<Huawei>system-view  #进入系统视图
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname  Switch  #修改设备名称

[Switch]vlan  batch  10 20   #批量创建vlan 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.

[Switch]interface  Vlanif  10  #进入vlan if 10接口(三层接口)
[Switch-Vlanif10]ip address 192.168.1.1 24 #配置IP地址及子网掩码
[Switch-Vlanif10]quit  #退出接口

[Switch]interface  Vlanif  20  #进入vlan if 20接口(三层接口)
[Switch-Vlanif20]ip address  192.168.2.1 24 #配置IP地址及子网掩码
[Switch-Vlanif20]quit  #退出接口

[Switch]interface  GigabitEthernet  0/0/1  #进入端口0/0/1
[Switch-GigabitEthernet0/0/1]port link-type access #配置端口类型
[Switch-GigabitEthernet0/0/1]port default  vlan 10  #配置端口加入vlan 10
[Switch-GigabitEthernet0/0/1]quit #退出端口

[Switch]interface  GigabitEthernet 0/0/2  #进入端口0/0/2
[Switch-GigabitEthernet0/0/2]port link-type access  #配置端口类型
[Switch-GigabitEthernet0/0/2]port default vlan  20  #配置端口加入vlan 20
[Switch-GigabitEthernet0/0/2]quit  #退出端口
[Switch]

PC1配置信息及检测

多个VLAN静态路由互通,hybrid能实现vlan间路由吗

访问网关及PC2

PC2配置信息及检测

多个VLAN静态路由互通,hybrid能实现vlan间路由吗

访问网关及PC1

#谢谢#

#华为##华为交换机# #网络# #VLAN#