xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
94
12
F
ORWARDING
D
ATABASE
C
OMMANDS
The layer 2 forwarding database commands in the Command Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
Command Parameters
create fdb
<vlan_name 32> <macaddr> port <port>
create multicast_fdb
<vlan_name 32> <macaddr>
config multicast_fdb
<vlan_name 32> <macaddr> [add | delete] <portlist>
config fdb aging_time
<sec 10–1000000>
delete fdb
<vlan_name 32> <macaddr>
clear fdb
[vlan <vlan_name 32> | port <port> | all]
show multicast_fdb
{[vlan <vlan_name 32> | vlanid <vidlist>] | mac_address <macaddr>}
show fdb
{ port <port> | [ vlan <vlan_name 32> | vlanid <vidlist>] | mac_address
<macaddr> | static | aging_time}
config multicast filtering_mode
[<vlan_name 32> | all] [forward_all_groups | forward_unregistered_groups |
filter_unregistered_groups]
show multicast filtering_mode
{vlan <vlan_name 32>}
show ipfdb
<ipaddr>
Each command is listed, in detail, in the following sections.
create fdb
Purpose
Used to create a static entry to the unicast MAC address forwarding table (database).
Syntax
create fdb <vlan_name 32> <macaddr> port <port>
Description
This command is used to make an entry in the Switch’s unicast MAC address forwarding
database.
Parameters
<vlan_name 32>
−
The name of the VLAN on which the MAC address resides.
<macaddr>
−
The MAC address that will be added to the forwarding table.
port <port>
−
The port number corresponding to the MAC destination address. The
Switch will always forward traffic to the specified device through this port. The port is
specified by listing the switch number and the port number on that switch, separated by a
colon. For example, 1:3 specifies switch number 1, port 3. 2:4 specifies switch number 2,
port 4.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To create a unicast MAC FDB entry
:
D G S – 3 4 2 6 : 5 # c r e a t e f d b d e f a u l t 0 0 – 0 0 – 0 0 – 0 0 – 0 1 – 0 2 p o r t 1 : 5
C o m m a n d : c r e a t e f d b d e f a u l t 0 0 – 0 0 – 0 0 – 0 0 – 0 1 – 0 2 p o r t 1 : 5
S u c c e s s .
D G S – 3 4 2 6 : 5 #