31
LAN Switching and Wireless CH3: VIRTUAL LANS (VLANS) Abdelkhalik Mosa

LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Embed Size (px)

DESCRIPTION

This chapter demonstrates VLANs in detail, from theory to practice.

Citation preview

Page 1: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

LAN Switching and Wireless

CH3: VIRTUAL LANS (VLANS)

Abdelkhalik Mosa

Page 2: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

If you found any mistake’s’ on these slides or if

you have any other questions or comments,

please feel free to contact me at:

[email protected] or

[email protected]

Linkedin : https://www.linkedin.com/in/AbdelkhalikMosaTwitter : https://twitter.com/AbdelkhalikMosaFacebook: https://www.facebook.com/Abdelkhalik.Mosa

Thanks, Abdelkhalik Elsaid Mosa

Suez Canal University Faculty of Computers and Informatics - Ismailia - Egypt

Remember!

Page 3: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

VLAN & its Benefits

• A VLAN = Subnet (in modern switched LANs).• On the Switch(Configure the VLAN, the assign port to the VLAN).• A switch port with a singular VLAN configured on it is called an access port.

Page 4: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

VLAN ID Ranges

• Normal Range VLANs Used in small- and medium-sized business and enterprise networks. Identified by a VLAN ID between 1 and 1005. IDs 1002 through 1005 are reserved for Token Ring and FDDI VLANs. IDs 1 and 1002 to 1005 are automatically created and cannot be removed. Stored in a VLAN DB file, called vlan.dat, which is stored in the flash. The VTP only learn normal range VLANs and stores them in VLAN DB file.

• Extended Range VLANs Designed for service providers. Are identified by a VLAN ID between 1006 and 4094. Support fewer VLAN features than normal range VLANs. Are saved in the running configuration file. VTP does not learn extended range VLANs.

Catalyst 2960 supports up to

255 VLAN

Page 5: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Types of VLANs

• Data VLAN: is a VLAN that is configured to carry only user-generated traffic, sometimes referred to as a user VLAN.

• Default VLAN: All switch ports become a member of the default VLAN after the initial boot up of the switch, one broadcast domain. The default VLAN for Cisco switches is VLAN 1, can’t be renamed or

deleted. L2 control traffic, such as CDP and STP, will always be associated with

VLAN 1.

• Native VLAN: is assigned to an 802.1Q trunk port. 802.1Q trunk port places untagged traffic on the native VLAN.

• Management VLAN: is any VLAN you configure to access the management capabilities of a switch.

Page 6: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Types of VLANs: Voice VLAN

Page 7: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Types of VLANs: Voice VLAN

• The Cisco IP Phone contains an integrated three-port 10/100 switch.

Page 8: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

VLAN Port Membership Modes: Static and Dynamic VLANs

• Static VLAN: Ports on a switch are manually assigned to a VLAN. If you assign an interface to a VLAN that does not exist, the new

VLAN is created for you.

• Dynamic VLAN: With VMPS, you assign switch ports to VLANs dynamically, based on the source MAC address of the device connected to the port.

Page 9: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

VLAN Switch Port Modes: Voice VLAN

• Before you configure a voice VLAN on the port, you need to first configure a VLAN for voice and a VLAN for data.

Page 10: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Network Without/With VLANS

Page 11: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Intra-VLAN/Inter-VLAN Communication

Page 12: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

L3 Switch Virtual Interface

• SVI is a logical interface configured for a specific VLAN.• SVI technology allows a Layer 3 switch to route transmissions

between VLANs.

Page 13: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

What is a Trunk

• A trunk is a point-to-point link between two network devices that carries more than one VLAN.

• A VLAN trunk does not belong to a specific VLAN, rather it is a conduit for VLANs between switches and routers.

• Cisco supports IEEE 802.1Q for coordinating trunks on Fast Ethernet and Gigabit Ethernet interfaces.

Page 14: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

VLAN Without/With Trunks

Without Trunks

With Trunks

Page 15: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

802.1Q Frame Tagging

• 802.1Q encapsulation header adds a tag to the original Ethernet frame specifying the VLAN for which the frame belongs to.

TPID

3-bits 802.1P 1-bita

Page 16: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Native VLANs and 802.1Q Trunking

show interfaces interface-id switchport

Page 17: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Trunking Operation

Page 18: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Trunking Operation

Page 19: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Trunking Operation

Page 20: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Trunking Operation

Page 21: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Trunking Modes

Example

DTP: Cisco Proprietary protocol, automatically enabledDTP: Negotiates whether port will be access or trunk

Page 22: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Configure a VLAN

Page 23: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Managing VLANs

Page 24: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Managing VLANs

• S1(config)# no vlan vlan-id• S1# delete flash:vlan.dat• Note: Before deleting a VLAN, be sure to first reassign all

member ports to a different VLAN. Any ports that are not moved to an active VLAN are unable to communicate with other stations after you delete the VLAN.

Page 25: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Configure a Trunk

Page 26: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Common Problems with Trunks

Page 27: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Common Problems with Trunks: Native VLAN Mismatches

Page 28: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Common Problems with Trunks: Trunk Mode Mismatches

Page 29: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Common Problems with Trunks: Incorrect VLAN List

Page 30: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Common Problems with Trunks: Incorrect IP Configuration

Page 31: LAN Switching and Wireless: Ch3 - Virtual Local Area Networks (VLANs)

Thank You..