If user isolation is configured for different users in the same virtual local area network (VLAN), the users cannot communicate with each other. To resolve this problem, you can configure proxy Address Resolution Protocol (ARP) for the VLAN.
As shown in Figure 1, CE is connected to the sub-interface Eth-Trunk 1.1 of PE. Eth-Trunk 1.1 is associated with VLAN 10.
Host A and Host B are two users connected with CE. On CE, the interfaces connected with Host A and Host B belong to the same VLAN. User isolation in a VLAN is configured on CE.
To implement communication between Host A and Host B, enable proxy ARP within a VLAN on Eth-Trunk 1.1 of PE.
The configuration roadmap is as follows:
Create a VLAN on the CE and configure the users that need to communicate with each other to belong to the same VLAN.
Create Eth-Trunk 1.1 on the PE and configure an IP address for the interface as the gateway IP address.
Associate Eth-Trunk 1.1 with VLAN 10.
Enable proxy ARP on Eth-Trunk 1.1 so that isolated users in VLAN 10 can communicate with each other.
To complete the configuration, you need the following data:
ID of the VLAN to which hosts belong: 10
IP address of Eth-Trunk 1.1: 10.10.10.1/24
ID of the VLAN associated with Eth-Trunk 1.1: 10
Host A's IP address: 10.10.10.2/24; Host B's IP address: 10.10.10.3/24
<HUAWEI> system-view [~HUAWEI] sysname CE [*HUAWEI] commit [~CE] vlan 10 [*CE-vlan 10] commit [~CE-vlan 10] quit [~CE] interface gigabitethernet 0/1/1 [~CE-GigabitEthernet0/1/1] portswitch [*CE-GigabitEthernet0/1/1] undo shutdown [*CE-GigabitEthernet0/1/1] port default vlan 10 [*CE-GigabitEthernet0/1/1] commit [~CE-GigabitEthernet0/1/1] quit [~CE] interface gigabitethernet 0/1/2 [~CE-GigabitEthernet0/1/2] portswitch [*CE-GigabitEthernet0/1/2] undo shutdown [*CE-GigabitEthernet0/1/2] port default vlan 10 [*CE-GigabitEthernet0/1/2] commit [~CE-GigabitEthernet0/1/2] quit [~CE] vlan 10 [*CE-vlan 10] port isolate gigabitethernet 0/1/1 gigabitethernet 0/1/2 [*CE-vlan 10] commit [~CE-vlan 10] quit
[~CE] interface gigabitethernet 0/1/3 [~CE-GigabitEthernet0/1/3] portswitch [*CE-GigabitEthernet0/1/3] undo shutdown [*CE-GigabitEthernet0/1/3] port link-type trunk [*CE-GigabitEthernet0/1/3] port trunk allow-pass vlan 10 [*CE-GigabitEthernet0/1/3] commit [~CE-GigabitEthernet0/1/3] quit
<HUAWEI> system-view [~HUAWEI] sysname PE [*HUAWEI] commit [~PE] interface eth-trunk 1.1 [*PE-Eth-Trunk1.1] ip address 10.10.10.1 255.255.255.0 [*PE-Eth-Trunk1.1] commit
# Configure IP addresses for Host A and Host B. The IP addresses must be in the same network segment with the IP address of Eth-Trunk 1.1.
After successful configuration, Host A and Host B can ping the PE, but cannot ping each other.
[~PE-Eth-Trunk1.1] vlan-type dot1q 10 [*PE-Eth-Trunk1.1] commit
[~PE-Eth-Trunk1.1] arp-proxy inner-sub-vlan-proxy enable [*PE-Eth-Trunk1.1] commit
Host A and Host B can ping each other.
PE configuration file
#
sysname PE
#
interface Eth-Trunk1
undo shutdown
#
interface Eth-Trunk1.1
undo shutdown
vlan-type dot1q 10
ip address 10.10.10.1 255.255.255.0
arp-proxy inner-sub-vlan-proxy enable
#
return
CE configuration file
# sysname CE # vlan 10 # interface GigabitEthernet0/1/1 portswitch undo shutdown port default vlan 10 # interface GigabitEthernet0/1/2 portswitch undo shutdown port default vlan 10 # vlan 10 port isolate GigabitEthernet0/1/1 GigabitEthernet0/1/2 # interface GigabitEthernet0/1/3 portswitch undo shutdown port link-type trunk port trunk allow-pass vlan 10 # return