Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring IP over VLAN

    To configure IP over VLAN over an Ethernet interface:

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

      The VLAN major interface is added.

    3. Create a VLAN subinterface by adding a subinterface number to the interface identification command.
      host1(config-if)#interface fastEthernet 4/0.3
    4. Do one of the following:
      1. Assign a VLAN ID for the subinterface.
        host1(config-if)#vlan id 201
      2. Assign a VLAN ID and the optional unique MAC address for the subinterface.
        host1(config-if)#vlan id 201 mac-address 0090.1a01.1234
    5. Assign an IP address and mask.
      host1(config-if)#ip address 192.6.129.5 255.255.255.0
    6. (Optional) Configure additional VLAN subinterfaces by completing Steps 3 through 5.

    Figure 1 illustrates the IP/VLAN/Fast Ethernet stacking, showing two separate VLAN subinterfaces. Configure one VLAN subinterface entirely; then configure the next VLAN subinterface.

    Figure 1: Example of IP/VLAN/Fast Ethernet Stacking Configuration Procedure

    Example of IP/VLAN/Fast Ethernet Stacking
Configuration Procedure

    Published: 2014-08-14