7-VLAN
7-VLAN
▪ Virtual LANs offer a structure for making groups of devices, even if their
networks are different.
▪ The link of the trunk can carry traffic for multiple LANs
Types of VLAN
Types of VLAN
Data VLAN:
A VLAN that carries user data traffic which are known as user VLANS. All
switch ports that are members of a data VLAN are assigned the same VLAN
ID.
Voice VLAN:
A voice VLAN is a special type of data VLAN that is configured to carry real-
time voice traffic. Voice VLANS give priority to voice traffic over other
types of traffic, and all switch ports that are members of a voice VLAN are
assigned the same Voice Class of Service (CoS) value.
Surveillance VLAN:
A surveillance VLAN is a special type of data VLAN that is configured to
carry real-time video traffic.
Types of VLAN
Management VLAN:
A management VLAN is a special type of data VLAN that is used to carry
out-of-band management traffic for devices on a network, such as
switches, routers, and firewalls. Management VLANS typically use IP
addresses that are not routable on the public Internet.
Default VLAN:
A default VLAN is a network switch configuration in which all ports are
assigned to a single VLAN. This can simplify switch administration by
allowing all devices on the same VLAN to communicate with each other
without the need for configuring separate VLANs.
Network Diagram
Trunk Port
▪ Connect to another switch or router
802.1Q Frame:
802.1Q Tag Fields
802.1Q tag is a 32-bit (or 4-byte) field between the Source MAC address
and the EtherType.
Priority Code Point (PCP) – This 3-bit field can be used in prioritizing different traffic
classes.
Drop Eligible Indicator (DEI) – This 1-bit field can indicate frames that can be dropped
in case of traffic congestion.
VLAN Identifier (VID) – This 12-bit field specifies the VLAN to which the Ethernet frame
belongs.
On the segment between two switches, a process called VLAN trunking is used. Let’s say that PC1 sends
a broadcast frame. SW1 “tags” the frame by inserting the VLAN ID in the header of the frame before
sending the frame to SW2. SW2 receives the frame and sees the VLAN tag, so it knows the frame
belongs to VLAN 2, so it sends it only to PC3 since that PC3 is in VLAN 2.
Access Port
▪ Connectivity of a device with a switch
switch(config)# hostname S1
S1(config-vlan)# vlan 4
S1(config-vlan)# vlan 7
S1(config-vlan)# vlan 8
S1(config-if-range)# shutdown
Assigning Ports to VLANs
S1# show vlan brief
4 Science active
Router
There are two ways to use a router as a device that performs IP routing between VLANs.
▪ Connecting separate router interface to each VLAN and give each interface an IP
address from the respective VLAN subnet.
▪ Connecting a router with a single link to a switch trunk port and defining sub-
interfaces for each vlan. An IP address is then configured on each sub-interface from
the respective VLAN.
Inter VLAN Routing - ROAS
ROAS Physical
Scenario
Inter VLAN Routing - ROAS
ROAS Logical
Scenario
Inter VLAN Routing - ROAS
R1(config)# interface g0/1
R1(config-if)# no shutdown
R1(config-if)# exit
MLS Physical
Scenario
Inter VLAN Routing – MLS / SVI
MLS
Logical
Scenario
Inter VLAN Routing – MLS / SVI
L3Switch(config)#vlan 10
L3Switch(config-vlan)#name IT
L3Switch(config-vlan)#exit
!
L3Switch(config)#vlan 20
L3Switch(config-vlan)#name Science
L3Switch(config-vlan)#exit