Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't redisctribute static routes

Status
Not open for further replies.

HTY

IS-IT--Management
Sep 26, 2002
37
FR
Hi all,
I am exchanging routes via BGP between two routers, it's a basic, simple architechture, router1 which is connected to AS1 is redistributing static routes, router2 placed in AS2 is redistributing routes learned via OSPF.
The problem is that router1 can't advertise his static routes to the neighbor, the only way to make this function is to declare these networks via the "network w.x.y.z mask ..." statement.
Router2 is redistributing its routes normally.
anyone has any idea?
Thanks. Hicham
 
What command are your using to redistribut into your BGP?

Also, be very careful about redistributing into BGP. I would suggest that you create a prefix-list and apply it to your eBGP peers so that you don't send them all your routes.

I.E.

ip prefix-list announce seq 5 permit xxx.xxx.xxx.0/24
!1st netblock your announcing
ip prefix-list announce seq 10 permit xxx.xxx.xxx.0/24
!2nd netblock your announcing

router bgp (AS NUMBER)
neighbor xxx.xxx.xxx.xxx remote as (isp's AS)
neighbor xxx.xxx.xxx.xxx prefix-list announce out
exit

This will only announce the subnets listed in your prefix list to your xxx.xxx.xxx.xxx neighbor.
 
Another possibility:

router bgp 62953
redistribute static
!
ip route 192.168.0.0 255.255.255.0 null 0
 
for resitributing bgp, I am using the command:
router bgp ....
redistribute static
!
and it isn't working.
for baddos:
i am using a prefix list, which i have suppressed to test if the problem comes from this list, but this didn't solve the problem, only networks advertised via the command:
network x.x.x.x mask y.y.y.y
are being redistributed!
my problem is that i have hendreds of network to advertise!
Hicham
 
If you have hundreds, why are they in static routes? You should be using OSPF or some other routing protocol to keep track of that. What a nightmare. :)

BGP by default won't announce routes that aren't in the routers routing table. Make sure their in the routing table first by doing a show ip route. You can disable the IGP sync by typing no synchronization in your bgp setup.

Also, if they are all part of the same netblock, you should aggregate them to a large netblock. Some ISP's block netblocks smaller than a /19 and almost all block netblocks smaller than a /24.
 
I do have hundreds of stratic routes, am not using ospf or other routing protocol to avoid assymetric routing (am using a pair of firewalls in a HA environment).
all the routes (the static) are present in the routing table.
I have tried to disable the sync between the IGP peers.
am not using aggregation because I am sharing the address block with the ISP!
Hicham
 
Please post your BGP config. Go ahead and change the real IPS to fake ones.

-Bad Dos
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top