[Contents]
[Prev]
[Next]
[Index]
[Report an Error]
Configuring IP over VLAN
To configure IP over 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/0.3
- Do one of the following:
- Assign a VLAN ID for the subinterface.
- host1(config-if)#vlan id 201
- Assign a VLAN ID and the optional unique MAC address for
the subinterface.
- host1(config-if)#vlan id 201 mac-address 0090.1a01.1234
- Assign an IP address and mask.
- host1(config-if)#ip address 192.6.129.5 255.255.255.0
- (Optional) Configure additional VLAN subinterfaces by
completing Steps 3 through 5.
Figure 14 illustrates the
IP/VLAN/Fast Ethernet stacking, showing two separate VLAN subinterfaces.
Configure one VLAN subinterface entirely; then configure the next
VLAN subinterface.
Figure 14: Example of IP/VLAN/Fast Ethernet Stacking
Configuration Procedure

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