ccna exp3 - chapter03 - vlans_dpf

41
Cha ter 3 - VLANS  CCNA Exploration 4.0 1

Upload: httpheiserzcom

Post on 06-Apr-2018

243 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 1/41

Cha ter 3 - VLANS 

CCNA Exploration 4.0

1

Page 2: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 2/41

Objectives

• Explain the role of VLANs in a network.

• Ex lain the role of trunkin VLANs in a network.

• Explain the role of trunking VLANs in a network.• Troubleshoot the common software or hardware

configuration problems associated with VLANs on switches

in a network topology.

Học viện mạng Bach Khoa - Website: www.bkacad.com 2

Page 3: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 3/41

Role of VLANS

• One of the contributing technologies to excellent network

performance is the separation of large broadcast domains

into smaller ones with VLANs.• Smaller broadcast domains limit the number of devices

separated into functional groupings, such as database

services for an accounting department and high-speedata trans er or an eng neer ng epartment.

Học viện mạng Bach Khoa - Website: www.bkacad.com 3

Page 4: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 4/41

Before VLANS

1 building

•1 building -> OK

• Man buildin -> NOT OK

Many building

 – IT department wants to ensure that student computers all share thesame security features and bandwidth controls. How can thenetwork accommodate the shared needs of the geographically

department together? – It would be great to group the people with the resources they use

regardless of their geographic location, and it would make it easier 

Học viện mạng Bach Khoa - Website: www.bkacad.com 4

.

Page 5: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 5/41

VLAN overview

• A VLAN allows a network administrator to create groups of 

logically networked devices that act as if they are on their own independent network

Học viện mạng Bach Khoa - Website: www.bkacad.com 5

 

access and security policies to particular groups of users.

Page 6: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 6/41

VLANS details

•  

switches.

• The network design above creates three separate

Học viện mạng Bach Khoa - Website: www.bkacad.com 6

broadcast domains.

Page 7: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 7/41

Without VLANs – No Broadcast Control

ARP Request

Switch 1172.30.1.21

255.255.255.0172.30.2.12

255.255.255.0

172.30.2.10 172.30.1.23

No VLANs

Same as a single VLAN

. . . . . .

 • Without VLANs, the ARP Request would be seen by all hosts.

Học viện mạng Bach Khoa - Website: www.bkacad.com 7

,

cycles.

Page 8: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 8/41

With VLANs – Broadcast Control

Switch Port: VLAN IDARP Request

Switch 1172.30.1.21

255.255.255.0

VLAN 1

172.30.2.12

255.255.255.0

VLAN 2

172.30.2.10 172.30.1.23

Two VLANs

. . .

VLAN 2

. . .

VLAN 1 1 2 3 4 5 6 .

1 2 1 2 2 1 .

Port

VLAN

wo u ne s

Học viện mạng Bach Khoa - Website: www.bkacad.com 8

Page 9: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 9/41

Benefit of VLANS

Học viện mạng Bach Khoa - Website: www.bkacad.com 9

Page 10: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 10/41

VLAN ID

Học viện mạng Bach Khoa - Website: www.bkacad.com 10

Page 11: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 11/41

VLAN Tagging

No VLAN Tagging

VLAN Tagging

 more than one VLAN.

Học viện mạng Bach Khoa - Website: www.bkacad.com 11

Page 12: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 12/41

VLAN Tagging

802.10

, -Switch Link (ISL) and IEEE 802.1Q.

• ISL used to be the most common, but is now being replaced by 802.1Qframe ta in .

Học viện mạng Bach Khoa - Website: www.bkacad.com 12

• Cisco recommends using 802.1Q.

• VLAN Tagging and Trunking will be discussed in the next chapter.

Page 13: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 13/41

Học viện mạng Bach Khoa - Website: www.bkacad.com 13

Page 14: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 14/41

Types of VLAN

• Data VLAN: A data VLAN is a VLAN that is configured to

carry only user-generated traffic.

Học viện mạng Bach Khoa - Website: www.bkacad.com 14

Page 15: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 15/41

Types of VLAN

• Default VLAN:

 – All switch ports become a member of the default VLAN after theinitial boot up of the switch.

 – av ng a e sw c por s par c pa e n e e au ma esthem all part of the same broadcast domain. This allows any deviceconnected to any switch port to communicate with other devices onother switch ports.

Học viện mạng Bach Khoa - Website: www.bkacad.com 15

 – The default VLAN for Cisco switches is VLAN 1. VLAN 1 has all thefeatures of any VLAN, except that you cannot rename it and youcan not delete it.

Page 16: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 16/41

Types of VLAN

• Management VLAN:

 – A management VLAN is any VLAN you configure to access the

.

 – VLAN 1 would serve as the management VLAN if you did not

proactively define a unique VLAN to serve as the management

Học viện mạng Bach Khoa - Website: www.bkacad.com 16

.

 – You assign the management VLAN an IP address and subnet

mask. A switch can be managed via HTTP, Telnet, SSH, or SNMP.

Page 17: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 17/41

Types of VLAN

• Native VLAN:

 – A native VLAN is assigned to an 802.1Q trunk port.

 – n . run por suppor s ra c com ng rom manyVLANs (tagged traffic) as well as traffic that does notcome from a VLAN (untagged traffic).

Học viện mạng Bach Khoa - Website: www.bkacad.com 17

 – The 802.1Q trunk port places untagged traffic on the

native VLAN. In the figure, the native VLAN is VLAN 99.

Page 18: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 18/41

Types of VLAN

• Voice VLAN: – It is easy to appreciate why a separate VLAN is needed to support

Voice over IP VoIP

 – VoIP traffic requires:

• Assured bandwidth to ensure voice quality

• Transmission priority over other types of network traffic

• Ability to be routed around congested areas on the network

• Delay of less than 150 milliseconds (ms) across the network

Học viện mạng Bach Khoa - Website: www.bkacad.com 18

Page 19: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 19/41

Voice VLAN

Học viện mạng Bach Khoa - Website: www.bkacad.com 19

Page 20: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 20/41

Types of traffic

Học viện mạng Bach Khoa - Website: www.bkacad.com 20

Page 21: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 21/41

Types of traffic

Học viện mạng Bach Khoa - Website: www.bkacad.com 21

Page 22: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 22/41

Types of traffic

Học viện mạng Bach Khoa - Website: www.bkacad.com 22

Page 23: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 23/41

Types of traffic

Học viện mạng Bach Khoa - Website: www.bkacad.com 23

Page 24: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 24/41

Switch port membership

Học viện mạng Bach Khoa - Website: www.bkacad.com 24

Page 25: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 25/41

VLAN Trunk

Học viện mạng Bach Khoa - Website: www.bkacad.com 25

Page 26: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 26/41

802.1Q tagging

• EtherType field – Set to the hexadecimal value of 0x8100. This value is

called the ta rotocol ID TPID value. With theEtherType field set to the TPID value, the switch receivingthe frame knows to look for information in the tag controlinformation field.

•  

 – 3 bits of user priority - Used by the 802.1p standard, which specifies how to provide

expedited transmission of Layer 2 frames. A description of the IEEE 802.1p is beyond

the scope of this course; however, you learned a little about it earlier in the discussion

.

 – 1 bit of Canonical Format Identifier (CFI) - Enables Token Ring frames to be carried

across Ethernet links easily.

 – 12 bits of VLAN ID (VID) - VLAN identification numbers; supports up to 4096 VLAN

Học viện mạng Bach Khoa - Website: www.bkacad.com 26

IDs.

• FCS field

Page 27: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 27/41

Native Vlan and 802.1q

Học viện mạng Bach Khoa - Website: www.bkacad.com 27

Page 28: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 28/41

Trunking mode

• The trunking modes

available in Fast Ethernet

and Gigabit Ethernet

switchport mode trunk

switchport mode access

switchport mode dynamic desirable

switchport mode dynamic auto

Học viện mạng Bach Khoa - Website: www.bkacad.com 28

Nonegotiateswitchport nonegotiate

Page 29: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 29/41

Trunking mode

Học viện mạng Bach Khoa - Website: www.bkacad.com 29

Page 30: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 30/41

Configure VLAN and Trunking

• Add VLAN

Học viện mạng Bach Khoa - Website: www.bkacad.com 30

Page 31: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 31/41

Assign VLAN to port

Học viện mạng Bach Khoa - Website: www.bkacad.com 31

Page 32: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 32/41

Configuring Ranges of VLANs

vlan 3

SydneySwitch(config)#interface range

SydneySwitch(config-if)#switchport access vlan 3

SydneySwitch(config-if)#exit

Học viện mạng Bach Khoa - Website: www.bkacad.com 32

Page 33: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 33/41

Verify VLAN

• Show vlan

• Show vlan brief 

• Show interface vlan 2• Show interface fa0/18 switchport

Học viện mạng Bach Khoa - Website: www.bkacad.com 33

Page 34: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 34/41

Delete Vlan

• No vlan

• Delete flash:vlan.dat

Học viện mạng Bach Khoa - Website: www.bkacad.com 34

Page 35: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 35/41

Configure Trunk link

Học viện mạng Bach Khoa - Website: www.bkacad.com 35

Page 36: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 36/41

Common Problem

Học viện mạng Bach Khoa - Website: www.bkacad.com 36

Page 37: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 37/41

Naitve VLAN mismatch

Học viện mạng Bach Khoa - Website: www.bkacad.com 37

Page 38: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 38/41

Trunk mode mismatch

• Both side is configured : switchport mode dynamic auto

• -> access

• Solution: switchport mode trunk

Học viện mạng Bach Khoa - Website: www.bkacad.com 38

Page 39: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 39/41

Incorrect VLAN list

•  

• S3 F0/3: allow vlan 10, 20, 99

• Solution: S1 f0/3: switchport trunk allowed vlan 10, 20, 99

Học viện mạng Bach Khoa - Website: www.bkacad.com 39

Page 40: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 40/41

Mistake of VLAN and IP subnets

Học viện mạng Bach Khoa - Website: www.bkacad.com 40

S

Page 41: CCNA Exp3 - Chapter03 - VLANS_dpf

8/3/2019 CCNA Exp3 - Chapter03 - VLANS_dpf

http://slidepdf.com/reader/full/ccna-exp3-chapter03-vlansdpf 41/41

Summary

Học viện mạng Bach Khoa - Website: www.bkacad.com 41