单臂路由实现VLAN间的通信
作者:互联网
# 交换机 [Huawei]vlan batch 100 200 300 [Huawei]int g0/0/1 [Huawei-GigabitEthernet0/0/1]port link-type access [Huawei-GigabitEthernet0/0/1]port default vlan 300 [Huawei-GigabitEthernet0/0/1]int g0/0/2 [Huawei-GigabitEthernet0/0/2]port link-type access [Huawei-GigabitEthernet0/0/2]port default vlan 200 [Huawei-GigabitEthernet0/0/2]int g0/0/3 [Huawei-GigabitEthernet0/0/3]port link-type access [Huawei-GigabitEthernet0/0/3]port default vlan 100 [Huawei]int g0/0/24 [Huawei-GigabitEthernet0/0/24]port link-type trunk [Huawei-GigabitEthernet0/0/24]port trunk allow-pass vlan 100 200 300 # 路由器 [Huawei]int g0/0/0.1 # 进入子接口 [Huawei-GigabitEthernet0/0/0.1]dot1q termination vid 100 # 终结子接口 [Huawei-GigabitEthernet0/0/0.1]ip address 192.168.1.1 24 [Huawei-GigabitEthernet0/0/0.1]arp broadcast enable # 终结子接口 # 终结主要是指设备对报文的单层或者双层Tag进行识别,然后根据后续的转发行为对单层或者双层Tag进行剥离或继续传送,终结一般在路由子接口上执行,即:终结子接口。 # 如果子接口是对报文的单层Tag终结,那么该子接口称为Dot1q终结子接口。 # 如果子接口是对报文的双层Tag终结,那么该子接口称为QinQ终结子接口。 [Huawei-GigabitEthernet0/0/0.1]int g0/0/0.2 [Huawei-GigabitEthernet0/0/0.2]dot1q termination vid 200 [Huawei-GigabitEthernet0/0/0.2]ip addr 192.168.2.1 24 [Huawei-GigabitEthernet0/0/0.2]arp broadcast enable [Huawei-GigabitEthernet0/0/0.2]int g0/0/0.3 [Huawei-GigabitEthernet0/0/0.3]dot1q termination vid 300 [Huawei-GigabitEthernet0/0/0.3]ip addr 192.168.3.1 24 [Huawei-GigabitEthernet0/0/0.3]arp broadcast enable
标签:g0,int,VLAN,GigabitEthernet0,接口,Huawei,port,路由,单臂 来源: https://www.cnblogs.com/HByang/p/16287110.html