Huawei Quidway S9300 Configuration Manual page 170

Terabit routing switch
Table of Contents

Advertisement

6 MAC Address Table Configuration
1.
2.
3.
Data Preparation
To complete the configuration, you need the following data:
l
l
l
l
l
l
l
l
Procedure
Step 1 Add static MAC address entries.
# Create VLAN 2; add GE 1/0/1 1/0/2 to VLAN 2; configure VLAN mapping on GE 1/0/1.
<Quidway> system-view
[Quidway] vlan 2
[Quidway-vlan2] quit
[Quidway] interface gigabitethernet 1/0/1
[Quidway-GigabitEthernet1/0/1] port hybrid pvid vlan 2
[Quidway-GigabitEthernet1/0/1] port hybrid untagged vlan 2
[Quidway-GigabitEthernet1/0/1] port vlan-mapping outside-vlan 4 map-vlan 2
[Quidway-GigabitEthernet1/0/1] quit
[Quidway] interface gigabitethernet 1/0/2
[Quidway-GigabitEthernet1/0/2] port hybrid pvid vlan 2
[Quidway-GigabitEthernet1/0/2] port hybrid untagged vlan 2
[Quidway-GigabitEthernet1/0/2] quit
# Configure static MAC address entries.
[Quidway] mac-address static 2-2-2 gigabitethernet 1/0/1 vlan 2
[Quidway] mac-address static 3-3-3 gigabitethernet 1/0/1 vlan 2
[Quidway] mac-address static 4-4-4 gigabitethernet 1/0/2 vlan 2
Step 2 Set the aging time of dynamic MAC address entries.
[Quidway] mac-address aging-time 500
Step 3 Verify the configuration.
# Run the display mac-address command in any view. You can check whether the static MAC
address entries are successfully added.
[Quidway] display mac-address static vlan 2
-------------------------------------------------------------------------------
MAC Address
-------------------------------------------------------------------------------
0004-0004-0004 2
0003-0003-0003 2
6-12
Create a VLAN and add interfaces to the VLAN.
Add static MAC address entries.
Set the aging time of dynamic MAC address entries.
MAC address of PC1: 0002-0002-0002
MAC address of PC2: 0003-0003-0003
MAC address of the server: 0004-0004-0004
VLAN to which the S9300 belongs: VLAN 2
Interface connecting the S9300 to the LSW: GE 1/0/1
Interface connecting the S9300 to the server: GE 1/0/2
VLAN ID required to be changed to when the S9300 sends packets through the outgoing
interface: VLAN 4
Aging time of dynamic entries in the MAC address table of the S9300: 500 seconds
VLAN/
VSI/SI
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
PEVLAN CEVLAN Port
-
-
GE1/0/2
-
-
GE1/0/1
Quidway S9300 Terabit Routing Switch
Configuration Guide - Ethernet
Type
LSP/
MAC-Tunnel
static
-
static
-
Issue 03 (2009-08-20)

Advertisement

Table of Contents
loading

Table of Contents