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 Configuring Bridged Ethernet.
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.
![]() | Note: Before you can remove a VLAN subinterface, you must remove the upper-layer interface stack. For more information about specifying ATM interfaces and subinterfaces, see Interface Types and Specifiers in JunosE Command Reference Guide. |
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.101 host1(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.2 host1(config-subif)#vlan id 11
Proceed 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.0
Configuring 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.0
Configuring 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)#mpls
atm pvc
- Use to configure a PVC on an ATM interface. Specify one
of the following encapsulation types:
- aal5snap—Specifies a logical link control (LLC) encapsulated circuit; LLC/Subnetwork Access Protocol (LLC/SNAP) header precedes the protocol datagram.
- aal5mux ip—Specifies a VC multiplexed circuit. This option is used for IP only.
- Examplehost1(config-subif)#atm pvc 1 5 50 aal5snap 0 0 0
- Use the no version to remove the specified PVC.
- See atm pvc.
encapsulation bridge1483
- Use to configure bridged Ethernet as the encapsulation method on an ATM 1483 subinterface.
- Examplehost1(config-subif)#encapsulation bridge1483
- Use the no version to remove bridged Ethernet as the encapsulation method on the interface.
- See encapsulation bridge1483.
encapsulation ppp
- Use to configure PPP as the encapsulation method on an interface.
- Examplehost1(config-subif)#encapsulation ppp
- Use the no version to remove PPP as the encapsulation method on the interface.
- See encapsulation ppp.
encapsulation vlan
- Use to configure VLAN as the encapsulation method on an interface.
- Examplehost1(config-subif)#encapsulation vlan
- Use the no version to remove VLAN as the encapsulation method on the interface.
- See encapsulation vlan.
interface atm
- Use to configure an ATM interface, ATM 1483 subinterface, or VLAN subinterface.
- On ERX7xx models, ERX14xx models, and the ERX310 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 Configuring ATM.
- Example 1—Configures a VLAN subinterface over bridged
Ethernet on ERX7xx models, ERX14xx models, and the ERX310 router host1(config)#interface atm 4/2.2 point-to-point host1(config-subif)#interface atm 4/2.2.3
- Example 2—Configures a VLAN subinterface over bridged
Ethernet on the E320 router host1(config)#interface atm 4/0/2.2 point-to-point host1(config-subif)#interface atm 4/0/2.2.3
- Use the no version to remove the interface or subinterface.
- See interface atm.
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.
- Examplehost1(config-subif)#ip address 10.1.2.3 255.255.255.255
- Use the no version to remove the IP address.
- See ip address.
mpls
- Use to enable, disable, or delete MPLS on an interface. MPLS is disabled by default.
- Examplehost1(config)#mpls
- Use the no version to halt MPLS on the interface and delete the MPLS interface configuration.
- See mpls.
pppoe
- Use to create a PPPoE major interface.
- Examplehost1(config-subif)#pppoe
- Use the no version to remove the PPPoE major interface.
- See pppoe.
pppoe subinterface atm
- Use to create a PPPoE subinterface over a VLAN subinterface configured on a bridged Ethernet interface.
- On ERX7xx models, ERX14xx models, and the ERX310 router, use the slot/port.atmSubinterface.vlanSubinterface.pppoeSubinterface format.
- On E120 and E320 routers, use the slot/adapter/port.atmSubinterface.vlanSubinterface.pppoeSubinterface format.
- Exampleshost1(config)#pppoe subinterface atm 4/0.1.2.1 host1(config)#pppoe subinterface atm 4/1/0.1.2.1
- Use the no version to remove the PPPoE subinterface.
- See pppoe subinterface.
vlan id
- Use to specify the VLAN ID.
- Use a VLAN ID that is in the range 0–4095 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.
- Examplehost1(config-subif)#vlan id 400
- There is no no version.
- See vlan id.