62CHAPTER 11: MAC ADDRESS TABLE MANAGEMENT CONFIGURATION GUIDE
# Add a static MAC address entry.
[3Com]
# Set the aging time of dynamic MAC address entries on Switch to 500 seconds.
[3Com]
# Display the MAC address table configuration in system view.
[3Com] display | |||
MAC ADDR | VLAN ID STATE PORT INDEX | AGING TIME(s) | |
Static | Ethernet1/0/2 | NOAGED | |
Learned | Ethernet1/0/2 | AGING | |
Learned | Ethernet1/0/2 | AGING | |
Learned | Ethernet1/0/2 | AGING | |
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 |
| |
| |
| |
Complete Configuration | # |
| interface Ethernet1/0/2 |
| port access vlan 10 |
| |
| # |
| interface Ethernet1/0/10 |
| |
| port access vlan 10 |
| |
| # |
| |
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. |