Configuration Example
137
Configuration
Example
Adding a Static MAC
Address Entry Manually
Network requirements
The server connects to the switch through Ethernet 1/0/2. To prevent the switch
from broadcasting packets destined for the server, it is required to add the MAC
address of the server to the MAC address table of the switch, which then forwards
packets destined for the server through Ethernet 1/0/2.
■
The MAC address of the server is 000f-e20f-dc71.
■
Port Ethernet 1/0/2 belongs to VLAN 1.
Configuration procedure
# Enter system view.
<4210> system-view
[4210]
# Add a MAC address, with the VLAN, ports, and states specified.
[4210] mac-address static 000f-e20f-dc71 interface Ethernet 1/0/2 vlan 1
# Display information about the current MAC address table.
[4210] display mac-address interface Ethernet 1/0/2
MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)
000f-e20f-dc71 1 Config static Ethernet1/0/2 NOAGED
000f-e20f-a7d6 1 Learned Ethernet1/0/2 300
000f-e20f-b1fb 1 Learned Ethernet1/0/2 300
000f-e20f-f116 1 Learned Ethernet1/0/2 300
--- 4 mac address(es) found on port Ethernet1/0/2 ---
Summary of Contents for Switch 4210 9-Port
Page 22: ...20 CHAPTER 1 CLI CONFIGURATION ...
Page 74: ...72 CHAPTER 3 CONFIGURATION FILE MANAGEMENT ...
Page 84: ...82 CHAPTER 5 VLAN CONFIGURATION ...
Page 96: ...94 CHAPTER 8 IP PERFORMANCE CONFIGURATION ...
Page 108: ...106 CHAPTER 9 PORT BASIC CONFIGURATION ...
Page 122: ...120 CHAPTER 11 PORT ISOLATION CONFIGURATION ...
Page 140: ...138 CHAPTER 13 MAC ADDRESS TABLE MANAGEMENT ...
Page 234: ...232 CHAPTER 17 802 1X CONFIGURATION ...
Page 246: ...244 CHAPTER 20 AAA OVERVIEW ...
Page 270: ...268 CHAPTER 21 AAA CONFIGURATION ...
Page 292: ...290 CHAPTER 26 DHCP BOOTP CLIENT CONFIGURATION ...
Page 318: ...316 CHAPTER 29 MIRRORING CONFIGURATION ...
Page 340: ...338 CHAPTER 30 CLUSTER ...
Page 362: ...360 CHAPTER 33 SNMP CONFIGURATION ...
Page 368: ...366 CHAPTER 34 RMON CONFIGURATION ...
Page 450: ...448 CHAPTER 39 TFTP CONFIGURATION ...
Page 451: ......
Page 452: ...450 CHAPTER 39 TFTP CONFIGURATION ...
Page 470: ...468 CHAPTER 40 INFORMATION CENTER ...
Page 496: ...494 CHAPTER 44 DEVICE MANAGEMENT ...