6, ch3- vlan and trunk configuration

29
Ali Nezhad Routing and Switching CNET 311 Centennial College Centennial College Configuring VLANs and Trunks Week #6 Ch3. Wayne Lewis

Upload: daniel-lisowsky

Post on 20-Jan-2016

60 views

Category:

Documents


1 download

DESCRIPTION

trunk configuration

TRANSCRIPT

Page 1: 6, Ch3- VLAN and Trunk Configuration

Ali Nezhad

Routing and Switching

CNET 311

Centennial CollegeCentennial College

Configuring VLANs and Trunks

Week #6Ch3. Wayne Lewis

Page 2: 6, Ch3- VLAN and Trunk Configuration

2

Ali Nezhad

Routing and SwitchingCNET 311

Outline

� Configure a VLAN

� Manage VLANs

� Configure a Trunk

� Troubleshoot VLANs and Trunks

Page 3: 6, Ch3- VLAN and Trunk Configuration

3

Ali Nezhad

Routing and SwitchingCNET 311

Configuring a VLAN

Page 4: 6, Ch3- VLAN and Trunk Configuration

4

Ali Nezhad

Routing and SwitchingCNET 311

Configure a Static VLAN

� Two Methods

� Database Config Mode

� Being deprecated.

� Global Config Mode

Page 5: 6, Ch3- VLAN and Trunk Configuration

5

Ali Nezhad

Routing and SwitchingCNET 311

Example

Page 6: 6, Ch3- VLAN and Trunk Configuration

6

Ali Nezhad

Routing and SwitchingCNET 311

Display VLANs

Page 7: 6, Ch3- VLAN and Trunk Configuration

7

Ali Nezhad

Routing and SwitchingCNET 311

Static VLAN Assignment

� A static access port can belong to only one VLAN.

� To reassign this interface to VLAN1:

Page 8: 6, Ch3- VLAN and Trunk Configuration

8

Ali Nezhad

Routing and SwitchingCNET 311

Managing VLANs

Page 9: 6, Ch3- VLAN and Trunk Configuration

9

Ali Nezhad

Routing and SwitchingCNET 311

show vlan command

Page 10: 6, Ch3- VLAN and Trunk Configuration

10

Ali Nezhad

Routing and SwitchingCNET 311

show interfaces command

Page 11: 6, Ch3- VLAN and Trunk Configuration

11

Ali Nezhad

Routing and SwitchingCNET 311

Managing VLANs

Example#1

Page 12: 6, Ch3- VLAN and Trunk Configuration

12

Ali Nezhad

Routing and SwitchingCNET 311

Managing VLANs

Example#2

Page 13: 6, Ch3- VLAN and Trunk Configuration

13

Ali Nezhad

Routing and SwitchingCNET 311

Managing VLANs

Example#3

� VLAN is a virtual interface.

Page 14: 6, Ch3- VLAN and Trunk Configuration

14

Ali Nezhad

Routing and SwitchingCNET 311

Other Commands

� Counting all VLANs

� # show vlan summary

� Deleting a VLAN

� # no vlan 20

� First, assign member ports to another VLAN.

� Deleting all non-default VLANs:

� # del flash:vlan.dat

� # reload

Page 15: 6, Ch3- VLAN and Trunk Configuration

15

Ali Nezhad

Routing and SwitchingCNET 311

Configuring Trunks

Page 16: 6, Ch3- VLAN and Trunk Configuration

16

Ali Nezhad

Routing and SwitchingCNET 311

switchport command

� Issue in the interface context

� Interface goes to a permanent trunking

mode.

� It enters into a DTP negotiation to

convert the link into a trunk.

� Even if the opposite interface disagrees.

Page 17: 6, Ch3- VLAN and Trunk Configuration

17

Ali Nezhad

Routing and SwitchingCNET 311

switchport command

Page 18: 6, Ch3- VLAN and Trunk Configuration

18

Ali Nezhad

Routing and SwitchingCNET 311

Removing a Trunk

Page 19: 6, Ch3- VLAN and Trunk Configuration

19

Ali Nezhad

Routing and SwitchingCNET 311

Troubleshooting VLANs

Page 20: 6, Ch3- VLAN and Trunk Configuration

20

Ali Nezhad

Routing and SwitchingCNET 311

Common Issues

1. Native VLAN Mismatch

� Must be the same on both trunk ends.

2. Trunk Mode Mismatch

� One end ON, the other OFF

3. VLANs and IP subnets

� Incorrect IP addressing info. On PCs, …

4. Allowed VLANs on Trunks

Page 21: 6, Ch3- VLAN and Trunk Configuration

21

Ali Nezhad

Routing and SwitchingCNET 311

Example#1

Page 22: 6, Ch3- VLAN and Trunk Configuration

22

Ali Nezhad

Routing and SwitchingCNET 311

Example#1, Diagnosis & Solution

Fix:

Page 23: 6, Ch3- VLAN and Trunk Configuration

23

Ali Nezhad

Routing and SwitchingCNET 311

Example#2

Page 24: 6, Ch3- VLAN and Trunk Configuration

24

Ali Nezhad

Routing and SwitchingCNET 311

Example#2, Diagnosis

Page 25: 6, Ch3- VLAN and Trunk Configuration

25

Ali Nezhad

Routing and SwitchingCNET 311

Example#2, Solution

Page 26: 6, Ch3- VLAN and Trunk Configuration

26

Ali Nezhad

Routing and SwitchingCNET 311

Example#3

Page 27: 6, Ch3- VLAN and Trunk Configuration

27

Ali Nezhad

Routing and SwitchingCNET 311

Example#3, Diagnosis

Page 28: 6, Ch3- VLAN and Trunk Configuration

28

Ali Nezhad

Routing and SwitchingCNET 311

Example#3, Solution

Page 29: 6, Ch3- VLAN and Trunk Configuration

29

Ali Nezhad

Routing and SwitchingCNET 311

Questions?