Cis82 5 InterVLANRouting - SHORT
Cis82 5 InterVLANRouting - SHORT
Cis82 5 InterVLANRouting - SHORT
Routing
Rick Graziani
Cabrillo College
[email protected]
Spring 2015
Chapter 5
5.1 Inter-VLAN Routing Configuration
5.2 Troubleshooting Inter-VLAN Routing
5.3 Layer 3 Switching
5.4 Summary
Chapter 5: Objectives
Describe the three primary options for enabling inter-VLAN routing.
Configure legacy inter-VLAN routing.
Configure router-on-a-stick inter-VLAN routing.
Troubleshoot common inter-VLAN configuration issues.
Troubleshoot common IP addressing issues in an inter-VLAN-routed
environment.
Configure inter-VLAN routing using Layer 3 switching.
Troubleshoot inter-VLAN routing in a Layer 3-switched environment.
Internetwork Communications
C:>ping 172.16.30.100
Then Destination MAC Address is that of the same device as the Destination IP Address.
Check ARP cache for entry of Destination IP Address and its MAC Address.
If no entry, ARP Request Destination IP Address asking for MAC Address.
5
What is Inter-VLAN routing?
Layer 2 switches cannot forward traffic between VLANs without
the assistance of a router.
Inter-VLAN routing is a process for forwarding network traffic from
one VLAN to another, using a router.
Legacy Inter-VLAN
Routing
Router-on-Stick
Switch SVI
Switch Routed Ports
Legacy Inter-VLAN Routing
Legacy Inter-VLAN Routing
A B C D
16
R1# show vlans
<output omitted>
Virtual LAN ID: 10 (IEEE 802.1Q Encapsulation)
<output omitted>
18
Verify Switch Configuration
19
Verify Switch Configuration
20
Multi-layer Switches and Inter-
VLAN Routing
Routers vs Multilayer Switches
Multilayer switches can perform Layer 2 and Layer 3 functions, replacing the need for
dedicated routers.
Multilayer switches support dynamic routing and inter-VLAN routing.
A switch virtual interface (SVI) exists for VLAN 1 by default.
On a multilayer switch, a logical (layer 3) interface can be configured for any VLAN.
With a multilayer switch, traffic is routed internal to the switch device.
This routing process is a suitable and scalable solution.
24
Configure Router On A Stick: 802.1Q Trunk Link
interface GigabitEthernet 0/0
no shutdown ! Does not show in config
!
interface GigabitEthernet 0/0.2
description VLAN 2
encapsulation dot1Q 2 native
ip address 172.16.1.2 255.255.255.0
!
interface GigabitEthernet 0/0.10
172.16.10.100/ 172.16.20.100/
24 24 description VLAN 10
encapsulation dot1Q 10
ip address 172.16.10.1 255.255.255.0
!
interface GigabitEthernet 1/1 interface GigabitEthernet 0/0.20
switchport mode trunk description VLAN 20
encapsulation dot1Q 20
ip address 172.16.20.1 255.255.255.0
Router on a stick is very !
interface GigabitEthernet 0/0.30
simple to implement. description VLAN 30
encapsulation dot1Q 30
ip address 172.16.30.1 255.255.255.0
!
interface GigabitEthernet 0/0.40
description VLAN 40
encapsulation dot1Q 40
ip address 172.16.40.1 255.255.255.0 25
Routed Ports versus Switched Virtual Interfaces
Routed Ports – Just like a router, the port has an IP address/mask that makes it
a member of that subnet.
SVI – The switch is a member of that IP subnet/VLAN. All switch ports that are a
26
member of that VLAN can communicate with the switch
Multilayer Switch Interfaces
Layer 2: Access or Trunk Ports
Physical Interface
Logical Interface (SVI)
A B C D
A B C D
A B C D
A B C D
Alternative Configuration
31
SVI VLAN 10 SVI VLAN 20
192.168.10.1 192.168.20.1
255.255.255.0 255.255.255.0
Distribution
Layer Switch
Trunk
Access
Layer Switch
A B C D
On each switch
If you want to reach the management VLAN from other VLANs, assign
this address to one of the multilayer switches (DLS1 and DLS2):
DLS1(config)# ip default-gateway 172.16.99.1 37
Default Gateway (SVI)
Configure DLS1 to be the default gateway
for VLANs 10 and 11.
All hosts on these VLANs will use these
addresses as their default gateway
addresses.
39
Default Gateway (SVI)
172.16.10.10
255.255.255.0 Statically or Dynamically assigned
172.16.10.1
40
Layer 3 Port Configuration
– Physical Interfaces
VLAN 1
External Router VLAN 2
VLANs VLAN 3
VLANs 1, 2, 3
Router on a stick
Trunk
VLANs or No VLANs
VLAN 1
VLAN 2
Multilayer Switch VLAN 3
Trunk
Multilayer Switch
44
SDM
Interface F0/6 on S1 is assigned
Enabling IPv4 Routing to VLAN 2.
The SVIs for VLANs 1 and 2 are
Functionality on a 2960
also configured with IP
addresses 192.168.1.1/24 and
S1(config)# interface f0/6
S1(config-if)# switchport access vlan 2
192.168.2.1/24, respectively.
S1(config-if)# interface vlan 1
S1(config-if)# ip address 192.168.1.1 255.255.255.0
IP routing is enabled with the ip
S1(config-if)# interface vlan 2 routing global configuration
S1(config-if)# ip address 192.168.2.1 255.255.255.0
S1(config-if)# no shutdown mode command.
Mar 20 01:00:25.021: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan2, changed state to up
S1(config)# ip routing
S1(config)# do show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
192.168.2.2/24 192.168.1.2/24
VLAN 2 VLAN 1
CIS 82 Routing and Swithing Inter-VLAN Routing
Routing
Rick Graziani
Cabrillo College
[email protected]