Chapter 6 Inter-VLAN Routing
CCNA Exploration 4.0
Objectives
Learn about inter-VLAN routing and how it is used to permit devices on separate VLANs to communicate. Learn different methods for accomplishing inter-VLAN routing, and the advantages and disadvantages of each. Learn how different router interface configurations facilitate inter-VLAN routing. Troulbleshooting Inter-VLAN
H c vi n m ng Bach Khoa - Website: www.bkacad.com
Introducing Inter-VLAN Routing
Each VLAN is a unique broadcast domain, so computers on separate VLANs are, by default, not able to communicate. Focus on one type of inter-VLAN routing using a separate router connected to the switch infrastructure.
H c vi n m ng Bach Khoa - Website: www.bkacad.com 3
Traditionnal Inter-VLAN
PC1 in VLAN 10 communicate with PC3 in VLAN30 Router need 2 interface Fa
H c vi n m ng Bach Khoa - Website: www.bkacad.com 4
Router on-a-stick
PC1 in VLAN 10 communicate with PC3 in VLAN 30 Only need 1 physical interface on Router. Create subinterfaces to serve communicating between VLANs
H c vi n m ng Bach Khoa - Website: www.bkacad.com 5
Layer 3 Switch with Inter-VLAN
Multilayer switches are capable of performing inter-VLAN routing.
H c vi n m ng Bach Khoa - Website: www.bkacad.com 6
Using Router as Gateway
H c vi n m ng Bach Khoa - Website: www.bkacad.com
Using Router as Gateway
H c vi n m ng Bach Khoa - Website: www.bkacad.com
Using Router as Gateway
H c vi n m ng Bach Khoa - Website: www.bkacad.com
Using Router as Gateway
H c vi n m ng Bach Khoa - Website: www.bkacad.com
10
Using Router as Gateway
H c vi n m ng Bach Khoa - Website: www.bkacad.com
11
Using Router as Gateway
H c vi n m ng Bach Khoa - Website: www.bkacad.com
12
Using Router as Gateway
H c vi n m ng Bach Khoa - Website: www.bkacad.com
13
Using Router as Gateway
H c vi n m ng Bach Khoa - Website: www.bkacad.com
14
Using Router as Gateway
H c vi n m ng Bach Khoa - Website: www.bkacad.com
15
Using Router as Gateway
H c vi n m ng Bach Khoa - Website: www.bkacad.com
16
Use sub-interfaces
H c vi n m ng Bach Khoa - Website: www.bkacad.com
17
Use sub-interfaces
H c vi n m ng Bach Khoa - Website: www.bkacad.com
18
Use sub-interfaces
H c vi n m ng Bach Khoa - Website: www.bkacad.com
19
Use sub-interfaces
H c vi n m ng Bach Khoa - Website: www.bkacad.com
20
Use sub-interfaces
H c vi n m ng Bach Khoa - Website: www.bkacad.com
21
Use sub-interfaces
H c vi n m ng Bach Khoa - Website: www.bkacad.com
22
Use sub-interfaces
H c vi n m ng Bach Khoa - Website: www.bkacad.com
23
Use sub-interfaces
H c vi n m ng Bach Khoa - Website: www.bkacad.com
24
Use sub-interfaces
H c vi n m ng Bach Khoa - Website: www.bkacad.com
25
Use sub-interfaces
H c vi n m ng Bach Khoa - Website: www.bkacad.com
26
Use sub-interfaces
H c vi n m ng Bach Khoa - Website: www.bkacad.com
27
Use sub-interfaces
H c vi n m ng Bach Khoa - Website: www.bkacad.com
28
Comparison
H c vi n m ng Bach Khoa - Website: www.bkacad.com
29
Traditional Inter-VLAN Configuration
H c vi n m ng Bach Khoa - Website: www.bkacad.com
30
Verify
H c vi n m ng Bach Khoa - Website: www.bkacad.com
31
Router on-a-stick Inter-VLAN configuration
H c vi n m ng Bach Khoa - Website: www.bkacad.com
32
Verify
H c vi n m ng Bach Khoa - Website: www.bkacad.com
33
Switch configuration issues
Solution: Assign switchport fa0/4 to VLAN10 switchport access vlan 10
H c vi n m ng Bach Khoa - Website: www.bkacad.com
34
Switch configuration issues
Solution: Configure switchport Fa/5 to mode Trunk switchport mode trunk
H c vi n m ng Bach Khoa - Website: www.bkacad.com
35
Switch configuration issues
Solution: Add a redundant link between S2 and S1 (STP)
H c vi n m ng Bach Khoa - Website: www.bkacad.com
36
Router configuration issues
Solution: Reconnect Router Fa0/0 S1 Fa0/4
H c vi n m ng Bach Khoa - Website: www.bkacad.com
37
Router configuration issues
Solution: Fa0/0.10: encapsulation dot1q 10
H c vi n m ng Bach Khoa - Website: www.bkacad.com
38
IP addressing Issues
Solution: Re-configure R1 fa0/0: ip address 172.17.10.1
H c vi n m ng Bach Khoa - Website: www.bkacad.com
39
IP addressing Issues
Solution: Re-configure PC1: 172.17.10.21/24
H c vi n m ng Bach Khoa - Website: www.bkacad.com
40
IP addressing Issues
Solution: Re-configure PC1 subnet mask -> /24
H c vi n m ng Bach Khoa - Website: www.bkacad.com
41
Summary
H c vi n m ng Bach Khoa - Website: www.bkacad.com
42