[Contents]
[Prev]
[Next]
[Index]
[Report an Error]
Configuring IP over VLAN and PPPoE over VLAN
To configure IP over VLAN with PPPoE over the same
VLAN over an Ethernet interface:
- Specify a Fast Ethernet, Gigabit Ethernet, or 10-Gigabit
Ethernet port.
- host1(config)#interface fastEthernet 4/1
- 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
- Do one of the following:
- Assign a VLAN ID for the subinterface.
- host1(config-if)#vlan id 400
- Assign a VLAN ID and the optional unique MAC address for
the subinterface.
- host1(config-if)#vlan id 400 mac-address 0090.1a01.1234
- Create an IP interface on the same VLAN as the PPPoE interface.
- host1(config-if)#ip address 164.10.6.71 255.255.255.0
- Specify PPPoE as the encapsulation method on the interface.
- host1(config-if)#pppoe
- 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 192.6.129.5 255.255.255.0
- (Optional) Configure additional PPPoE subinterfaces by
completing Steps 7 through 9 using unique numbering.
To configure additional IP interfaces over the
VLAN major interface:
- Create a new VLAN subinterface by adding a unique subinterface
number to the interface identification command.
- host1(config-if)#interface fastEthernet 4/1.2
- Assign a VLAN ID for the subinterface.
- host1(config-if)#vlan id 401
- Assign an IP address and mask.
- host1(config-if)#ip address 164.10.6.51 255.255.255.0
Figure 17 illustrates the
configuration steps for two VLAN subinterfaces. In this example:
encapsulation ppp
- Use to configure PPP as the encapsulation method for the
interface.
- Example
- host1(config-if)#encapsulation ppp
- Use the no version to disable PPP on the interface.
- See encapsulation ppp.
encapsulation vlan
- Use to configure VLAN as the encapsulation method for
the interface.
- Example
- host1(config-if)#encapsulation vlan
- Use the no version to disable
VLAN on an interface.
- See encapsulation vlan.
ip address
- Use to set a primary or secondary IP address for an interface
or subinterface.
- Specify the layer 2 encapsulation before you set the IP
address.
- Example
- host1(config-if)#ip address 192.6.129.5 255.255.255.0
- Use the no version to remove
an IP address or disable IP processing.
- See ip address.
pppoe
- Use to configure PPPoE as the encapsulation method on
the interface.
- Example
- host1(config-if)#pppoe
- Use the no version to disable
PPPoE on the interface.
- See pppoe.
pppoe subinterface fastEthernet
- Use to create a PPPoE subinterface on a Fast Ethernet
interface.
- Example
- host1(config-if)#pppoe subinterface fastEthernet
4/1.1.1
- Use the no version to remove
a PPPoE subinterface on a Fast Ethernet interface.
- See pppoe subinterface.
pppoe subinterface gigabitEthernet
pppoe subinterface tenGigabitEthernet
- Use to create a PPPoE subinterface on a Gigabit Ethernet
interface or on a 10-Gigabit Ethernet interface.
- Example 1—Creates a PPPoE subinterface on an ERX-7xx
model, ERX-14xx model, or the ERX-310 router
- host1(config-if)#pppoe subinterface
gigabitEthernet 4/2.1.1
- Example 2—Creates a PPPoE subinterface on the E320
router
- host1(config-if)#pppoe subinterface tenGigabitEthernet
4/0/2.1.1
- Use the no version to remove
a PPPoE subinterface on a Gigabit Ethernet interface or on a 10-Gigabit
Ethernet interface.
- See pppoe subinterface.
vlan description
- Use to assign an alias or description to a VLAN subinterface.
- You can use a maximum of 64 characters for the description
or to name the alias.
- Example
- host1(config-if)#vlan description randolph56a
- Use the no version to remove
the VLAN description.
- See vlan description.
vlan id
- Use to specify the VLAN ID.
- Use a VLAN ID that is in the range 0–4095 and is
unique within the Ethernet interface.
- Issue the vlan id command before
any upper bindings are made, such as IP or PPPoE.
- Use the mac-address keyword
to specify a unique MAC address for the VLAN subinterface. When you
do not specify a unique MAC address, the VLAN uses the MAC address
of the Ethernet interface.
- Use the optional keyword untagged to specify that frames be sent untagged. The keyword is valid only
for VLAN ID 0. Tagged frames can be received, but untagged frames
are sent.
- Examples
- host1(config-if)#vlan id 400
- host1(config-if)#vlan id 4 255 mac-address 0090.1a01.1234
- There is no no version.
- See vlan id.
[Contents]
[Prev]
[Next]
[Index]
[Report an Error]