Example for Configuring Inter-VLAN Proxy ARP
Networking Requirements
In Figure 2-14, VLAN2 and VLAN3 belong to super-VLAN4. Hosts in VLAN2 and VLAN3 cannot ping each other. To implement communication between hosts in VLAN2 and VLAN3, configure inter-VLAN proxy ARP.
Configuration Roadmap
The configuration roadmap is as follows:
- Configure a super-VLAN and sub-VLANs.
- Add interfaces to the sub-VLANs.
- Create a VLANIF interface corresponding to the super-VLAN and configure an IP address for the VLANIF interface.
- Enable inter-VLAN proxy ARP.
Procedure
- Configure a super-VLAN and sub-VLANs.# Configure sub-VLAN2.
<Huawei> system-view [Huawei] sysname Router [Router] vlan 2 [Router-vlan2] quit
# Add Ethernet2/0/0 and Ethernet2/0/1 to sub-VLAN2.[Router] interface ethernet 2/0/0 [Router-Ethernet2/0/0] port link-type access [Router-Ethernet2/0/0] port default vlan 2 [Router-Ethernet2/0/0] quit [Router] interface ethernet 2/0/1 [Router-Ethernet2/0/1] port link-type access [Router-Ethernet2/0/1] port default vlan 2 [Router-Ethernet2/0/1] quit
# Configure sub-VLAN3.[Router] vlan 3 [Router-vlan3] quit
# Add Ethernet2/0/2 and Ethernet2/0/3 to sub-VLAN3.[Router] interface ethernet 2/0/2 [Router-Ethernet2/0/2] port link-type access [Router-Ethernet2/0/2] port default vlan 3 [Router-Ethernet2/0/2] quit [Router] interface ethernet 2/0/3 [Router-Ethernet2/0/3] port link-type access [Router-Ethernet2/0/3] port default vlan 3 [Router-Ethernet2/0/3] quit
# Create super-VLAN 4 and add sub-VLAN2 and sub-VLAN3 to super-VLAN4.[Router] vlan 4 [Router-vlan4] aggregate-vlan [Router-vlan4] access-vlan 2 [Router-vlan4] access-vlan 3 [Router-vlan4] quit
- Create and configure VLANIF4.
# Create VLANIF4.
[Router] interface vlanif 4
# Configure an IP address for VLANIF4.
[Router-Vlanif4] ip address 10.10.10.1 24
- Enable inter-VLAN proxy ARP on VLANIF4.
[Router-Vlanif4] arp-proxy inter-sub-vlan-proxy enable [Router-Vlanif4] quit
- Verify the configuration.
# Run the display current-configuration command to check configurations of the super-VLAN, sub-VLANs, and VLANIF interface. The output of the command is displayed in the following configuration file.
# Run the display arp command to view all the ARP entries.
<Router> display arp IP ADDRESS MAC ADDRESS EXPIRE(M) TYPE INTERFACE VPN-INSTANCE VLAN/CEVLAN ------------------------------------------------------------------------------ 10.10.10.1 00e0-fc00-0083 I - Vlanif4 10.10.10.2 00e0-fc00-0002 19 D-0 Ethernet2/0/0 2/- 10.10.10.3 00e0-fc00-0003 19 D-0 Ethernet2/0/1 2/- 10.10.10.4 00e0-fc00-0004 19 D-0 Ethernet2/0/2 3/- 10.10.10.5 00e0-fc00-0005 19 D-0 Ethernet2/0/3 3/- ------------------------------------------------------------------------------ Total:5 Dynamic:4 Static:0 Interface:1
Configuration Files
Only the configuration file of the router is provided.
# sysname Router # vlan batch 2 to 4 # vlan 4 aggregate-vlan access-vlan 2 to 3 # interface Vlanif4 ip address 10.10.10.1 255.255.255.0 arp-proxy inter-sub-vlan-proxy enable # interface Ethernet2/0/0 port link-type access port default vlan 2 # interface Ethernet2/0/1 port link-type access port default vlan 2 # interface Ethernet2/0/2 port link-type access port default vlan 3 # interface Ethernet2/0/3 port link-type access port default vlan 3 # return