Figure 1-5
Network diagram for configuring Layer 2 topology detection
PC A
PC B
VLANIF100
10.1.1.2/24
Router
VLAN100
10.1.1.1/24
10.1.1.3/24
Etherent 0/0/0
Etherent 0/0/1
Configuration Roadmap
The configuration roadmap is as follows:
1.
Add two Ethernet interfaces to VLAN 100 in default mode.
2.
Enable Layer 2 topology detection to view changes of ARP entries.
Data Preparation
To complete the configuration, you need the following data:
l
Types and numbers of the interfaces to be added to a VLAN
l
IP addresses of the VLANIF interface and the PCs
Procedure
Step 1
Create VLAN 100 and add the two Ethernet interfaces on the Router to VLAN 100 in default
mode.
# Create VLAN 100 and configure an IP addresses for the VLANIF interface.
<Huawei>
system-view
[Huawei]
sysname Router
[Router]
vlan 100
[Router-vlan100]
quit
[Router]
interface vlanif 100
[Router-vlanif100]
ip address 10.1.1.2 24
[Router-vlanif100]
quit
# Add the two Ethernet interfaces to VLAN 100 in default mode.
[Router]
interface ethernet 0/0/0
[Router-Ethernet0/0/0]
port link-type access
[Router-Ethernet0/0/0]
port default vlan 100
[Router-Ethernet0/0/0]
quit
[Router]
interface ethernet 0/0/1
[Router-Ethernet0/0/1]
port link-type access
[Router-Ethernet0/0/1]
port default vlan 100
[Router-Ethernet0/0/1]
quit
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - IP Service
1 ARP Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
35