Bridge domains can be marked with a VLAN tag, or they can remain untagged.
Create a Bridge Domain That Uses VLAN Tagging
For a bridge domain that uses VLAN tagging, a tag, called a VLAN ID, is inserted into all frame headers sent by the domain
This tag identifies which VLAN the frames belong to, and it is used to determine which interfaces the Cisco vEdge device should send broadcast packets to.
To configure a bridge domain that uses VLAN tagging, create a bridging domain, assign a VLAN tag to that domain, and associate
an interface with the domain:
-
Create a bridging domain:
Device(config)# bridge bridge-id
Each domain is identified by a unique integer, in the range 1 through 63. Each Cisco vEdge device can have up to 16 bridging domains.
-
Tag the bridging domain with a VLAN ID:
Device(config-bridge)# vlan number
The VLAN identifier can be a value from 1 through 4095.
-
Associate an interface with the bridging domain, and enable that interface:
Device(config-bridge)# interface ge slot/port
vEdge(config-interface)# no shutdown
The interface must be a physical interface. You cannot use subinterfaces.
After you have added physical interfaces to a VLAN, if you want to change the VLAN identifier, you must first delete all the
interfaces from the VLAN. Then configure a new VLAN identifier, and re-add the interfaces to the VLAN.
You can also configure these optional parameters:
-
Configure a description for the VLAN interface, to help identify the interface in operational command output:
Device(config-bridge)#interface ge slot/port
vEdge(config-interface)# description "text-description"
-
Configure a static MAC address for the VLAN interface:
Device(config-interface)# static-mac-address aa:bb:cc:dd:ee:ff
-
Configure a name for the VLAN, to help identify the VLAN in operational command output:
Device(config-bridge)# name "text description"
-
By default, a bridging domain can learn up to 1024 MAC addresses. You can modify this to a value from 0 through 4096:
Device(config-bridge)# max-macs number
-
By default, MAC table entries age out after 300 seconds (5 minutes). You can modify this to a value from 10 through 4096 seconds:
Device(config-bridge)# age-time seconds
Here is an example configuration:
Device# config
Device(config)# bridge 2
Device(bridge-2)# vlan 27
Device(bridge-2)# interface ge0/4
Device(interface-ge0-4)# no shutdown
Device(interface-ge0-4)# description "VLAN tag = 27"
Device(interface-ge0/4)# commit and-quit
Device# show running-config bridge
bridge 2
vlan 27
interface ge0/4
description "VLAN tag = 27"
no native-vlan
no shutdown
!
!
Device#
After your have configured an interface in a bridge domain, you add or change a VLAN identifier for that domain only by first
deleting the bridge domain from the configuration (with a no bridge
bridge-id command) and then reconfiguing the domain with the desired interface name and VLAN tag identifier.
To see which interfaces bridging is running on, use the show bridge interface command:
Device# show bridge interface
ADMIN OPER ENCAP RX RX TX TX
BRIDGE INTERFACE VLAN STATUS STATUS TYPE IFINDEX MTU PKTS OCTETS PKTS OCTETS
-------------------------------------------------------------------------------------------
2 ge0/4 27 Up Up vlan 41 1500 4 364 0 0
"Up" in the Admin Status column indicates that the interface has been configured, and "Up" in the Oper Status column indicates
that bridging is running on the interface.
Create a Bridge Domain with an Untagged VLAN
All frames in an untagged VLAN are sent with no VLAN tag, or VLAN ID, in the frame header. For frames that already contain
a tag, the tag is removed before it is sent.
In the minimal configuration for a tagged VLAN, you simply create a bridging domain that contains an interface:
-
Create a bridging domain. This domain is identified by a unique integer.
Device(config)# bridge number
On each Cisco vEdge router, you can configure up to 16 bridging domains.
-
Associate an interface with the bridging domain, and enable that interface:
Device(config-bridge)# interface interface-name
Device(config-interface)# no shutdown
You can also configure the optional parameters described in the previous section.
Configure a Native VLAN
In the minimal configuration for a native VLAN, you create a bridging domain that contains an interface, and you mark that
interface as a native VLAN interface:
-
Create a bridging domain. This domain is identified by a unique integer.
Device(config)# bridge number
On each vEdge router, you can configure up to 16 bridging domains.
-
Associate an interface with the bridging domain, and enable that interface:
Device(config-bridge)# interface interface-name
Device(config-interface)# no shutdown
-
Enabled native VLAN on the interface:
Device(config-interface)# native-vlan
You can also configure the optional parameters described in the section about creating a tagged VLAN.