The following example shows how to associate a GigabitEthernet interface from a bridge domain to static
MAC address 1.1.1:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# l2vpn
RP/0/0/CPU0:router(config-l2vpn)# bridge group 1
RP/0/0/CPU0:router(config-l2vpn-bg)# bridge-domain bar
RP/0/0/CPU0:router(config-l2vpn-bg-bd)# interface GigabitEthernet 0/1/0/0
RP/0/0/CPU0:router(config-l2vpn-bg-bd-ac)# static-mac-address 1.1.1
The following example shows how to associate an access pseudowire to static MAC address 2.2.2:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# l2vpn
RP/0/0/CPU0:router(config-l2vpn)# bridge group 1
RP/0/0/CPU0:router(config-l2vpn-bg)# bridge-domain bar
RP/0/0/CPU0:router(config-l2vpn-bg-bd)# neighbor 10.1.1.2 pw-id 2000
RP/0/0/CPU0:router(config-l2vpn-bg-bd-pw)# static-mac-address 2.2.2
Related Commands
DescriptionCommand
Establishes a bridge domain, and enters L2VPN bridge group bridge
domain configuration mode.
bridge-domain (VPLS), on page 159
Creates a bridge group so that it can contain bridge domains and
then to assign network interfaces to the bridge domain.
bridge group (VPLS), on page 161
Enters L2VPN configuration mode.l2vpn, on page 49
Configures the MPLS static labels and the static labels for the access
pseudowire configuration.
mpls static label (VPLS), on page 179
Adds an access pseudowire port to a bridge domain or a pseudowire
to a bridge virtual forwarding interface (VFI).
neighbor (VPLS), on page 183
Configures virtual forwarding interface (VFI) parameters.vfi (VPLS), on page 222
Cisco IOS XR Virtual Private Network Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28460-01 217
Virtual Private LAN Services Commands
static-mac-address (VPLS)