This lab will teach you the basics of static routing and how to configure static routes on multiple routers to ensure IP reachability over the network.
If you plan to become a CCNA then you better plan on understanding Static routing. Static routing is a core technology that any network engineer must understand. Its the ability to statically configure a route from one machine to a network with the next transit path hop to get to that network.
For example If router R1 is connected to network 10.61.10.0/24 and PC’s on that network need to get to the 10.61.30.0/24 network then R1 must know where what router to send that traffic to that’s local to R1 that can reach that network.
Let’s say R1 passes this traffic off to R2 and R2 see’s that the network is not directly connected so then R2 then must forward the traffic to the “next hop” in the transit path to get to a router that has that network directly attached. So it then passes it off to R3 which has the 10.61.88.0/24 network directly connected to interface Gi3/10
Take a step back for a minute and think about bi-directional traffic. If you have static routes pointing in one direction does that necessarily mean that IP communication will be successful? What if the router R3 has no route back to 10.61.21.0/24? This means that traffic from 10.61.21.0/24 can get to the 10.61.88.0/24 network but traffic from the 10.61.88.0/24 network cannot get back. So with that being the case any PC on the 10.61.21.0/24 can send traffic to the 10.61.88.0/24 network but not receive any response back.
Commonly static routes are used for floating routes (as discussed in lab 6-2) and a default route which is discussed in lab 6-3 however, many engineers rely on static routes in their infrastructure due to a lack of understanding of dynamic routing protocols such as RIP, EIGRP and OSPF. A well designed network should have very few static routes as the general rule of thumb; when you configure a static route and the network changes, you’ll then potentially need to reassess and reconfigure the static route to ensure network reachability.
In this lab you will configure static routing for three routers that simulate a small business with locations in NYC, Miami and San Francisco each having separate IP subnets attached. You will use the skill’s you’ve previously learned in Section 5 to build a daisy chained frame relay network between R1, R2 and R3. For those of you who are unfamiliar with the “Daisy Chain” configuration then technically its the act of linking one device after another after another after another in a linear bus topological fashion which has little or no redundancy.
One thing that has yet to be discussed on the Free CCNA Workbook is the comprehension of physical verses logical topologies. This concept causes a lot of confusion at first for candidates preparing for the CCNA and this concept alone tends to catch new CCNA’s off guard when they get a job dealing with a simi-large network and they notice that the physical and logical network topologies do not match at all. Often times in enterprise networks there are several technologies used that are not covered in the CCNA blueprint but you’ll learn very quickly that such technologies can alter how the network functions logically. For example you have a single switch that has a single link that does routing for multiple VLAN’s. Physically you’ll see one cable in the wiring closet but logically you’ll see in the documentation that there could appear to be multiple routers or switches.
Shown below is a logical topology of the network you will be building in this lab. Check out the overall lab topology to view the physical topology. However; looking down on this network you’ll see the topology is built upon the operational function of each network device as shown below;
When doing Cisco Labs is common to use loopback interfaces as simulated connected networks. In this lab the Loopback0 interface on R1, R2 and R3 will simulate their connected networks which you will be configuring static routing for.
In this lab you will familiarize yourself with following new command(s);
Command | Description |
---|---|
ip route n.n.n.h s.s.s.s nh.nh.nh.nh | This command is executed in global configuration mode to create a static route locally. |
The syntax of this command is ip route network subnet nexthop; so an example would be ip route 192.168.20.0 255.255.255.0 192.168.20.5 This effectively says to get to network 192.168.20.0/24 go to 192.168.20.5
Objective 1. – Create a Static Route on R1 that states to get to 10.61.20.0/24 go to the next hop of 10.61.12.2 then place the return route on R2 stating to get to 10.61.10.0/24 go to the next hop of 10.61.12.1. Verify that the routes added operate correctly by pinging R2’s Lo0 interface sourced from R1’s Lo0 interface.
The steps of this objective are pretty straight forward and demonstrated below;
R1#configure terminal Enter configuration commands, one per line. End with CNTL/Z. R1(config)#ip route 10.61.20.0 255.255.255.0 10.61.12.2 R1(config)#end R1#
R2#configure terminal Enter configuration commands, one per line. End with CNTL/Z. R2(config)#ip route 10.61.10.0 255.255.255.0 10.61.12.1 R2(config)#end R2#
And now to verify communication by pinging R2’s Lo0 from R1 sourced from R1’s Lo0 interface. This basically simulates traffic coming from 10.61.10.1 going to 10.61.20.1 to verify that communications between those two subnets are functioning properly.
R1#ping 10.61.20.1 source lo0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.61.20.1, timeout is 2 seconds:
Packet sent with a source address of 10.61.10.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/50/104 ms
R1#
Keep in mind if you’re able to ping R2’s Lo0 interface from R1’s Lo0 then you have bidirectional ip communications, if not then you would not get a echo reply (ping reply) from R2 after R1 sent the echo request (ping).
Objective 2. – Create a Static Route on R2 that states to get to 10.61.30.0/24 go to the next hop of 10.61.23.2 then place the return route on R3 stating to get to 10.61.20.0/24 go to the next hop of 10.61.23.1. Verify that the routes added operate correctly by pinging R3’s Lo0 interface sourced from R2’s Lo0 interface.
R2#configure terminal Enter configuration commands, one per line. End with CNTL/Z. R2(config)#ip route 10.61.30.0 255.255.255.0 10.61.23.2 R2(config)#end R2#
R3#configure terminal Enter configuration commands, one per line. End with CNTL/Z. R3(config)#ip route 10.61.20.0 255.255.255.0 10.61.23.1 R3(config)#end R3#
Once the static route statements are configured you’re ready to Verify that the routes added operate correctly by pinging R3’s Lo0 interface from R2 with the source interface of Lo0.
R2#ping 10.61.30.1 source lo0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.61.30.1, timeout is 2 seconds:
Packet sent with a source address of 10.61.20.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/74/164 ms
R2#
Now you have IP communication between networks 10.61.10.0/24 and 10.61.20.0/24 as well as 10.61.20.0/24 and 10.61.30.0/24 however you do not have ip communication between 10.61.10.0/24 and 10.61.30.0/24 which leads us to our next objective.
Objective 3. – Configure R1 to route 10.61.30.0/24 to the next hop of 10.61.12.2 (R2) then configure R3 to route 10.61.10.0/24 to 10.61.23.1. Afterward verify that you have IP communication between 10.61.10.0/24 and 10.61.30/24
>R1#configure terminal Enter configuration commands, one per line. End with CNTL/Z. R1(config)#ip route 10.61.30.0 255.255.255.0 10.61.12.2 R1(config)#end R1#
R3#configure terminal Enter configuration commands, one per line. End with CNTL/Z. R3(config)#ip route 10.61.10.0 255.255.255.0 10.61.23.1 R3(config)#end R3#
And now to verify IP communication between 10.61.10.0/24 and 10.61.30.0/24 you can ping R3’s Loopback0 from R1 with the pings sourced from R1’s Loopback0 interface as shown below;
R1#ping 10.61.30.1 source lo0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.61.30.1, timeout is 2 seconds:
Packet sent with a source address of 10.61.10.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/64/124 ms
R1#