
Configuration Roadmap
The configuration roadmap is as follows:
1.
Add two GE interfaces to VLAN 100 in default mode.
2.
Enable Layer 2 topology detection and 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 GE interfaces of the Switch to VLAN 100 in default mode.
# Create VLANIF 100 and assign an IP addresses to VLANIF 100.
<Quidway>
system-view
[Quidway]
vlan 100
[Quidway-vlan100]
quit
[Quidway]
interface vlanif 100
[Quidway-vlanif100]
ip address 10.1.1.2 24
[Quidway-vlanif100]
quit
# Add the two GE interfaces to VLAN 100 in default mode.
[Quidway]
interface gigabitethernet 0/0/1
[Quidway-GigabitEthernet0/0/1]
port link-type access
[Quidway-GigabitEthernet0/0/1]
port default vlan 100
[Quidway-GigabitEthernet0/0/1]
quit
[Quidway]
interface gigabitethernet 0/0/2
[Quidway-GigabitEthernet0/0/2]
port link-type access
[Quidway-GigabitEthernet0/0/2]
port default vlan 100
[Quidway-GigabitEthernet0/0/2]
quit
Step 2
# Enable Layer 2 topology detection.
[Quidway]
l2-topology detect enable
Step 3
Restart GE 0/0/1 and view changes of the ARP entries and aging time.
# View ARP entries on the Switch. You can find that the Switch has learnt the MAC address of
the PC.
[Quidway]
display arp all
IP ADDRESS MAC ADDRESS EXPIRE(M) TYPE INTERFACE VPN-
INSTANCE
VLAN
-----------------------------------------------------------------------------
10.1.1.2 00e0-c01a-4900 I - Vlanif100
10.1.1.1 00e0-c01a-4901 20 D-0 GE0/0/1
10.1.1.3 00e0-de24-bf04 20 D-0 GE0/0/2
-----------------------------------------------------------------------------
Total:3 Dynamic:2 Static:0 Interface:1
# Run the
shutdown
command and then the
undoshutdown
command on GE 0/0/1 to view the
aging time of ARP entries.
[Quidway]
interface gigabitethernet 0/0/1
[Quidway-GigabitEthernet0/0/1]
shutdown
[Quidway-GigabitEthernet0/0/1]
undo shutdown
[Quidway-GigabitEthernet0/0/1]
display arp all
Quidway S2700 Series Ethernet Switches
Configuration Guide - IP Service
2 ARP Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
33