Pre-configuration Tasks
Before creating a VLANIF interface, complete the following tasks:
l
Create a VLAN.
l
Associate the VLAN with the physical interface.
3.6.2.1 Configuring VLANIF Interfaces for Inter-VLAN Communication
Context
After VLANs are configured, users in the same VLAN can communication with each other while
users in different VLANs cannot. To implement inter-VLAN communication, configure
VLANIF interfaces which are Layer 3 logical interfaces.
If a VLAN goes Down because all ports in the VLAN go Down, the system immediately reports
the VLAN Down event to the corresponding VLANIF interface, instructing the VLANIF
interface to go Down. To prevent network flapping caused by changes of VLANIF interface
status, enable VLAN damping on the VLANIF interface. After the last Up port in a VLAN goes
Down, the system starts a delay timer and informs the corresponding VLANIF interface of the
VLAN Down event after the timer expires. If a port in the VLAN goes Up during the delay
period, the VLANIF interface remains Up.
MTU is short for maximum transmission unit. An MTU value determines the maximum number
of bytes each time a sender can send. If the size of packets exceeds the MTU supported by a
transit node or a receiver, the transit node or receiver fragments the packets or even discards
them, aggravating the network transmission load. To avoid this problem, set the MTU value of
the VLANIF interface.
After configuring bandwidth for VLANIF interfaces, you can use the NMS to query the
bandwidth. This facilitates traffic monitoring.
NOTE
To implement communication between VLANs, hosts in each VLAN must use the IP address of the
corresponding VLANIF interface as the gateway address.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
interface vlanif
vlan-id
A VLANIF interface is created and the VLANIF interface view is displayed.
The VLAN ID specified in this command must be the ID of an existing VLAN.
A VLANIF interface is Up only when at least one physical port added to the corresponding
VLAN is Up.
Step 3
Run:
ip address
ip-address
{
mask
|
mask-length
} [
sub
]
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.
96