Top Banner
VLANs (Virtual Local Area Networks) K KANISHK RAJ NETWORK ENGG.
16

Vlans (virtual local area networks)

Apr 16, 2017

Download

Technology

Kanishk Raj
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Vlans (virtual local area networks)

VLANs (Virtual Local Area Networks)

K KANISHK RAJ NETWORK ENGG.

Page 2: Vlans (virtual local area networks)

What is the VLAN?

A VLAN stands for Virtual Local Area Network.

VLAN is an independent LAN Network.

VLAN is the Logical division of Switched network.

VLAN=Broadcast=Subnet

Two VLANs Two S ubnets

Sw itch 1172.30.1.21255.255.255.0

VLAN 1

172.30.2.10255.255.255.0

VLAN 2

172.30.1.23255.255.255.0

VLAN 1

172.30.2.12255.255.255.0

VLAN 2

Page 3: Vlans (virtual local area networks)

Why VLAN is effective?

• In LAN ,each group is on a different IP network and on a different switch.

• VLAN provide segmention over single switch.• VLAN use different IP addresses on a single switch.

Traditional LAN

192.1.0.3/24

172.1.0.2/16

10.1.0.1/8

One link per VLAN or a single VLAN Trunk (later)

VLANs10.1.0.0/8

172.2.0.0/16

192.3.0.0/24

Page 4: Vlans (virtual local area networks)

Benefits of VLANs

• Increased security• Segmentation• Flexibility • Create broadcast domains• Control network traffic• Cost effective

Page 5: Vlans (virtual local area networks)

How VLANs Work?

• VLANs are identified by a number– Valid ranges 1-4094

• On a VLAN-capable switch, you assign ports with the appropriate VLAN number

• The switch then only allows data to be sent between ports with the same VLAN

5

Page 6: Vlans (virtual local area networks)

VLAN Membership Modes

Page 7: Vlans (virtual local area networks)

Courtesy of Rick Graziani [email protected]

7

VLAN operation

Page 8: Vlans (virtual local area networks)

Courtesy of Rick Graziani [email protected]

8

Static VLANS

• Static membership VLANs are called port-based and port-centric membership VLANs.

• This is the most common method of assigning ports to VLANs.• As a device enters the network, it automatically assumes the

VLAN membership of the port to which it is attached. • There is a default VLAN, on Cisco switches that is VLAN 1.

VLAN 10 Configured

Default VLAN 1

Default VLAN 1

Page 9: Vlans (virtual local area networks)

Courtesy of Rick Graziani [email protected]

9

Dynamic VLAN

• Dynamic membership VLANs are created through network management software. (Not as common as static VLANs)

• Dynamic VLANs allow for membership based on the MAC address of the device connected to the switch port.

• As a device enters the network, it queries a database within the switch for a VLAN membership.

Page 10: Vlans (virtual local area networks)

Courtesy of Rick Graziani [email protected]

10

VLAN Trunking/Tagging

• VLAN Tagging is used when a single link needs to carry traffic for more than one VLAN.

No VLAN Tagging

VLAN Tagging

Page 11: Vlans (virtual local area networks)

VLAN Creation Guidelines

– The maximum number of VLANs is switch-dependent.

– Most Cisco Catalyst desktop switches support 128 separate spanning-tree instances, one per VLAN.

– VLAN 1 is the factory default Ethernet VLAN. – First open the switch interface command mode.

Page 12: Vlans (virtual local area networks)

Configuration modes: Global configuration mode

– SwitchX#configure terminal– SwitchX(config)#

Configuring the Switch

Page 13: Vlans (virtual local area networks)

Adding a VLAN

SwitchX# configure terminalSwitchX(config)# vlan 2SwitchX(config-vlan)# name switchlab99

Page 14: Vlans (virtual local area networks)

Courtesy of Rick Graziani [email protected]

14

Accessing/Managing the Switch

The IP Address, Subnet Mask, and Default Gateway on a switch is for the same purposes as when you configure it for a host.

IP Address and Subnet Mask• By default, VLAN 1 is the “management VLAN”. • This is where you assign the IP Address and Subnet Mask to the switch.• This address is for management purposes only and does not affect the Layer 2 switching

operations of the switch.

Switch(config)#interface vlan 1Switch(config-if)#ip address 10.1.0.5. 255.255.0.0Switch(config-if)#no shutdownSwitch(config-if)#exitSwitch(config)#ip default-gateway 10.1.0.1

Page 15: Vlans (virtual local area networks)

Courtesy of Rick Graziani [email protected]

15

Verifying VLANs – show vlan brief

vlan 3vlan 2vlan 1 default

Page 16: Vlans (virtual local area networks)

THANK YOU

I hope ,It is useful for Students