Connected Routes Lab

Basic connected routes lab.

Diagram:

Objectives:

  • Connect the routers and switches as shown.
  • Assign IP address to interfaces as shown.
  • Verify connectivity.
  • Verify the routing tables and observe the connected routes.

Solution for R1 only:

Configure the IP Addresses:

R1(config)#interface e0/0
R1(config-if)#ip address 10.1.128.251 255.255.255.0
R1(config-if)#interface e0/1
R1(config-if)#ip address 10.1.130.251 255.255.255.0
R1(config-if)#interface e0/2
R1(config-if)#ip address 10.1.1.251 255.255.255.0

Make sure you bring the interfaces up with no shutdown

Verify Connectivity:

R1#ping 10.1.128.252

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.128.252, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/8/12 ms

R1#ping 10.1.130.252

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.130.252, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/10/28 ms

Verify the Routing Tables and Observe the Connected Routes:

R1#sh ip route
Codes: 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

Gateway of last resort is not set

     10.0.0.0/24 is subnetted, 3 subnets
C       10.1.1.0 is directly connected, Ethernet0/2
C       10.1.130.0 is directly connected, Ethernet0/1
C       10.1.128.0 is directly connected, Ethernet0/0

As you can see there are three connected 'C' routes for each of the directly connected networks. You can also use the EXEC command terminal ip netmask-format decimal to display netmasks in decimal format:

R1#terminal ip netmask-format decimal
R1#sh ip route
!!!!! Truncated !!!!!

Gateway of last resort is not set

     10.0.0.0 255.255.255.0 is subnetted, 3 subnets
C       10.1.1.0 is directly connected, Ethernet0/2
C       10.1.130.0 is directly connected, Ethernet0/1
C       10.1.128.0 is directly connected, Ethernet0/0

Other verification commands you should be familiar with:

R1#show ip interface brief
Interface                  IP-Address      OK? Method Status                Protocol
Ethernet0/0                10.1.128.251    YES manual up                    up      
Ethernet0/1                10.1.130.251    YES manual up                    up      
Ethernet0/2                10.1.1.251      YES manual up                    up      
Ethernet0/3                unassigned      YES unset  administratively down down  
No votes yet