T1 IP Static Routing, Troubleshoot Static and Default Routes

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

BMIT3094 ADVANCED COMPUTER NETWORKS

Tutorial 1

1. With reference to R1’s partial output of “show ip route” command, differentiate the two static
routes:

R1# show ip route

<partial output omitted>


S 192.168.2.0/24 [1/0] via 172.16.2.2
S 192.168.1.0 /24 is directly connected, serial s0/0/0

 Next-
hop static route is using next-hop IP address
- Eg. 192.168.2.0/24 [1/0] via 172.16.2.2
- It actually takes two routing table lookup processes to forward any packet to the
192.168.2.0/24 network
- When the router performs multiple lookups in the routing table before forwarding a
packet, it is performing a process known as a recursive lookup --- this process consumes
router resources because recursive lookup
 Directly connected static route is using only the router exit interface
- Eg. 192.168.1.0/24 is directly connected, serial s0/0/0
- Directly connected static route allows the routing table to resolve the exit interface in a
single search, instead of two searches
- Although the routing table entry indicates “directly connected”, the administrative
distance of the static route is still 1
- This process consumes lesser router resources because single lookup

202101 1
BMIT3094 ADVANCED COMPUTER NETWORKS

2. Identify and illustrate one of the types of static route shown in R1’s running-configuration.

R1# show ip route


<partial output omitted>
S 192.168.2.0/24 [1/0] via 172.16.2.2, GigabitEthernet 0/1

 The type of static route is fully specified static route


- Fully specified static route is configured with the next-hop IP address and exit interface
- The form of static route is used when the output interface is a multi-access interface and it
is necessary to explicitly identify the next hop
- The next hop must be directly connected to the specified exit interface
- To eliminate the recursive lookup, a directly connected static route can be implementing
using the following command: R1(config)# ip route 192.168.2.0 255.255.255.0 g0/1
- However, this may cause unexpected or inconsistent results. With Ethernet networks,
there may be many different devices sharing the same multi-access network, including
hosts and even multiple routers
- By only designating the Ethernet exit interface in the static route, the router will not have
sufficient information to determine which device is the next-hop device
- R1 knows that the packet needs to be encapsulated in an Ethernet frame and sent out the
G0/1 interface
- However, R1 does not know the next-hop IPv4 address and therefore it cannot determine
the destination MAC address for the Ethernet frame
- It is recommended that when the exit interface is an Ethernet network, that a fully
specified static route is used including both the exit interface and the next-hop address
- R1# ip route 192.168.2.0 255.255.255.0 g0/1 172.16.2.2

3. What are the primary uses of static routing?


 Providing ease of routing table maintenance in smaller networks that are not expected to grow
significantly
 Routing to and from stub networks. A stub network is a network accessed by a single route,
and the router has no other neighbors
 Using a single default route to represent a path to any network that does not have a more
specific match with another route in the routing table. Default routes are used to send traffic
to any destination beyond the next upstream router.

202101 2
BMIT3094 ADVANCED COMPUTER NETWORKS

4. Differentiate a “default static route” with a “floating static route”.


 Default static route
- A default static route is a route that matches all packets. A default route identifies the
gateway IP address to which the router sends all IP packets that it does not have a learned
or static route
- A default static route is simply a static route with 0.0.0.0/0 as the destination IPv4 address
- Configuring a default static route creates a Gateway of Last Resort
- Eg. Ip roues 0.0.0.0 0.0.0.0 s0/0/1

 Floating static routes


- Floating static roues are static routes that are used to provide a backup path to a primary
static or dynamic route, in the event of a link failure
- The floating static route is only used when the primary route is not available
- In order to accomplish this, the floating static route is configured with a higher
administrative distance than the primary route
- Eg. Ip route 0.0.0.0 0.0.0.0 s0/0/0 3 (administrative distance of static route is 1)

5. Based on the network topology below, answer the following questions:

(a) In router R1, write a command to configure a default static route using the exit
interface. Ip route 0.0.0.0 0.0.0. s0/0/0

(b) In router R1, write a command to configure a summary static route for network
172.16.2.0/24 – 172.16.5.0/24 using the next hop IP address.
Ip route 172.16.0.0 255.255.248.0 192.168.2.2

(c) In router R2, write a command to configure a standard static route for network
192.168.1.0/24 using the exit interface.
Ip route 192.168.1.0 255.255.255.0 s0/0/0

(d) In router R2, write two commands to configure fully specified static routes for network
172.16.4.0/24 and 172.16.5.0/24.
Ip route 172.16.4.0 255.255.255.0 g0/0 172.16.3.2
Ip route 172.16.5.0 255.255.255.0 g0/1 172.16.2.2

202101 3
BMIT3094 ADVANCED COMPUTER NETWORKS

6. Suggest the most appropriate routing methods to be implemented for a small network topology
shown below to forward packets from R1 to ISP and vice versa. Justify your answers.

192.168.10.0/24
209.100.10.8/30
G0/0
S0/0/1

S0/0/0
G0/1

192.168.11.0/24

 Static routes is the most appropriate routing method used because it use less bandwidth than
dynamic routing protocols, no CPU cycles are used to calculate and communicate routes.
 R1 is configured with default static route
- A default route is a static route that matches all packets. Rather than storing all roues to
all networks in the routing table, a router can store a single default route to represent any
network that is not in the routing table
 ISP is configured summary static route.
- Reduce the number of routes advertised by summarizing several contiguous networks as
one static route
- The path a static route uses to send data is known

202101 4

You might also like