3 show mac-address-table – PLANET XGS3-24040 User Manual

Page 185

Advertising
background image

12-51

<mac-addr> MAC address to be added or deleted;

<interface-name> name of the port transmitting the MAC data packet;

<vlan-id> is the vlan number.

source is based on source address filter;

destination is based on destination address filter;

both is based on source address and destination address filter, the default is both.

Command Mode:

Global Mode

Default:

When VLAN interface is configured and is up, the system will generate an static address mapping

entry of which the inherent MAC address corresponds to the VLAN number.

Usage Guide:

In certain special applications or when the switch is unable to dynamically learn the MAC address,

users can use this command to manually establish mapping relation between the MAC address and

port and VLAN.

no mac-address-table command is for deleting all dynamic, static, filter MAC address entries

existing in the switch MAC address list, except for the mapping entries retained in the system

default.

Example:

Port 1/1 belongs to VLAN200, and establishes address mapping with MAC address

00-30-4f-f0-00-18.

Switch(config)#mac-address-table static address 00-30-4f-f0-00-18 vlan 200 interface ethernet

1/1

12.1.3 show mac-address-table

Command:

show mac-address-table [static | blackhole | multicast | aging-time <aging-time> | count]

[address <mac-addr>] [vlan <vlan-id>] [count] [interface <interface-name>]

Function:

Show the current MAC table.

Parameter:

static static entries; blackhole filter entries; aging-time <aging-time> address aging time; count

entry’s number, multicast multicast entries; <mac-addr> entry’s MAC address; <vlan-id> entry’s

VLAN number; <interface-name> entry’s interface name.

Command mode:

Admin Mode and Configuration Mode.

Default:

MAC address table is not displayed by default.

Usage guide:

This command can display various sorts of MAC address entries. Users can also use show

mac-address-table to display all the MAC address entries.

Example:

Display all the filter MAC address entries.

Advertising