Configuring VLANs over Bridged Ethernet
This section describes how to create the following common static VLAN over bridged Ethernet configurations:
- IP over VLAN over bridged Ethernet
- PPPoE over VLAN over bridged Ethernet
- MPLS over VLAN over bridged Ethernet
You can also configure transparent bridging over VLANs over bridged Ethernet. For information about configuring transparent bridging, see Chapter 13, Configuring Transparent Bridging.
Configuring VLANs over bridged Ethernet interfaces consists of two basic tasks:
- Configure the layers up to and including the VLAN subinterface. The steps for this task are common to all configurations.
- Configure the higher-level protocols above the VLAN subinterface.
The following sections describe how to configure VLANs over bridged Ethernet. For more information about the commands used in these procedures, see the command descriptions listed in alphabetical order at the end of Configuring Higher-Level Protocols over VLANs.
Configuring VLAN Subinterfaces over Bridged Ethernet
To configure a VLAN subinterface over bridged Ethernet:
- Create an ATM 1483 subinterface and associated PVC.
host1(config)#interface atm 4/0.101host1(config-subif)#atm pvc 1 0 32 aal5snap 0 0 0- Specify bridged Ethernet as the encapsulation method for the ATM 1483 subinterface.
host1(config-subif)#encapsulation bridge1483- Create a VLAN major interface by specifying VLAN as the encapsulation method for the bridged Ethernet interface.
host1(config-subif)#encapsulation vlan- Create a VLAN subinterface to carry the higher-level protocols by adding a subinterface number to the interface identification command.
host1(config-subif)#interface atm 4/0.101.1- Assign a VLAN ID for the subinterface.
host1(config-subif)#vlan id 10- (Optional) Configure additional VLAN subinterfaces by repeating Steps 4 and 5, using unique values.
host1(config-subif)#interface atm 4/0.101.2host1(config-subif)#vlan id 11Proceed to the next section for instructions on configuring higher-level protocols over the VLAN subinterfaces.
Configuring Higher-Level Protocols over VLANs
This section provides examples for configuring IP, PPPoE, and MPLS interfaces over VLAN subinterfaces configured on bridged Ethernet. These procedures assume that you have already configured one or more VLAN subinterfaces over the bridged Ethernet interface to carry the higher-level protocols.
Configuring IP over VLAN
To configure IP over VLAN over a bridged Ethernet interface:
- Follow the steps in Configuring VLAN Subinterfaces over Bridged Ethernet to configure the VLAN subinterface.
- Assign an IP address and mask to the VLAN subinterface.
host1(config-subif)#ip address 10.1.1.1 255.255.255.0Configuring PPPoE over VLAN
To configure PPPoE over VLAN over a bridged Ethernet interface:
- Follow the steps in Configuring VLAN Subinterfaces over Bridged Ethernet to configure the VLAN subinterface.
- Create a PPPoE major interface on the VLAN subinterface.
host1(config-subif)#pppoe- Exit the subinterface context.
host1(config-subif)#exit- Create a PPPoE subinterface by adding a subinterface number to the interface identification command.
host1(config)#pppoe subinterface atm 4/0.101.2.1- Specify PPP as the encapsulation method on the interface.
host1(config-subif)#encapsulation ppp- Assign an IP address and mask to the interface.
host1(config-subif)#ip address 10.1.1.2 255.255.255.0Configuring MPLS over VLAN
To configure MPLS over VLAN over a bridged Ethernet interface:
- Follow the steps in Configuring VLAN Subinterfaces over Bridged Ethernet to configure the VLAN subinterface.
- Enable MPLS on the VLAN subinterface.
host1(config-subif)#mplsatm pvc
- aal5snapSpecifies a logical link control (LLC) encapsulated circuit; LLC/Subnetwork Access Protocol (LLC/SNAP) header precedes the protocol datagram.
- aal5mux ipSpecifies a VC multiplexed circuit. This option is used for IP only.
host1(config-subif)#atm pvc 1 5 50 aal5snap 0 0 0Use the no version to remove the specified PVC. encapsulation bridge1483
host1(config-subif)#encapsulation bridge1483Use the no version to remove bridged Ethernet as the encapsulation method on the interface. encapsulation ppp
host1(config-subif)#encapsulation pppUse the no version to remove PPP as the encapsulation method on the interface. encapsulation vlan
host1(config-subif)#encapsulation vlanUse the no version to remove VLAN as the encapsulation method on the interface. interface atm
- Use to configure an ATM interface, ATM 1483 subinterface, or VLAN subinterface.
- On ERX-7xx models, ERX-14xx models, and the ERX-310 router, use the slot/port.subinterface.vlanSubinterface format.
- On E120 and E320 routers, use the slot/adapter/port.subinterface.vlanSubinterface format.
- For more information, see Creating a Basic Configuration in Chapter 1, Configuring ATM.
- Example 1Configures a VLAN subinterface over bridged Ethernet on ERX-7xx models, ERX-14xx models, and the ERX-310 router
host1(config)#interface atm 4/2.2 point-to-pointhost1(config-subif)#interface atm 4/2.2.3Example 2Configures a VLAN subinterface over bridged Ethernet on the E320 router host1(config)#interface atm 4/0/2.2 point-to-pointhost1(config-subif)#interface atm 4/0/2.2.3Use the no version to remove the interface or subinterface. ip address
- Use to set an IP address for the interface.
- Note that you cannot add more than one IP address to bridged Ethernet interfaces.
- Example
host1(config-subif)#ip address 10.1.2.3 255.255.255.255Use the no version to remove the IP address. mpls
host1(config)#mplsUse the no version to halt MPLS on the interface and delete the MPLS interface configuration. pppoe
host1(config-subif)#pppoeUse the no version to remove the PPPoE major interface. pppoe subinterface atm
- Use to create a PPPoE subinterface over a VLAN subinterface configured on a bridged Ethernet interface.
- On ERX-7xx models, ERX-14xx models, and the ERX-310 router, use the slot/port.atmSubinterface.vlanSubinterface.pppoeSubinterface format.
- On E120 and E320 routers, use the slot/adapter/port.atmSubinterface.vlanSubinterface.pppoeSubinterface format.
- Examples
host1(config)#pppoe subinterface atm 4/0.1.2.1host1(config)#pppoe subinterface atm 4/1/0.1.2.1Use the no version to remove the PPPoE subinterface. vlan id
- Use to specify the VLAN ID.
- Use a VLAN ID that is in the range 04095 and is unique within the interface.
- Issue the vlan id command before any upper bindings are made, such as IP or PPPoE.
- Use the optional keyword untagged to specify that frames be sent untagged. The keyword is valid only for VLAN ID 0. It allows tagged frames to be received, but sends out untagged frames.
- Example
host1(config-subif)#vlan id 400There is no no version.