Allied Telesis AT-9000/28POE Switch User Manual


  Open as PDF
of 1480
 
Chapter 17: MAC Address Table
318
Adding Static MAC Addresses
The command for adding static unicast MAC addresses to the switch is
MAC ADDRESS-TABLE STATIC in the Global Configuration mode. Here
is the format of the command:
mac address-table static
macaddress
forward|discard
interface
port
[vlan
vlan-name
|
vid
]
Here are the variables of the command:
macaddress - Use this variable to specify the unicast or multicast
MAC address you want to add to the table. You can add only one
address at a time. In the command, the address must be specified
in either one of the following formats:
xx:xx:xx:xx:xx:xx or xxxx.xxxx.xxxx
forward|discard - Use these variables to specify whether the port is
to forward or discard packets that have the designated source
MAC address.
port - Use this variable to specify the port to which the end node of
an address is connected. You can specify just one port.
vlan-name or VID - Use this variable to specify the name or the ID
number of the VLAN of the port of the address. This information is
optional in the command.
This example adds the static MAC address 00:1B:75:62:10:84 to port 12
in the Default VLAN. The port forwards the packets of the designated
network device:
awplus> enable
awplus# configure terminal
awplus(config)# mac address-table static 00:1b:75:62:10:84
forward interface port1.0.12 vlan 1
This example adds the static MAC address 00:A2:BC:34:D3:67 to port 11
in the VLAN with the ID 4. The port forwards the packets of the designated
network device:
awplus> enable
awplus# configure terminal
awplus(config)# mac address-table static 00:a2:bc:34:d3:67
forward interface port1.0.11 vlan 4
This example adds the static MAC address 00:A0:D2:18:1A:11 to port 7.
The port discards the packets of the designated network device: