13 FORWARDING DATABASE Commands
The Forwarding Database commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameter
create fdb <vlan_name 32> <macaddr> port <port 1-maxport>
create multicast_fdb <integer 1-4094> <macaddr>
config multicast_fdb <integer 1-4094> <macaddr> [add | delete] <portlist>
config fdb aging_time <sec 10-600>
delete fdb <vlan_name 32> <macaddr>
clear flood_fdb
show multicast_fdb {vlan <vlan_name 32> | mac_address <macaddr>}
show fdb {port <port 1-maxport> | vlan <vlan_name 32> | vlanid <vidlist> | mac_address <macaddr> | static | aging_time}
config
multicast_filtering_mode [vlan <vlan_name 32>] [forward_unregistered_groups | filter_unregistered_groups]
show
multicast_filtering_mode {vlan <vlan_name 32>}
Each command is listed in detail, as follows:
create fdb
The create fdb command creates a static entry in the Switch’s unicast MAC address forwarding database.
create fdb
Syntax create fdb <vlan_name 32> <macaddr> port <port 1-maxport>
Parameter <vlan_name 32> − The name of the VLAN on which the MAC address resides.
<macaddr> − The MAC address to be added to the forwarding table.
For example, 01:00:5E:00:00:00.
port <port 1-maxport> − The port number corresponding to the MAC destination address. The Switch will always forward traffic to the specified device through this port.
Note: The syntax maxport for DES-1210-10 is DES-1210-10 and 28 for DES-12DES-1210-10-38.
create multicast_fdb
The create multicast_fdb command creates a static entry in the multicast MAC address forwarding table (database).
create fdb
Syntax create multicast_fdb <integer 1-4094> <macaddr>
Parameter <integer 1-4094> − The item of the VLAN on which the MAC address resides. The range is between 1 and 4094.
<macaddr> − The MAC address to be added to the forwarding table.
14B13 FORWARDING DATABASE Commands
D-Link Web Smart Switch CLI Guideconfig multicast_fdb
The config multicast_fdb command configures the multicast MAC address forwarding table.
config multicast_fdb
Syntax config multicast_fdb <integer 1-4094> <macaddr> [add | delete]
<portlist>
Parameter <integer 1-4094> − The item of the VLAN on which the MAC address resides. The range is between 1 and 4094.
<macaddr> − The MAC address to be configured to the forwarding table.
add − Specifies that the MAC address is to be added to the forwarding table. Delete will remove the MAC address from the forwarding table.
delete − Specifies that the MAC address is to be removed from the forwarding table.
<portlist> − A port or range of ports to be configured.
config fdb aging_time
The config fdb aging_time command sets the aging time of the forwarding database. The aging time affects the learning process of the Switch. Dynamic forwarding table entries, which are made up of the source MAC addresses and their associated port numbers, are deleted from the table if they are not accessed within the aging time. The aging time can be from 0 to 600 seconds with a default value of 5 minutes. A very long aging time can result in dynamic forwarding table entries that are out-of-date or no longer exist. This may cause incorrect packet forwarding decisions by the Switch. If the aging time is too short however, many entries may be aged out too soon. This will result in a high percentage of received packets whose source addresses cannot be found in the forwarding table, in which case the Switch will broadcast the packet to all ports, negating many of the benefits of having a Switch.
config fdb aging_time
Syntax config fdb aging_time <sec 10-600>
Parameter <sec 0-600> − The aging time for the MAC address forwarding database value, in seconds.
delete fdb
The delete fdb command deletes an entry in the Switch’s MAC address forwarding database.
delete fdb
Syntax delete fdb <vlan_name 32> <macaddr>
Parameter <vlan_name 32> − The name of the VLAN on which the MAC address resides.
<macaddr> − The MAC address to be removed from the forwarding table.
clear flood_fdb
The clear flood_fdb command clears dynamically learned entries from the Switch’s forwarding database.
clear flood_fdb
Syntax clear flood_fdb
Parameter None.
show multicast_fdb
The show multicast_fdb command displays the current contents of the Switch’s multicast MAC
14B13 FORWARDING DATABASE Commands
D-Link Web Smart Switch CLI Guideshow multicast_fdb
Syntax show multicast_fdb {vlan <vlan_name 32> | mac_address
<macaddr>}
Parameter vlan <vlan_name 32> − The name of the VLAN on which the MAC address resides.
mac_address <macaddr> − The MAC address that will be added to the forwarding table.
show fdb
The show fdb command displays the current contents of the Switch’s forwarding database.
show fdb
Syntax show fdb {port <port 1-maxport> | vlan <vlan_name 32> | vlanid
<vidlist> | mac_address <macaddr> | static | aging_time}
Parameter <port 1-maxport> − The port number corresponding to the MAC destination address. The Switch always forwards traffic to the specified device through this port.
<vlan_name 32> − The name of the VLAN on which the MAC address resides.
<vidlist> − The vid of the VLAN on which the MAC address resides.
<macaddr> − The MAC address entry in the forwarding table.
static − Specifies that static MAC address entries are to be displayed.
aging_time − Displays the aging time for the MAC address forwarding database.
Note: The syntax maxport for DES-1210-10 is DES-1210-10 and 28 for DES-12DES-1210-10-38.
config multicast_filtering_mode
The config multicast_filtering_mode command enables filtering of multicast addresses.
config multicast_filtering_mode
Syntax config multicast_filtering_mode [vlan <vlan_name 32>]
[forward_unregistered_groups | filter_unregistered_groups]
Parameter <vlan_name 32> − The name of the VLAN on which the MAC address resides.
forward_unregistered_groups - Forwards unregistered multicast packets.
filter_unregistered_groups - Filter unregistered multicast packets.
show multicast_filtering_mode
The show multicast_filtering_mode command displays the filtering of multicast addresses.
show multicast_filtering_mode
Syntax show multicast_filtering_mode {vlan <vlan_name 32>}
Parameter <vlan_name 32> − The name of the VLAN on which the MAC address resides.