04-29-2013 09:34 PM - edited 03-07-2019 01:05 PM
Hello,
I'm having a problem advertising a static route into EIGRP with the network command. I thought i would put this out there to see if anyone has encountered this problem before i open a TAC case since i'm suspecting it to be code related. I'm able to advertise the network via redistributing static without issue. I'm not using any route filtering what so ever. As a test i went to another layer 3 device running EIGRP at the same campus and was able to advertise the route via a network statement. Thanks in advance for any suggestions.
04-29-2013 09:43 PM
Hello Darren, you can not advertise a static route with the network statement. Its not a connected subnet. You will have to use redistribution.
Lets say I had this route
Ip route 10.0.0.0 255.255.255.0 1.1.1.1
And I need to advertise this out, I'd do this:
Router eigrp 1
redistribute connected route-map Test
default-metric 10000 1 255 1 1500
access-list 10 permit 10.0.0.0 0.0.0.255
route-map Test permit 10
match ip address 10
This way I am only advertising out the 10 network. Same can be achieved with the use of a prefix list.
Hope this helps
Sent from Cisco Technical Support iPhone App
04-29-2013 09:50 PM
The network command won't work because all the network command does, is enable the EIGRP process on the matching interface that has an IP matching in the network statement.
http://www.cisco.com/en/US/docs/ios/12_2/iproute/command/reference/1rfeigrp.html#wp1031063
Usage Guidelines
There is no limit to the number of network commands you can use on the router.
IGRP or EIGRP sends updates to the interfaces in the specified networks. Also, if the network of an interface is not specified, it will not be advertised in any IGRP or EIGRP update.
The network mask can be as specific as the interface mask.
Examples
The following example configures a router for EIGRP and assigns autonomous system 1. The network commands indicate the networks directly connected to the router.
router eigrp 1
network 172.16.0.0
network 192.168.7.0
Hope this helps
Sent from Cisco Technical Support iPhone App
04-30-2013 12:14 AM
Hi,
take a look at this post: https://supportforums.cisco.com/thread/2001720
Regards
Alain
Don't forget to rate helpful posts.
04-30-2013 12:38 AM
Hello Alain, Thank you for telling me about this post... I learnt something new! 5*
I will test this now.
Please rate useful posts and remember to mark any solved questions as answered. Thank you.
04-30-2013 01:03 AM
That proved correct. The post that Alain pointed out is a very good read! If you have a static route, pointing towards a directly connected interface, it is treated like an attached network.
i.e.
if you have for example ip route 1.1.1.1 255.255.255.255 null 0
and under the EIGRP process you do this:
router eigrp 1
network 1.1.1.1 0.0.0.0
This will advertise out the 1.1.1.1 network and is seen on the other side:
R1:
interface FastEthernet0/0
ip address 10.0.0.1 255.255.255.252
duplex auto
speed auto
!
router eigrp 1
network 10.0.0.1 0.0.0.0
network 1.1.1.1 0.0.0.0
no auto-summary
!
ip route 1.1.1.1 255.255.255.255 Null0
R2:
interface FastEthernet0/0
ip address 10.0.0.2 255.255.255.252
duplex auto
speed auto
!
router eigrp 1
network 10.0.0.2 0.0.0.0
=====================================================
R2#show 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
1.0.0.0/32 is subnetted, 1 subnets
D 1.1.1.1 [90/28160] via 10.0.0.1, 00:10:56, FastEthernet0/0
10.0.0.0/30 is subnetted, 1 subnets
C 10.0.0.0 is directly connected, FastEthernet0/0
So it seems like as long as a route is pointing towards an interface then it will be advertised.
Thanks again Alain :-)
Please rate useful posts and remember to mark any solved questions as answered. Thank you.
04-30-2013 08:31 AM
Thanks for everyones comments i appreciate the feedback. I did read the above post before (tried to do some research before just posting) and tried to utilize a next hop of connected and IP. Neither option would advertise the network. I guess i'll open a tac case since it may be code related.
Thanks everyone.
04-30-2013 09:08 AM
If it is a static route why don't you just redistribute it with the static option under EIGRP?
04-30-2013 10:02 AM
I need the route to be internal not external.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide