Jeremy’s IT Lab lecture video:

Day 18 - VLANs (3)


Commands


Native VLAN on a Router (ROAS)

There are 2 methods of configuring the native VLAN on a router:

  1. Use the command ‘encapsulation dot1q vlan-id native’ on the router sub-interface.
  2. Configure the IP address for the native VLAN on the router’s physical interface (the encapsulation command is not necessary).
    • In short, configure the actual physical port’s IP address, and any devices using it as their Default Gateway will send untagged traffic to that port, because the router will assume the traffic is in the native VLAN.

Layer 3 (Multilayer) Switches

Multilayer switches are capable of switching and routing

  • Being able to route means it is Layer 3 aware.
  • You can assign IP addresses to its virtual interfaces and also create virtual interfaces for each VLAN, and assign IP addresses to those interfaces.
  • Considering that it has routing capabilities, that means it also has routing tables, and you can configure routes on it, just like a router.

Switch Virtual Interfaces (SVI) and Inter-VLAN Routing

Switch Virtual Interfaces (SVIs) are the virtual interfaces you can assign IP addresses to in a multilayer switch.

  • Configure end hosts to use the SVI as their Default Gateway instead of the router. This step is done so the switch could do inter-VLAN routing.
  • To send traffic to different subnets/VLANs, the end hosts will send the traffic to the switch, and the switch will route the traffic.

Important setting for multilayer switches to work

You must use the ip routing command in order to enable Layer 3 features on the Multilayer switch, or else the SVIs and routed ports will NOT work.

SVI configuration

To create an SVI use this command:

  • interface vlan id --> Creates an switch virtual interface (SVI)
Link to original

Then make sure to run no shutdown to enable the interface.

Things to Watch out for to Make Sure SVIs Work

  1. The VLAN must exist on the switch
  2. The VLAN must not be shutdown
  3. The SVI must not be shutdown
  4. The switch MUST have at least one access port in the VLAN in an up/up state, AND/OR at least one trunk port that allows the VLAN that is in an up/up state.