AW: Static routes

Daniel Seidenstücker d.seidenstuecker at googlemail.com
Mon Feb 22 12:38:12 CET 2016


Hi Dirk,

@1st question:
I think it could be solved by removing/commenting the "persist" from the kernel protocol of the BIRD config file.

http://bird.network.cz/?get_doc&f=bird-3.html#ss3.1
protocol kernel {
        persist;                # Don't remove routes on BIRD shutdown
        ...
}


@2nd question:
I think " bird: sk_open_unix: bind: Address already in use bird: Unable to create control socket /var/run/bird.ctl [fail]" can be solved with sudo/root.

Ubuntu call without sudo results in " bird: Cannot create control socket /usr/local/var/run/bird.ctl: Address already in use".

A config file error would result in "bird: /etc/bird/bird.conf, line 7: syntax error" for example.

Regards,
Daniel

-----Ursprüngliche Nachricht-----
Von: bird-users-bounces at network.cz [mailto:bird-users-bounces at network.cz] Im Auftrag von Support of the day
Gesendet: Montag, 22. Februar 2016 09:38
An: bird-users at network.cz
Betreff: Static routes

Hi,
this is my first post to this list, so i hope to meet the rules here.

We have two BIRDs acting as BGP-router, running since more than four years without any trouble.
Now we wanted to define some static routes with

route yyy.yyy.yyy.yyy/32 via xxx.xxx.xxx.xxx;

We reload bird and the routes can be seen with netstat -r.
First question (just for learning) is: when we want to delete one of this static routes with a "#" at the beginning of the lines and reload bird, we still see this route.
So what is the right way to delete a static route?

Second question: the described issue was some weeks ago. This week we had to define some static routes, similar to the ones above. But this time it is not working, we cannot see the routes.  And:
/etc/init.d/bird restart
  * Restarting Internet routing daemon bird
bird: sk_open_unix: bind: Address already in use
bird: Unable to create control socket /var/run/bird.ctl [fail]

This message is on both routers.
Perhaps this is the result of a syntax-problem in our both confs?

Dirk




More information about the Bird-users mailing list