On 4.7.2010 19:19, Maciej Drobniuch wrote:
2010/7/4 Ondrej Filip<ondrej.filip@nic.cz>:
On 4.7.2010 17:27, Maciej Drobniuch wrote:
Hi All! I have established a bgp session to my isp using bird. I have one problem. The session works great but it doesn't advertise my inetnum. I can't find it in the documentation how to define my inetnum and how to advertise it?
Did you define some static routes? No, I did not. Should I create a static route for my self and redistribute it via bgp?
Yes, you should. Otherwise there is nothing to export. Which you can see from the output of show route preexport bgp1 You may add something like: protocol static { route 192.168.1.0/24 reject; } Or this could be some real route in case you do not run some IGP. Or you can export some device route if it's e.g. some anycast node etc. Ondrej
What is an output of
show route preexport bgp1 and show route export bgp1
? birdc
BIRD 1.2.3 ready. bird> show route preexport bgp1 bird> show route export bgp1 bird>
Ondrej
BIG Thanks! Maciej
My cfg: protocol bgp { # disabled; description "lol"; local as 51060; neighbor 213.5.9.73 as 49895; # multihop 20 via 62.168.0.13; hold time 240; startup hold time 240; connect retry time 120; keepalive time 80; # defaults to hold time / 3 start delay time 5; # How long do we wait before initial connect error wait time 60, 300;# Minimum and maximum time we wait after an error (when consecutive # # errors occur, we increase the delay exponentially ... error forget time 300; # ... until this timeout expires) # disable after error; # Disable the protocol automatically when an error occurs # next hop self; # Disable next hop processing and always advertise our local address as nexthop path metric 1; # Prefer routes with shorter paths (like Cisco does) default bgp_med 0; # MED value we use for comparison when none is defined default bgp_local_pref 0; # The same for local preference source address localip; # What local address we use for the TCP connection # password "idonotusemd5"; # Password used for MD5 authentication # rr client; # I am a route reflector and the neighor is my client # rr cluster id 1.0.0.1; # Use this value for cluster id instead of my router id # export where source=RTS_STATIC; export filter { if source = RTS_STATIC then { bgp_community = -empty-; bgp_community = add(bgp_community,(51060,49895)); bgp_origin = 0; bgp_community = -empty-; bgp_community.add((51060,49895)); if (51060,49895) ~ bgp_community then bgp_community.add((0, 1)); if bgp_path ~ [= 51060 =] then bgp_path.prepend(51060); accept; } reject; # accept; }; }
Big thanks !!!!
-- ( CZ.NIC z.s.p.o. ) ------------------------------------------------- Ondrej Filip - CEO
Office : Americka 23, Praha 2, Czech Republic Email : ondrej.filip@nic.cz http://www.nic.cz Private: feela@network.cz -------------------------------------------------