3com 5500G ユーザーズマニュアル

ページ / 336
62
C
HAPTER
 11: MAC A
DDRESS
 T
ABLE
 M
ANAGEMENT
 C
ONFIGURATION
 G
UIDE
# Add a static MAC address entry.
[3Com] mac-address static 000f-e20f-dc71 interface Ethernet 1/0/2 vlan 1 
# Set the aging time of dynamic MAC address entries on Switch to 500 seconds.
[3Com] mac-address timer aging 500 
# Display the MAC address table configuration in system view.
[3Com] display mac-address interface Ethernet 1/0/2
MAC ADDR
VLAN ID STATE
PORT INDEX
AGING TIME(s)
000f-e20f-dc71
1
Static
Ethernet1/0/2
NOAGED
00e0-fc17-a7d6
1
Learned Ethernet1/0/2
AGING
00e0-fc5e-b1fb
1
Learned Ethernet1/0/2
AGING
00e0-fc55-f116
1
Learned Ethernet1/0/2
AGING
---
4 mac address(es) found on port Ethernet1/0/2 --- 
# Disable Ethernet 1/0/10 from learning MAC addresses dynamically, and add a 
static MAC address entry. So that port Ethernet 1/0/10 can only send packets 
destined for the NMS, and other hosts cannot communicate through this port.
[3Com] interface Ethernet 1/0/10
[3Com-Ethernet1/0/10] port access vlan 10
[3Com-Ethernet1/0/10] mac-address max-mac-count 0
[3Com-Ethernet1/0/10] mac-address static 0014-222c-aa69 vlan 10 
Complete Configuration
#
interface Ethernet1/0/2
port access vlan 10
mac-address static 000f-e20f-dc71 vlan 1
#
interface Ethernet1/0/10
mac-address max-mac-count 0
port access vlan 10
mac-address static 0014-222c-aa69 vlan 10
#
mac-address timer aging 500 
Precautions
When you add a MAC address entry, the port specified by the interface 
keyword must belong to the VLAN specified by the vlan keyword in the 
command. Otherwise, the entry will not be added.
If the VLAN specified by the vlan keyword is a dynamic VLAN, adding a static 
MAC address entry will make the VLAN become a static VLAN.