13 min total

Computer Networking

VLANs

VLANs
CN Lab / Final — VLANs

In a VLAN computers, servers and other network devices are logically connected regardless of their physical location

  • Improves security
  • Traffic management
  • Make a network simpler
CN Lab / Final — VLANs

Subnets separate networks physically

VLANs separate networks virtually

Subnets are created by using routers

CN Lab / Final — VLANs

VLANs are created on a VLAN enabled switch

Ports on VLAN switch can be configured to separate network traffic

Types of connection in VLAN

Devices can be connected in ways:

CN Lab / Final — VLANs
  1. Trunk Link

Connects switches or routers

All frames on trunk link have tagging

Carries traffic of various VLANS

  1. Access Link
CN Lab / Final — VLANs

Connects end device to switch port

All frames on access link must be tagged

Carries traffic for single VLAN

CN Lab / Final — VLANs
CN Lab / Final — VLANs
CN Lab / Final — VLANs
CN Lab / Final — VLANs
CN Lab / Final — VLANs
CN Lab / Final — VLANs
CN Lab / Final — VLANs

Setting up VLAN

CN Lab / Final — VLANs

Populating VLAN database

CN Lab / Final — VLANs

Setting up 3 VLANs

Assigning VLANs to Switch3 Ports

CN Lab / Final — VLANs
CN Lab / Final — VLANs

Assigning TRUNK to Switch3

CN Lab / Final — VLANs
CN Lab / Final — VLANs

Populated VLAN, assigned VLAN ports, TRUNK to switch4 too…

CN Lab / Final — VLANs

Different networks don’t communicate with each other

Blue ke packets yellow mein nae jaaskty and vice versa

CN Lab / Final — VLANs

Router on a Stick

Network configuration using a single router interface to router traffic between multiple VLANs

CN Lab / Final — VLANs

Populate VLAN entries

Add

Trunk

Access links

VLAN ports

IP addresses

Gateway

CN Lab / Final — VLANs
CN Lab / Final — VLANs

No need to add IP address at interface fa0/0

Just Add These Commands:

CN Lab / Final — VLANs
CN Lab / Final — VLANs
CN Lab / Final — VLANs
CN Lab / Final — VLANs

Now can pass packet intra domain (from yellow to blue and vice versa)