VLAN

VLAN

vlan 5 name DSL_CUST1 vlan 10 name DSL_CUST2 int fa 1/1 switchport mode access switchport access vlan 5 int fa 1/6 switchport mode trunk
Trunk has all VLANs by default

Router on a Stick

  • Configure trunk port on switch
  • Configure tagged sub-interfaces
int fa 0/0 no shut int fa 0/0.10 encapsulation dot1q 10 ip address 10.1.10.1 255.255.255.0
Sub interface number is not required to match VLAN but is best practice.

Layer 3 Switching

  • Configure and assign VLANs
  • Configure SVIs
ip routing int vlan 10 ip address 10.1.10.1 255.255.255.0