cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
433
Views
0
Helpful
3
Replies

static routing

pallette
Level 1
Level 1

I have encountered an odd issue. I am unable to have a static routing inserted into the RIB on a router.

example

int gi0/0

ip address 10.10.1.2 255.255.255.0

ip route 10.10.1.0 255.255.255.0 10.10.1.1

router eigrp 2

redistribute static

Notice that this static route's next hop is in same IP subnet.

if I do a show ip route static, I do not see this route. I do show 10.10.1.0 via directly connected interface.

What would cause this static route from not being inserted into the RIB.

Cheers

3 Replies 3

splys
Level 1
Level 1

I believe it is because directly connected subnets are prefered over static routes (using default admin distance.) therefore the router sees 10.10.1.0/24's best route as directly connected, and therefore will not include the "less prefered" static route.

If you were to change your gi0/0 to a different subnet (just for fun/testing) you should then see the 10.10.1.0/24 as a static route.

You actually do not need the static route for the subnet as it is a directly connected segement and will always be preferred over the static.

If your intention is to redistribute this network in eigrp, then you should try the command redistribute connected.

router eigrp 2

redistribute connected

HTH, rate if it does

Narayan

pushkar1782
Level 1
Level 1

Hi

This n/w is directly connected. You wont have route installed in Routing table. Router already knows it .

bye

Review Cisco Networking for a $25 gift card