1-4
dynamic
: Specifies a dynamic MAC address entry.
blackhole
: Specifies a blackhole MAC address entry.
mac
-
address
: Specifies a MAC address, in the form of H-H-H. When entering the MAC address, you
can omit the leading 0s in each segment. For example, you can input f-e2-1 for 000f-00e2-0001.
interface
-
type interface-number
: Specifies the outgoing port by its type and number for the MAC
address. All traffic destined for the MAC address will be sent out the port.
vlan-id
: Specifies a VLAN ID, in the range of 1 to 4094. The VLAN must already exist.
mac-address-attribute
: Specifies the criteria for removing MAC address entries. Available syntax
options for the argument are described in
Table 1-2
.
Table 1-2
Available syntax options for the
mac-address-attribute
argument
Syntax
Description
{
static
|
dynamic
|
blackhole
}
interface
interface-type interface-number
Removes the static, dynamic, or blackhole MAC
address entries concerning a specified port.
{
static
|
dynamic
|
blackhole
}
vlan vlan-id
Removes the static, dynamic, or blackhole MAC
address entries concerning a specified VLAN.
{
static
|
dynamic
|
blackhole
}
mac-address
[
interface
interface-type interface-number
]
vlan
vlan-id
Removes a specified static, dynamic, or
blackhole MAC address entry.
interface
interface-type interface-number
Removes all the MAC address entries
concerning a specified port.
vlan vlan-id
Removes all the MAC address entries
concerning a specified VLAN.
mac-address
[
interface
interface-type
interface-number
]
vlan
vlan-id
Removes a specified MAC address entry.
Description
Use the
mac-address
command to add or modify a MAC address entry.
Use the
undo mac-address
command to remove one or more MAC address entries.
In Ethernet port view, the MAC address entry configured with the
mac-address
command in Ethernet
port view takes the current Ethernet port as the outgoing port.
If the MAC address you input in the
mac-address
command already exists in the MAC address table,
the system will modify the attributes of the corresponding MAC address entry according to your settings
in the command.
You can remove all unicast MAC address entries on a port, or remove a specific type of MAC address
entries, such as the addresses learnt by the system, dynamic or static MAC address entries configured,
or blackhole addresses.
Examples
# Configure a static MAC address entry with the following settings:
z
MAC address: 000f-e20f-0101
z
Outbound port: GigabitEthernet 1/0/1 port
z
GigabitEthernet 1/0/1 port belongs to VLAN 2.
<Sysname> system-view
Summary of Contents for 5500-EI PWR
Page 43: ...2 6...
Page 76: ...1 17...
Page 228: ...ii stp transmit limit 1 44 vlan mapping modulo 1 45 vlan vpn tunnel 1 46...
Page 477: ...5 24 Sysname vlan 2 Sysname vlan2 service type multicast...
Page 503: ...2 3 System View return to User View with Ctrl Z Sysname dot1x url http 192 168 19 23...
Page 519: ...iii...
Page 597: ...2 2 security policy server 192 168 0 1 user name format without domain...
Page 648: ...1 9 Examples Clear static ARP entries Sysname reset arp static...
Page 663: ...4 3 Sysname resilient arp interface vlan interface 2...
Page 767: ...1 28 From 12 00 Jan 1 2008 to 12 00 Jun 1 2008...
Page 1111: ...ii xmodem get 3 18...
Page 1314: ...A 44 Z...