
7.7.3.
Point of Configuration
Configure static MAC address table entries, make sure the following three elements:
1, destination MAC address the specified table item corresponding to.
2, specify the VLAN that the address belonging to(VLAN id)
3, interface ID (port - ID)
When the switch receives the message with Mac-address as its destination address from the Vlan-id
specified VLAN of the switch, the message will be forwarded to the interface specified by port-id.
The corresponding relationship of MAC address between VLAN, interface in the example is shown in
the table below:
Role
MAC Address
VLAN ID
Interface ID
Web Server
00d0.3232.0001
VLAN10
Gi 0/1
Information Server
00d0.3232.0002
VLAN10
Gi 0/2
Network Administrator
00d0.3232.1000
VLAN10
Gi 0/3
7.7.4.
Configuration Steps
!
enter the global configuration mode of the switch:
Switch>en
Switch#configure terminal
Enter configuration commands, one per line. End with CTRL+Z.
!
Add static MAC address (indicates the belonging VLAN, interface)
Switch(config)#mac-address static 00d0.3232.0001 vlan 10 interface GigabitEthernet 0/1
Switch(config)#mac-address static 00d0.3232.0002 vlan 10 interface GigabitEthernet 0/2
Switch(config)#mac-address static 00d0.3232.1000 vlan 10 interface GigabitEthernet 0/3
7.7.5.
Configuration Verification
Add static MAC address (indicates the belonging VLAN, interface):
Switch#show mac-address static
VLAN MAC TYPE interface STATE index
------ -------------- ------- ----------- -------- -------
10 00D0.3232.0002 STATIC Gi 0/2 FWD ----
10 00D0.3232.0001 STATIC Gi 0/1 FWD ----
10 00D0.3232.1000 STATIC Gi 0/3 FWD ----