Configuring VLANs over Bridged Ethernet

This section describes how to create the following common static VLAN over bridged Ethernet configurations:

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:

  1. Configure the layers up to and including the VLAN subinterface. The steps for this task are common to all configurations.
  2. 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:

  1. 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
  2. Specify bridged Ethernet as the encapsulation method for the ATM 1483 subinterface.
    host1(config-subif)#encapsulation bridge1483
  3. Create a VLAN major interface by specifying VLAN as the encapsulation method for the bridged Ethernet interface.
    host1(config-subif)#encapsulation vlan
  4. 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
  5. Assign a VLAN ID for the subinterface.
    host1(config-subif)#vlan id 10
  6. (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:

  1. Follow the steps in Configuring VLAN Subinterfaces over Bridged Ethernet to configure the VLAN subinterface.
  2. 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:

  1. Follow the steps in Configuring VLAN Subinterfaces over Bridged Ethernet to configure the VLAN subinterface.
  2. Create a PPPoE major interface on the VLAN subinterface.
    host1(config-subif)#pppoe
  3. Exit the subinterface context.
    host1(config-subif)#exit
  4. Create a PPPoE subinterface by adding a subinterface number to the interface identification command.
    host1(config)#pppoe subinterface atm 4/0.101.2.1
  5. Specify PPP as the encapsulation method on the interface.
    host1(config-subif)#encapsulation ppp
  6. 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:

  1. Follow the steps in Configuring VLAN Subinterfaces over Bridged Ethernet to configure the VLAN subinterface.
  2. Enable MPLS on the VLAN subinterface.
    host1(config-subif)#mpls

atm pvc

encapsulation bridge1483

encapsulation ppp

encapsulation vlan

interface atm

ip address

mpls

pppoe

pppoe subinterface atm

vlan id