Figure 3-24
Network diagram of communication across a Layer 3 network through VLANIF
interfaces
Eth2/0/1
VLANIF30
10.10.30.2/24
Eth2/0/2
VLANIF30
10.10.30.1/24
VLAN 10
VLAN 10
OSPF
RouterA
RouterB
10.10.10.2/24
10.10.20.2/24
VLAN 30
Eth2/0/1
VLANIF10
10.10.10.1/24
Eth2/0/2
VLANIF10
10.10.20.1/24
Configuration Roadmap
The configuration roadmap is as follows:
1.
Add interfaces to the VLANs.
2.
Assign IP addresses to VLANIF interfaces.
3.
Configure basic OSPF functions.
Procedure
Step 1
Configure RouterA.
# Create VLANs.
<Huawei>
system-view
[Huawei]
sysname RouterA
[RouterA]
vlan batch 10 30
# Add interfaces to the VLANs.
[RouterA]
interface ethernet 2/0/1
[RouterA-Ethernet2/0/1]
port link-type trunk
[RouterA-Ethernet2/0/1]
port trunk allow-pass vlan 10
[RouterA-Ethernet2/0/1]
quit
[RouterA]
interface ethernet 2/0/2
[RouterA-Ethernet2/0/2]
port link-type trunk
[RouterA-Ethernet2/0/2]
port trunk allow-pass vlan 30
[RouterA-Ethernet2/0/2]
quit
# Assign IP addresses to the VLANIF interfaces.
[RouterA]
interface vlanif 10
[RouterA-Vlanif10]
ip address 10.10.10.1 24
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.
114