D-Link Dis-200G Series Cli Reference Manual page 67

Industrial gigabit ethernet switch
Hide thumbs Also See for Dis-200G Series:
Table of Contents

Advertisement

Switch# configure terminal
Switch(config)# mac-address-table learning interface Ethernet 1/0/1
Switch(config)#
13-4 mac-address-table static
This command is used to add a static address to the MAC address table. Use the no form of this command to
remove a static MAC address entry from the table.
mac-address-table static MAC-ADDR vlan VLAN-ID {interface INTERFACE-ID [, | -]}
no mac-address-table static {all | MAC-ADDR vlan VLAN-ID [interface INTERFACE-ID] [, | -]}
Parameters
MAC-ADDR
vlan VLAN-ID
interface INTERFACE-ID
,
-
all
Default
None.
Command Mode
Global Configuration Mode.
Command Default Level
Level: 15.
Usage Guideline
For a unicast MAC address entry, only one interface can be specified. For a multicast MAC address entry,
multiple interfaces can be specified. To delete a unicast MAC address entry, there is no need to specify the
interface ID. To delete a multicast MAC address entry, if an interface ID is specified, only this interface will be
removed. Otherwise, the entire multicast MAC entry will be removed.
Example
This example shows how to add the static address C2:F3:22:0A:12:F4 to the MAC address table. It also
specifies that when any packet received on VLAN 4 that has a destination MAC address of C2:F3:22:0A:12:F4
will be forwarded to the Ethernet interface 1/0/1.
Switch# configure terminal
Switch(config)# mac-address-table static C2:F3:22:0A:12:F4 vlan 4 interface
DIS-200G Series Gigabit Ethernet Switch CLI Reference Guide
Specifies the MAC address of the entry. The address can be a
unicast or a multicast entry. Packets with a destination address that
match this MAC address received by the specified VLAN are
forwarded to the specified interface.
Specifies the VLAN of the entry. The range is 1 to 4094.
Specifies the forwarding ports.
(Optional) Specifies a series of interfaces, or separate a range of
interfaces from a previous range. No spaces are allowed before and
after the comma.
(Optional) Specifies a range of interfaces. No spaces are allowed
before and after the hyphen.
Specifies to remove all static MAC address entries.
63

Advertisement

Table of Contents
loading

Table of Contents