Bridging
...)#
show bridge myBridge
3.5.2
Configuring a VLAN-Aware Bridge
In the following example, a VLAN-aware bridge is configured to forward
traffic from/to ATM PVCs and a gigabit Ethernet interface. The range of
PVCs is defined on ATM interface 0 with VPI 0 and VCI from 32 to 131.
The ATM PVCs are configured to support only one VLAN, which is
dynamically computed according to the interface port number, the VPI, and
VCI. First PVC (VPI 0, VCI 32) is configured with VLAN 1, last PVC (VPI 0,
VCI 131) is configured with VLAN 100. The Ethernet interface is configured
to support all the VLANs assigned for the ATM PVCs.
From Global Configuration mode, create a new bridge:
(config)#
bridge myBridge
Configure the bridge as VLAN aware:
(config-bridge)#
protocol vlan
Configure the bridge to support up to 2 virtual ports per VLAN (one PVC
and one Ethernet interface). This is not mandatory:
(config-bridge)#
max-ports-vlan 2
Enter the Virtual Port Configuration mode for default virtual port:
(config-bridge)#
virtual-port default
Configure the VLAN calculation formula:
(config-bridge-port)#
defvlan calc 0 0 -31
Apply configuration and exit from current mode:
(config-bridge-port)#
exit
Apply configuration and exit from Bridge configuration mode:
(config-bridge)#
exit
Enter ATM interface configuration mode:
(config)#
interface atm 0
Create the range of PVCs:
(config-if-atm)#
range rvpi0 pvc 0/32 0/131
128
1553-LZY 214 2655 C 2004-11-24