Get the App
SLTechnology News&Howtos  ›  Servers  › 

One-arm routing under Huawei

Shulou Source: shulou.com Published: 2022-06-03 07:14:19 10月03日 Update

Experimental requirements: communication between two different VLAN

The process is as follows:

[SW1] vlan 10

[SW1-vlan10] q

[SW1-vlan20]

[SW1-vlan20] q

[SW1]

[SW1] int g0/0/2

[SW1-GigabitEthernet0/0/2] port link-type access (link type of port)

[SW1-GigabitEthernet0/0/2] port default vlan 10 (divide this interface into vlan 10)

[SW1-GigabitEthernet0/0/2] q

[SW1] int g0/0/3

[SW1-GigabitEthernet0/0/3] port link-type access

[SW1-GigabitEthernet0/0/3] port default vlan 20

[SW1-GigabitEthernet0/0/3] q

[SW1] int g0/0/1

[SW1-GigabitEthernet0/0/1] port link-type trunk (interface link type changed to trunk)

[SW1-GigabitEthernet0/0/1] port trunk allow-pass vlan 10 20 (the TRUNK link releases data for all VLAN 10 and 20)

Two subinterfaces need to be configured on the router of R1, corresponding to VLAN 10 and VLAN 20 on the PC side.

[R1] int e0/0/0.10

[R1-Ethernet0/0/0.10]

[R1-Ethernet0/0/0.10] control-vid 10 dot1q-termination (identify the data sent from the PC

Under this excuse to enable 802.1Q protocol to VID10, on more advanced routers, this command can not be written)

[R1-Ethernet0/0/0.10] dot1q termination vid 10 (tagged to encapsulate 802.1q protocol to vlan 10)

[R1-Ethernet0/0/0.10] arp broadcast en (to find the PC of the destination side and open ARP)

[R1-Ethernet0/0/0.10] ip address 192.168.1.254 24 (configure Gateway)

[R1-Ethernet0/0/0.10] q

[R1]

[R1] int e0/0/0.20

[R1-Ethernet0/0/0.20] control-vid 20 dot1q-termination

[R1-Ethernet0/0/0.20] dot1q termination vid 20

[R1-Ethernet0/0/0.20] arp broadcast en

[R1-Ethernet0/0/0.20] ip address 192.168.2.254 24

It's over! Different VLAN can communicate with each other, the purpose is complete!

Tags: Interfaces links routes differences between data end type router communication configuration advanced size excuse command label destination destination port gateway Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft macOS MySQL Redmi vpn