EasyManua.ls Logo

Huawei AR3200 Series - Page 131

Huawei AR3200 Series
275 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
l Ethernet 2/0/1 of RouterB belongs to VLAN 30, and IP address of VLANIF 30 is
30.30.30.2/24.
l IP address of the computer on the Layer 2 network connected to RouterA is 10.10.10.2/24.
l IP address of the computer on the Layer 2 network connected to RouterB is 20.20.20.2/24.
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
[RouterA-Vlanif10] quit
[RouterA] interface vlanif 30
[RouterA-Vlanif30] ip address 30.30.30.1 24
[RouterA-Vlanif30] quit
# Configure basic OSPF functions.
[RouterA] router id 1.1.1.1
[RouterA] ospf
[RouterA-ospf-1] area 0
[RouterA-ospf-1-area-0.0.0.0] network 10.10.10.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0] network 30.30.30.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0] quit
Step 2 Configure RouterB.
# Create VLANs.
<Huawei> system-view
[Huawei] sysname RouterB
[RouterB] vlan batch 10 30
# Add interfaces to the VLANs.
[RouterB] interface ethernet 2/0/2
[RouterB-Ethernet2/0/2] port link-type trunk
[RouterB-Ethernet2/0/2] port trunk allow-pass vlan 10
[RouterB-Ethernet2/0/2] quit
[RouterB] interface ethernet 2/0/1
[RouterB-Ethernet2/0/1] port link-type trunk
[RouterB-Ethernet2/0/1] port trunk allow-pass vlan 30
[RouterB-Ethernet2/0/1] quit
# Assign IP addresses to the VLANIF interfaces.
[RouterB] interface vlanif 10
[RouterB-Vlanif10] ip address 20.20.20.1 24
Huawei AR3200 Series Enterprise Routers
Configuration Guide - LAN 3 VLAN Configuration
Issue 02 (2012-03-30) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
120

Table of Contents

Related product manuals