cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1222
Views
0
Helpful
6
Replies

Configuring Admin Distance in Static Route

rivanfrank
Level 1
Level 1

Hi Everyone,

I need help to clarify this on my mind. At first I put static routes on both routers and put admin distance of 151.

router1(config)#ip route 192.168.16.0 255.255.255.240 10.0.0.2 151

router2(config)#ip route 192.168.8.0 255.255.255.248 10.0.0.1 151

Second, I put RIP on both routers (for fun)

router1(config)#router rip

router1(config-router)#network 192.168.8.0

router1(config-router)#network 10.0.0.0

router2(config)#router rip

router2(config)#network 192.168.16.0

router2(config)#network  10.0.0.0

show ip route

router1#sh ip route

Codes: C - connected, S - static, I - IGRP, 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

Gateway of last resort is not set

     10.0.0.0/14 is subnetted, 1 subnets

C       10.0.0.0 is directly connected, Serial0/0/0

     192.168.8.0/29 is subnetted, 1 subnets

C       192.168.8.0 is directly connected, FastEthernet0/0

S    192.168.16.0/20 [151/0] via 10.0.0.2

R    192.168.16.0/24 [120/1] via 10.0.0.2, 00:00:26, Serial0/0/0


I understand that RIP will work but my concern is when i type sh ip route, static routes are still showing, is this normal? I thought it will disappear and only RIP will show. And by the way routes still works it's just the static route is still showing that bothers me.

Thanks.

3 Accepted Solutions

Accepted Solutions

The route you configured has a different subnet-mask then the route you received. And the config-line above has again a different mask than the others.

If your configured static route had the same subnet-mask as the learned RIP-route, you would only see the RIP-route as long as the RIP-route is available.

-- 
Don't stop after you've improved your network! Improve the world by lending money to the working poor:
http://www.kiva.org/invitedby/karsteni

View solution in original post

mahmoodmkl
Level 7
Level 7

Hi
the subnet masks is differnt for static routes n rip routes so both of thm are installed in the routing table if the masks were same thn only rip routes could be there.
let us know the issue u r facing

Sent from Cisco Technical Support iPhone App

View solution in original post

Hi,

you should do no auto-summary under the RIP process on both routers then the /24 RIP routes will become /28 and  /29

and as you have static routes for these same prefixes but with a higher AD , the RIP routes will get installed in the routing tables replacing the  static routes.

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

View solution in original post

6 Replies 6

The route you configured has a different subnet-mask then the route you received. And the config-line above has again a different mask than the others.

If your configured static route had the same subnet-mask as the learned RIP-route, you would only see the RIP-route as long as the RIP-route is available.

-- 
Don't stop after you've improved your network! Improve the world by lending money to the working poor:
http://www.kiva.org/invitedby/karsteni

Thanks karsten.iwen.

I misconfigured the static route but it's now fixed but can you tell if there is something wrong here?

router1

     10.0.0.0/14 is subnetted, 1 subnets

C       10.0.0.0 is directly connected, Serial0/0/0

     192.168.8.0/29 is subnetted, 1 subnets

C       192.168.8.0 is directly connected, FastEthernet0/0

     192.168.16.0/24 is variably subnetted, 2 subnets, 2 masks

R       192.168.16.0/24 [120/1] via 10.0.0.2, 00:00:05, Serial0/0/0

S       192.168.16.0/28 [151/0] via 10.0.0.2

router2

     10.0.0.0/14 is subnetted, 1 subnets

C       10.0.0.0 is directly connected, Serial0/0/0

     192.168.8.0/24 is variably subnetted, 2 subnets, 2 masks

R       192.168.8.0/24 [120/1] via 10.0.0.1, 00:00:00, Serial0/0/0

S       192.168.8.0/29 [151/0] via 10.0.0.1

     192.168.16.0/28 is subnetted, 1 subnets

C       192.168.16.0 is directly connected, FastEthernet0/0

Thanks.

Hi,

you should do no auto-summary under the RIP process on both routers then the /24 RIP routes will become /28 and  /29

and as you have static routes for these same prefixes but with a higher AD , the RIP routes will get installed in the routing tables replacing the  static routes.

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

Thank You! I remember that rip is classful. Big Help! and it now works!

mahmoodmkl
Level 7
Level 7

Hi
the subnet masks is differnt for static routes n rip routes so both of thm are installed in the routing table if the masks were same thn only rip routes could be there.
let us know the issue u r facing

Sent from Cisco Technical Support iPhone App

Thank You! I remember that rip is classful. Big Help! and it now works!