Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Issues with Static Route

I have created a small network and was working with static route. Please find the Networks that are configured below.

Network 1 (10.1.1.0/24)

PC Mohana (10.1.1.1)

PC Akshatha (10.1.1.2)

Default Gateway (10.1.1.251) configured on Router Vimala Gi0/0

Network 2 (10.1.2.0/24)

PC Amrutha (10.1.2.1)

PC Prashanth (10.1.2.2)

Default Gateway (10.1.2.252) configured on Router Ramaswamy Gi0/2

Network 3 (10.1.3.0/24)

PC Ramesha (10.1.3.1)

PC Ramya (10.1.3.2)

Default Gateway (10.1.3.253) configured on Router Sridhara Gi0/2

Route.JPG

I have added static route to 10.1.2.0/24 and 10.1.3.0/24 on Vimala Router, see the routes below.

Vimala#sh ip route static

     10.0.0.0/8 is variably subnetted, 8 subnets, 2 masks

S       10.1.2.0/24 [1/0] via 10.1.128.252

S       10.1.3.0/24 [1/0] via 10.1.130.253

So i had to add the static routes on the other 2 routers to allow all the subnets talk to each other, now the problem is when i am trying to add static routes on routers Ramaswamy and Sridhara, its not taking one of the routes. See below

Sridhara#sh ip route static

     10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks

S       10.1.2.0/24 [1/0] via 10.1.129.252

Ramaswamy#sh ip route static

     10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks

S       10.1.1.0/24 [1/0] via 10.1.128.251

But when you check the routing table through GUI it shows, please find the screenshot from one of the router below.

Sridhara.JPG

Please help in understanding why it is not allowing to add multiple routes in Router Sridhara and Ramaswamy.

Everyone's tags (1)
1 REPLY
Hall of Fame Super Blue

Re: Issues with Static Route

Your next hop IP addresses for the routes you are trying to add are wrong eg.

Vimala#sh ip route static

     10.0.0.0/8 is variably subnetted, 8 subnets, 2 masks

S       10.1.2.0/24 [1/0] via 10.1.128.252

S       10.1.3.0/24 [1/0] via 10.1.130.253    <---- this the Sridhara next hop IP address

Ramaswamy#sh ip route static

     10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks

S       10.1.1.0/24 [1/0] via 10.1.128.251  <-- this is the Vimala next hop IP address

so Ramaswamy uses 10.1.128.250/30 to connect to Vimala.

But you are trying to add this route to Sridhara -

ip route 10.1.1.0 255.255.255.0 10.1.128.251

but that is not the correct next hop.

Looking at your addressing the link between Sridhara and Vimala is 10.1.130.252/30. So your route on Sridhara should be

ip route 10.1.1.0 255.255.255.0 10.1.130.254  <--- this is Vimala next hop.

Edit - the reason the route is not added is because as i say you are using the wrong net hop. If Sridhara had a route to 10.1.128.251 then it would add the route although all traffic from 10.1.3.0/24 to 10.1.1.0/24 would go the indirect route via Ramswamy. But because Sridhara does not have a route to that subnet the route cannot be added to the route table.

Jon

114
Views
0
Helpful
1
Replies
CreatePlease to create content