![Huawei AR530 Series Configuration Manual Download Page 94](http://html.mh-extra.com/html/huawei/ar530-series/ar530-series_configuration-manual_169308094.webp)
8.
After receiving the packet, host C returns an ARP reply packet.
9.
After receiving the reply packet, DeviceA sends the packet from host A to host C. All
packets sent from host A to host C are sent to DeviceA first to implement Layer 3
forwarding.
l
VLANIF interface
Layer 3 switching combines routing and switching techniques to implement routing on a
switch, improving the overall performance of the network. After sending the first data flow,
a Layer 3 switch generates a mapping table on which it records the mapping between the
MAC address and the IP address for the data flow. If the switch needs to send the same
data flow again, it directly sends the data flow at Layer 2 based on the mapping table. In
this manner, network delays caused by route selection are eliminated, and data forwarding
efficiency is improved.
In order for new data flows to be correctly forwarded, the routing table must have the correct
routing entries. Therefore, VLANIF interfaces are used to configure routing protocols on
Layer 3 switches to reach Layer 3 routes.
A VLANIF interface is a Layer 3 logical interface, which can be configured on either a
Layer 3 switch or a router.
As shown in
, hosts connected to the switch are assigned to VLAN 2 and VLAN
3. To implement inter-VLAN communication, configure as follows:
–
Create two VLANIF interfaces on the device, and configure IP addresses for them.
–
Set the default gateway address to the IP address of the VLANIF interface mapping the
VLAN to which the user host belongs.
Figure 3-9
Inter-VLAN communication through VLANIF interfaces
VLANIF2
VLANIF3
Device
VLAN2
VLAN3
Host A
Host D
Host C
Host B
Host A communicates with host C as follows:
1.
Host A checks the IP address of host C and determines that host C is in another subnet.
2.
Host A sends an ARP request packet to Device to request Device's MAC address.
3.
After receiving the ARP request packet, Device returns an ARP reply packet in which
the source MAC address is the MAC address of VLANIF2.
Huawei AR530&AR550 Series Industrial Switch Routers
Configuration Guide - Ethernet Switching
3 VLAN Configuration
Issue 01 (2014-11-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
80