[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


Configuring S-VLANs

As described in Configuring VLANs, VLANs permit multiplexing multiple IP interfaces and PPPoE interfaces over a single physical Ethernet port by creating VLAN subinterfaces. As specified in IEEE Standard 802.1q, the 12-bit VLAN identifier's tagged frames enables the construction of a maximum of 4096 distinct VLANs. In an Ethernet B-RAS application environment, however, this VLAN limit is inadequate. A stacked VLAN (S-VLAN) provides a two-level VLAN tag structure, which extends the VLAN ID space to more than 16 million VLANs.

Creating an S-VLAN requires the use of a second encapsulation tag. The router performs decapsulation twice, once to get the S-VLAN tag and once to get the VLAN tag. This double tagging approach enables more than 16 million address possibilities, which more than satisfies the scaling requirement for Ethernet B-RAS applications.

VLAN and S-VLAN subinterfaces can coexist over the same VLAN major interface. You configure S-VLANs in the same way that you configure VLANs, with the addition of certain commands.

NOTE: See JUNOSe Release Notes, Appendix A, System Maximums for S-VLAN limitations.


Like VLANs, all S-VLAN subinterfaces use the MAC address of the Ethernet interface over which they are configured. For more information about assigning unique MAC address to the S-VLAN subinterface when assigning VLAN or S-VLAN IDs, see Configuring VLANs.

Configuring PPPoE over S-VLAN

To configure PPPoE over an S-VLAN over an Ethernet interface:

  1. Specify a Fast Ethernet, Gigabit Ethernet, or 10-Gigabit Ethernet port.
  2. host1(config)#interface fastEthernet 4/0
    
    
    
  3. Specify VLAN as the encapsulation method.
  4. host1(config-if)#encapsulation vlan
    
    
    

The VLAN major interface is added.

  1. Create a VLAN subinterface by adding a subinterface number to the interface identification command.
  2. host1(config-if)#interface fastEthernet 4/1.1
    
    
    
  3. Assign an S-VLAN ID and a VLAN ID for the subinterface.
  4. host1(config-if)#svlan id 4 255
    
    
    
  5. Assign an S-VLAN Ethertype.
  6. host1(config-if)#svlan ethertype 88a8 
    
    
    
  7. Specify PPPoE as the encapsulation method on the interface.
  8. host1(config-if)#pppoe
    
    
    
  9. Create a PPPoE subinterface.
  10. host1(config-if)#pppoe subinterface fastEthernet 4/1.1.1
    
    
    
  11. Specify PPP as the encapsulation method on the interface.
  12. host1(config-if)#encapsulation ppp
    
    
    
  13. Assign an IP address and mask.
  14. host1(config-if)#ip address 164.10.6.61 255.255.255.0
    
    
    
  15. (Optional) Configure additional PPPoE subinterfaces by completing Steps 7 through 9 using unique numbering.

Figure 18 shows one S-VLAN subinterface with multiple PPPoE subinterface stacks.

NOTE: Before you can remove an S-VLAN/VLAN subinterface, you must remove the upper-layer interface stack.



Figure 18: Example of PPPoE over S-VLAN Stacking Configuration Steps

encapsulation ppp

encapsulation vlan

ip address

pppoe

pppoe subinterface fastEthernet

pppoe subinterface gigabitEthernet

    pppoe subinterface tenGigabitEthernet

svlan ethertype

svlan id

Configuring S-VLAN Tunnels for Layer 2 Services over MPLS

When you configure Ethernet layer 2 services over MPLS, you can create a special type of S-VLAN called an S-VLAN tunnel that uses a single interface to tunnel traffic from multiple VLANs across an MPLS network. The S-VLAN tunnel enables multiple VLANs, each configured with a unique VLAN ID tag, to share a common S-VLAN ID tag when they traverse an MPLS network.

Advantages

Using S-VLAN tunnels provides an easier and faster way to configure Ethernet layer 2 services over MPLS than using standard S-VLANs. For example, consider the network configuration shown in Figure 19.


Figure 19: S-VLAN Tunnels for Ethernet Layer 2 Services over MPLS

In this example, traffic from three VLAN subinterfaces must traverse the MPLS network. To accomplish this using standard S-VLANs, you issue the following commands to configure three separate S-VLANs with the same S-VLAN ID value and different VLAN IDs, as follows:

host1(config-if)#svlan id 33 10
host1(config-if)#svlan id 33 20
host1(config-if)#svlan id 33 30

By contrast, using an S-VLAN tunnel achieves the same result, but requires you to issue only a single svlan id command with the keyword any in place of the VLAN ID value. For example, the following command creates a single interface that tunnels traffic from VLANs configured with an S-VLAN ID of 33 and any VLAN ID to the same destination across the MPLS network. In effect, this command tunnels traffic from all three VLANs shown in Figure 19.

host1(config-if)#svlan id 33 any

Interface Stacking

When you configure Ethernet layer 2 services over MPLS using S-VLAN tunnels, the only interface that you can stack over an S-VLAN tunnel is an MPLS tunnel, which you configure using the MPLS tunneling command (mpls-relay or route interface) that is appropriate for your configuration. Attempting to configure any other interface type—such as IP, MPLS (nontunnel), or PPPoE—over the S-VLAN tunnel causes the router to generate an error and reject the configuration as invalid.

For details about configuring MPLS and layer 2 services over MPLS, see:

Configuration Example

This section uses the sample network topology shown in Figure 19 to illustrate the steps for configuring S-VLAN tunnels for Ethernet layer 2 services over MPLS.

To configure S-VLAN tunnels for Ethernet layer 2 services over MPLS:

  1. Specify a Fast Ethernet, Gigabit Ethernet, or 10-Gigabit Ethernet port.
  2. host1(config)#interface fastEthernet 4/0
    
    
    
  3. Specify VLAN as the encapsulation method to create the VLAN major interface.
  4. host1(config-if)#encapsulation vlan
    
    
    
  5. Create a VLAN subinterface.
  6. host1(config-if)#interface fastEthernet 8/1.1
    
    
    
  7. Create the S-VLAN tunnel. This interface tunnels traffic from VLANs configured with an S-VLAN ID of 33 and any VLAN ID to the same destination across the MPLS network.
  8. host1(config-if)#svlan id 33 any
    
    
    
  9. Assign an S-VLAN Ethertype.
  10. host1(config-if)#svlan ethertype 8100
    
    
    
  11. Create the MPLS tunnel interface using the appropriate MPLS tunneling command for your configuration. For example:
  12. host1(config-if)#route interface tunnel mpls:tunnel3 45
    
    
    

For complete instructions on configuring the MPLS tunnel, see JUNOSe BGP and MPLS Configuration Guide, Chapter 5, Configuring Layer 2 Services over MPLS.

  1. Repeat Steps 1 through 6 using unique values to configure the S-VLAN tunnel and MPLS tunnel interfaces on the remote E-series router. For example:
  2. host2(config)#interface fastEthernet 3/1
    
    host2(config-if)#encapsulation vlan
    
    host2(config-if)#interface fastEthernet 3/1.1
    
    host2(config-if)#svlan id 83 any
    
    host2(config-if)#svlan ethertype 88a8 
    
    host2(config-if)#route interface tunnel mpls:tunnel2 45
    

encapsulation vlan

interface fastEthernet

route interface

svlan ethertype

svlan id

S-VLAN Oversubscription

When you configure S-VLAN subinterfaces over Ethernet interfaces to support dynamic PPPoE subinterfaces, you can take advantage of S-VLAN oversubscription.

The following module combinations support S-VLAN oversubscription:

The maximum number of S-VLANs that you can create per I/O module with PPPoE major interfaces stacked over them is greater than the maximum number of dynamic PPPoE subinterfaces. The maximum number of PPP interfaces supported per line module is directly proportional to the maximum number of PPPoE subinterfaces.

As a result, you can oversubscribe S-VLANs by configuring up to the maximum number of S-VLANs supported on these I/O modules, knowing that no more than the maximum number of supported PPP sessions can be connected to the router at any one time.

For configuration instructions, see Configuring Dynamic PPPoE over Static PPPoE with Ethernet and S-VLAN Interface Columns in JUNOSe Link Layer Configuration Guide, Chapter 12, Configuring Dynamic Interfaces.

For specific information about the maximum number of S-VLANs supported per I/O module and the maximum number of PPP interfaces and PPPoE subinterfaces supported per line module, see JUNOSe Release Notes, Appendix A, System Maximums.

NOTE: The E120 and E320 routers can support up to two IOAs per line module. This maximum number of S-VLANs per line module does not change if one or two IOAs are installed.



[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]