19
Ali Nezhad Routing and Switching CNET 311 Centennial College Inter-VLAN Routing Week #11 Ch6. Wayne Lewis

11_ Ch6-InterVLAN

Embed Size (px)

Citation preview

Page 1: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

Centennial College

Inter-VLAN Routing Week #11

Ch6. Wayne Lewis

Page 2: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

2

One-router-interface-per-VLAN Method#1

Traditional way

Multiple router interfaces connected to

Multiple physical switch ports.

Switch ports in access mode

Each switch port connected to the router

assigned to a different static VLAN

A router interface assigned to each VLAN.

Page 3: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

3

One-router-interface-per-VLAN

Page 4: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

4

Router-on-a-stick Method#2

Our focus

Uses only one router interface and one

switch port.

The switch-router link is a trunk.

Router uses virtual subinterfaces.

S/W entities associated with an interface .

Page 5: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

5

Router-on-a-stick

Page 6: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

6

L3 Switch Method#3

A L3 switch acting as a switch as

well as a router.

Explained in CH3 as SVI.

Switch must have IP routing enabled.

Modern way but beyond our scope.

Page 7: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

7

L3 Switch

Page 8: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

8

Configuring InterVLAN Routing

Page 9: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

9

One-router-interface-per-VLAN

Page 10: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

10

One-router-interface-per-VLAN 1- Configure the switch

Create VLANs.

Configure interfaces as access ports.

Assign ports to VLANs.

Page 11: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

11

One-router-interface-per-VLAN 2- Configure the router

Each router interface in use will be the default gateway for all devices in the corresponding VLAN.

Assign an IP-add in the appropriate VLAN to each router-connected interface .

Activate the interface.

Page 12: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

12

One-router-interface-per-VLAN

3- Verify

Examine routing table

Examine IP addresses

on the router

command: show run

Verify interVLAN

connectivity.

Ping PC to PC.

Page 13: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

13

Router-on-a-stick

Similar to previous method but with sub-if’s.

Enable/disable the physical interface on the

router to enable/disable subinterfaces.

Page 14: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

14

Router-on-a-stick

Page 15: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

15

Router-on-a-stick 1- Configure the switch

Create VLANs.

Configure the interface as a trunk.

Note: The router does not use DTP. therefore, you cannot use the commands: sw mode dynamic auto or sw mode dynamic desirable.

Page 16: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

16

Router-on-a-stick 2- Configure the router

Create a sub-if for each VLAN.

Configure encapsulation for that sub-if.

Assign it an IP-add in its VLAN.

Activate the physical interface.

Page 17: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

17

Router-on-a-stick 3- Verify

Examine routing table

Examine IP addresses

on the router

command: show run

Verify interVLAN

connectivity.

Ping PC to PC.

Page 18: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

18

Troubleshooting Switch Config Issues

Switch port and router-if: must be in the same VLAN

Switch port mode

Access for method#1

Trunk for method#2

Inactive trunk for method#2

show int <interface> switchport

Router Config Issues

Wrong interface-VLAN association

encap dot1q <vlan-id>

sh int and sh run

IP Addressing Issues

Page 19: 11_ Ch6-InterVLAN

Ali Nezhad

Routing and Switching

CNET 311

19

Questions?