华为路由器+二层交换机单臂路由实现VLAN间互通

路由器:

#
interface GigabitEthernet0/0/0.10
dot1q termination vid 10
ip address 192.168.10.1 255.255.255.0
arp broadcast enable
#
interface GigabitEthernet0/0/0.20
dot1q termination vid 20
ip address 192.168.20.1 255.255.255.0
arp broadcast enable
#

二层交换:

#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 20
#

interface GigabitEthernet0/0/10
port link-type trunk
port trunk allow-pass vlan 10 20
#

结构图:

 

posted @ 2022-06-10 18:04  techNote  阅读(584)  评论(0编辑  收藏  举报