Configuring S-VLAN Subinterfaces
Tasks to configure an S-VLAN subinterface include:
Configuring an S-VLAN Subinterface
To configure an S-VLAN subinterface:
- Specify a Fast Ethernet, Gigabit Ethernet, or 10-Gigabit
Ethernet port.
host1(config)#interface fastEthernet 4/0
- Specify VLAN as the encapsulation method.
host1(config-if)#encapsulation vlan
The VLAN major interface is added.
- Create a VLAN subinterface by adding a subinterface number
to the interface identification command.
host1(config-if)#interface fastEthernet 4/1.1
- Assign an S-VLAN ID and a VLAN ID for the subinterface.
host1(config-if)#svlan id 4 255
- Assign an S-VLAN Ethertype.
host1(config-if)#svlan ethertype 88a8
Configuring PPPoE over an S-VLAN
To configure PPPoE over an S-VLAN over an Ethernet
interface:
- Specify a Fast Ethernet, Gigabit Ethernet,
or 10-Gigabit Ethernet port.
host1(config)#interface fastEthernet 4/0
- Specify VLAN as the encapsulation method.
host1(config-if)#encapsulation vlan
The VLAN major interface is added.
- Create a VLAN subinterface by adding a subinterface number
to the interface identification command.
host1(config-if)#interface fastEthernet 4/1.1
- Assign an S-VLAN ID and a VLAN ID for the subinterface.
host1(config-if)#svlan id 4 255
- Assign an S-VLAN Ethertype.
host1(config-if)#svlan ethertype 88a8
- Specify PPPoE as the encapsulation method on the interface.
- Create a PPPoE subinterface.
host1(config-if)#pppoe subinterface fastEthernet
4/1.1.1
- Specify PPP as the encapsulation method on the interface.
host1(config-if)#encapsulation ppp
- Assign an IP address and mask.
host1(config-if)#ip address 164.10.6.61 255.255.255.0
- (Optional) Configure additional PPPoE subinterfaces by
completing Steps 7 through 9 using unique numbering.
Figure 1 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 1: Example of PPPoE over S-VLAN Stacking
Configuration Procedure
Published: 2012-06-26