create fdb vlan ports

create fdb mac_addr vlan vlan_name [ports port_list {tagged tag} | blackhole]

Description

Creates a permanent static FDB entry.

Syntax Description

mac_addr Specifies a device MAC address, using colon-separated bytes.
vlan_name Specifies a VLAN name associated with a MAC address.
port_list Specifies one or more ports or slots and ports associated with the MAC address.
tagged tag Specifies the port-specific VLAN tag. When there are multiple ports specified in port_list, the same tag is used for all of them.
blackhole Enables the blackhole option. Any packets with either a source MAC address or a destination MAC address matching the FDB entry are dropped.

Default

N/A.

Usage Guidelines

Permanent entries are retained in the database if the switch is reset or a power off/on cycle occurs. A permanent static entry can either be a unicast or multicast MAC address. After they have been created, permanent static entries stay the same as when they were created. If the same MAC address and VLAN is encountered on another virtual port that is not included in the permanent MAC entry, it is handled as a blackhole entry. The static entry is not updated when any of the following take place:
  • A VLAN identifier (VLANid) is changed.
  • A port is disabled.
  • A port enters blocking state.
  • A port goes down (link down).
A permanent static FDB entry is deleted when any of the following take place:
  • A VLAN is deleted.
  • A port mode is changed (tagged/untagged).
  • A port is deleted from a VLAN.

Permanent static entries are designated by spm in the flags field of the show fdb output. You can use the show fdb command to display permanent FDB entries.

If the static entry is for a PVLAN VLAN that requires more than one underlying entry, the system automatically adds the required entries. For example, if the static entry is for a PVLAN network VLAN, the system automatically adds all required extra entries for the subscriber VLANs.

You can create FDB entries to multicast MAC addresses and list one or more ports. If more than one port number is associated with a permanent MAC entry, packets are multicast to the multiple destinations.

IGMP snooping rules take precedence over static multicast MAC addresses in the IP multicast range (01:00:5e:xx:xx:xx) unless IGMP snooping is disabled.

Note

Note

When a multiport list is assigned to a unicast MAC address, load sharing is not supported on the ports in the multiport list.

Example

The following command adds a permanent, static entry to the FDB for MAC address 00 E0 2B 12 34 56, in VLAN marketing on slot 2, port 4 on a modular switch:

create fdb 00:E0:2B:12:34:56 vlan marketing port 2:4

The following example creates a multiport unicast FDB entry, in VLAN black, on slot 1, ports 1, 2, and 4, on the BlackDiamond 8800 family of switches:

create fdb 01:00:00:00:00:01 vlan black port 1:1, 1:2, 1:4

The following example adds a permanent, static entry to the FDB for MAC address 00:01:02:03:04:05, in VLAN marketing, on a VLAN port that has tag 100 on port 3 on a switch:

create fdb 00:01:02:03:04:05 vlan msk ports 3 tag 100

History

This command was first available in ExtremeXOS 10.1.

The ability to create a multicast FDB with multiple entry ports was added in ExtremeXOS 11.3.

The blackhole option was first available for all platforms in ExtremeXOS 12.1.

The ability to create a unicast FDB with multiple entry ports was available for the BlackDiamond 8000 c-, and e-series modules in ExtremeXOS 12.1. This feature is supported on all later platforms when introduced.

The tag keyword and example was added in ExtremeXOS 15.4.

Platform Availability

This command is available on all platforms.