Lab 2 - Inter-VLAN and Static Routing
Lab 2 - Inter-VLAN and Static Routing
Lab 2 - Inter-VLAN and Static Routing
___________________________________________________________________________________________
Inter-VLAN Routing
Topology
172.17.60.0/30
172.17.50.0/30
R2
Addressing Table
Device Interface IPv4 Address Subnet Mask Default Gateway
R1 F0/0.10 192.168.1.129 255.255.255.240 N/A
F0/0.20 192.168.1.1 255.255.255.128 N/A
G0/0.99 172.17.99.1 255.255.255.0 N/A
S0/0/0 200.200.200.1 255.255.255.252 N/A
Lo0 209.165.200.225 255.255.255.224 N/A
R2 S0/0/0 200.200.200.2 255.255.255.252 N/A
S0/0/1 200.200.200.6 255.255.255.252 N/A
R3 G0/0.10 172.17.30.1 255.255.255.0 N/A
G0/0.20 172.17.40.1 255.255.255.0 N/A
G0/0.99 172.17.99.2 255.255.255.0 N/A
S0/0/1 200.200.200.5 255.255.255.252 N/A
S1 VLAN 99 172.17.99.10 255.255.255.0 172.17.99.1
S2 VLAN 99 172.17.99.11 255.255.255.0 172.17.99.2
PC0 NIC 192.168.1.142 255.255.255.240 192.168.1.129
PC1 NIC 192.168.1.126 255.255.255.128 192.168.1.1
PC2 NIC 172.17.30.24 255.255.255.0 172.17.30.1
PC3 NIC 172.17.40.25 255.255.255.0 172.17.40.1
1
Prepared by: Syarulnaziah Anawar
Wide Area Network
Lab 2: Inter-VLAN and Static Routing
___________________________________________________________________________________________
Objectives
Part 1: Configure the PCs
Background
In this activity, you will first perform basic switch configurations. Then, you will implement basic
connectivity by configuring IP addressing on switches and PCs. When the IP addressing configuration is
complete, you will use various show commands to verify configurations and use the ping command to
verify basic connectivity between devices. You will also focus on creating and naming VLANs, and
assigning access ports to specific VLANs. Then you will be creating trunk ports, and assigning them to a
native VLAN other than the default. You will then configure VLANs and inter-VLAN routing. Finally,
you will enable trunking and verify connectivity between VLANs. Lastly, you will configure a default
route, RIP version 2, with appropriate network statements and passive interfaces, and verify full
connectivity.
2
Prepared by: Syarulnaziah Anawar
Wide Area Network
Lab 2: Inter-VLAN and Static Routing
___________________________________________________________________________________________
Part 1: Configure the PCs
Step 1: Configure all PCs with IP addresses based on the Addressing Table.
What benefit will configuring VLANs provide to the current configuration? The primary benefits of
using VLANs are as follows: security, cost reduction, higher performance, broadcast storm mitigation,
improved IT staff efficiency, and simpler project and application management.
3
Prepared by: Syarulnaziah Anawar
Wide Area Network
Lab 2: Inter-VLAN and Static Routing
___________________________________________________________________________________________
Part 4: Configure VLANs
Step 1: Create and name VLANs on S1.
Create the following VLANs. Names are case-sensitive:
4
Prepared by: Syarulnaziah Anawar
Wide Area Network
Lab 2: Inter-VLAN and Static Routing
___________________________________________________________________________________________
Step 2: Assign VLANs to the active ports on S2.
S2 uses the same VLAN access port assignments as S1. Configure the interfaces as access ports and
assign the VLANs as follows:
• VLAN 10: FastEthernet 0/1 - 9
• VLAN 20: FastEthernet 0/10 - 19
S2(config)# interface range f0/1 - 9
S2(config-if)# switchport mode access
S2(config-if)# switchport access vlan 10
S2(config-if)# interface range f0/10 - 19
S2(config-if)# switchport mode access
S2(config-if)# switchport access vlan 20
The trunk port takes about a minute to become active due to Spanning Tree. After the ports become
active, you will periodically receive the following syslog messages
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on GigabitEthernet0/1
(99), with S2 GigabitEthernet0/1 (1).
You configured VLAN 99 as the native VLAN on S1. However, S2 are using VLAN 1 as the default
native VLAN as indicated by the syslog message.
Although you have a native VLAN mismatch, pings between PCs on the same VLAN are now
successful.
5
Prepared by: Syarulnaziah Anawar
Wide Area Network
Lab 2: Inter-VLAN and Static Routing
___________________________________________________________________________________________
Why? Pings are successful because trunking has been enabled on S1. Dynamic Trunking Protocol
(DTP) has automatically negotiated the other side of the trunk links. In this case, S2 have now
automatically configured the ports attached to S1 as trunking ports.
6
Prepared by: Syarulnaziah Anawar
Wide Area Network
Lab 2: Inter-VLAN and Static Routing
___________________________________________________________________________________________
Part 8: Configure Router Interfaces
Step 1: Configure the Serial 0/0/0 interface on R1.
a. Enter the following commands to address and activate the Serial 0/0/0 interface on R1:
R1(config)# int s0/0/0
R1(config-if)# ip address 172.17.50.1 255.255.255.252
R1(config-if)# no shutdown
7
Prepared by: Syarulnaziah Anawar
Wide Area Network
Lab 2: Inter-VLAN and Static Routing
___________________________________________________________________________________________
Part 10: Configure RIPv2
Step 1: Configure RIPv2 on R1.
a. Use the appropriate command to create a default route on R1 for all Internet traffic to exit the
network through S0/0/1.
R1(config)#ip route 0.0.0.0 0.0.0.0 lo0
b. Enter RIP protocol configuration mode.
R1(config)#router rip
c. Use version 2 of the RIP protocol and disable the summarization of networks.
R1(config-router)# version 2
R1(config-router)# no auto-summary
d. Configure RIP for the networks that connect to R1.
R1(config-router)#network 172.17.10.0
R1(config-router)#network 172.17.20.0
R1(config-router)#network 172.17.99.0
R1(config-router)#network 172.17.50.0
e. Configure the LAN port that contains no routers so that it does not send out any routing
information.
R1(config-router)# passive-interface gig 0/0
f. Advertise the default route configured in step 1a with other RIP routers.
R1(config-router)# default-information originate
g. Save the configuration.
R1# copy run start
8
Prepared by: Syarulnaziah Anawar
Wide Area Network
Lab 2: Inter-VLAN and Static Routing
___________________________________________________________________________________________
Part 11: Verify Configurations
Step 1: View routing tables of R1, R2, and R3.
a. Use the appropriate command to show the routing table of R1. RIP (R) now appears with
connected (C) and local (L) routes in the routing table. All networks have an entry. You also can
see a default route listed.
b. View the routing tables for R2 and R3. Notice that each router has a full listing of all the
192.17.x.0 networks and a default route.
R1#show ip protocols
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 4 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: rip
Default version control: send version 2, receive 2
Interface Send Recv Triggered RIP Key-chain
GigabitEthernet0/0.10 2 2
GigabitEthernet0/0.20 2 2
GigabitEthernet0/0.99 2 2
Serial0/0/0 2 2
Automatic network summarization is not in effect
Maximum path: 4
Routing for Networks:
172.17.0.0
Passive Interface(s):
GigabitEthernet0/0
Routing Information Sources:
Gateway Distance Last Update
172.17.50.2 120 00:00:03
Distance: (default is 120)
9
Prepared by: Syarulnaziah Anawar
Wide Area Network
Lab 2: Inter-VLAN and Static Routing
___________________________________________________________________________________________
R1#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, E - EGP
i - IS-IS, 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
10
Prepared by: Syarulnaziah Anawar
Wide Area Network
Lab 2: Inter-VLAN and Static Routing
___________________________________________________________________________________________
IPv4 Static and Default Routes
Topology
220.220.220.0/24
200.200.200.0/24
11
Prepared by: Syarulnaziah Anawar
Wide Area Network
Lab 2: Inter-VLAN and Static Routing
___________________________________________________________________________________________
Objectives
Part 1: Configure basic configuration on ISP
Background
In this activity, you will configure IPv4 static and default routes. A static route is a route that is entered
manually by the network administrator to create a reliable and safe route. There are three different static
routes that are used in this activity: a recursive static route, a directly attached static route, and a default
route.
12
Prepared by: Syarulnaziah Anawar
Wide Area Network
Lab 2: Inter-VLAN and Static Routing
___________________________________________________________________________________________
Part 3: Evaluate the Need for Static Routing
a. Looking at the topology diagram, how many networks are there in total?
6
b. How many static routes are required by each router to reach networks that are not directly
connected?
R1 needs 3 static routes, R2 needs 4 static routes, and R3 needs 3 static routes.
c. How does a directly attached static route differ from a recursive static route?
A directly attached static route relies on its exit interface in order for packets to be sent to
its destination, while a recursive static route uses the IP address of the next hop router.
d. How does a default route differ from a regular static route?
A default route, also known as the gateway of last resort, is the network route used by a
router when no other known route exists for a destination network. A static route is used
to route traffic to a specific network.
a. Configure a recursive static route to every network not directly connected to R3.
R3(config)# ip route 200.200.200.0 255.255.255.0 220.220.220.2
R3(config)# ip route 172.17.10.0 255.255.255.0 220.220.220.2
R3(config)# ip route 172.17.20.0 255.255.255.0 220.220.220.2
b. Test connectivity to the R1 LANs and ping the IP addresses of PC0 and PC1. Were you
successful?
Step 2: Configure directly attached static routes on ISP.
a. Configure a directly attached static route from ISP to every network not directly connected.
ISP(config)# ip route 172.17.10.0 255.255.255.0 Serial0/0/0
ISP(config)# ip route 172.17.20.0 255.255.255.0 Serial0/0/0
ISP(config)# ip route 172.17.30.0 255.255.255.0 Serial0/0/1
ISP(config)# ip route 172.17.40.0 255.255.255.0 Serial0/0/1
a. Configure a default route on R1 so that every network not directly connected is reachable.
R1(config)#ip route 0.0.0.0 0.0.0.0 200.200.200.2
13
Prepared by: Syarulnaziah Anawar
Wide Area Network
Lab 2: Inter-VLAN and Static Routing
___________________________________________________________________________________________
Step 4: Verify static route configurations.
Use the appropriate show commands to verify correct configurations. Which show commands can you
use to verify that the static routes are configured correctly?
14
Prepared by: Syarulnaziah Anawar