Hi All, I'm using Bird v1.0.4 and trying to setup RIP to accept RIP routes but not broadcast any routes on a specific interface, in the following example eth0. I realize I could configure an export filter to block broadcasting all RIP routes but I'd like the capability to block broadcasting based on specific interfaces. The problem is that in "quiet" mode bird doesn't seem to accept routes, when I check the list of routes with route -n. Other modes like broadcast and nolisten work fine. Following is a copy of my bird.conf file. Thanks! Ray ray@spectrumwireless.net log syslog all; protocol direct { interface "-lo*", "*"; } protocol kernel { learn yes; persist yes; scan time 20; import all; export all; } protocol device { scan time 10; } protocol ospf { disabled yes; } protocol rip { interface "eth0" { mode quiet; }; import filter { if net = 0.0.0.0/0 then { reject; } else { accept; } } export filter { if net = 0.0.0.0/0 then { reject; } else { accept; } } } protocol static { }
Hi!
I'm using Bird v1.0.4 and trying to setup RIP to accept RIP routes but not broadcast any routes on a specific interface, in the following example eth0. I realize I could configure an export filter to block broadcasting all RIP routes but I'd like the capability to block broadcasting based on specific interfaces.
The problem is that in "quiet" mode bird doesn't seem to accept routes, when I check the list of routes with route -n. Other modes like broadcast and nolisten work fine. Following is a copy of my bird.conf file.
I'm not the author of the RIP code, but could you try to turn on tracing of the protocol and send me the result, please? Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth Purchasing Windows is an Unrecoverable Application Error.
Martin, I dropped a "debug protocals all" at the top of my bird.conf file. I started bird, let it run, then shut it down. I don't see anything too exciting in the syslog as follows: Jan 26 01:29:55 spectrum syslogd 1.4-0: restart. Jan 26 01:29:55 spectrum syslogd 1.4-0: restart. Jan 26 01:30:38 spectrum bird: direct1: Initializing Jan 26 01:30:38 spectrum bird: direct1: Initializing Jan 26 01:30:38 spectrum bird: kernel1: Initializing Jan 26 01:30:38 spectrum bird: kernel1: Initializing Jan 26 01:30:38 spectrum bird: device1: Initializing Jan 26 01:30:38 spectrum bird: device1: Initializing Jan 26 01:30:38 spectrum bird: rip1: Initializing Jan 26 01:30:38 spectrum bird: rip1: Initializing Jan 26 01:30:38 spectrum bird: ospf1: Initializing [disabled] Jan 26 01:30:38 spectrum bird: ospf1: Initializing [disabled] Jan 26 01:30:38 spectrum bird: static1: Initializing [disabled] Jan 26 01:30:38 spectrum bird: static1: Initializing [disabled] Jan 26 01:30:38 spectrum bird: direct1: Starting Jan 26 01:30:38 spectrum bird: direct1: Starting Jan 26 01:30:38 spectrum bird: direct1: State changed to feed Jan 26 01:30:38 spectrum bird: direct1: State changed to feed Jan 26 01:30:38 spectrum bird: kernel1: Starting Jan 26 01:30:38 spectrum bird: kernel1: Starting Jan 26 01:30:38 spectrum bird: kernel1: State changed to feed Jan 26 01:30:38 spectrum bird: kernel1: State changed to feed Jan 26 01:30:38 spectrum bird: device1: Starting Jan 26 01:30:38 spectrum bird: device1: Starting Jan 26 01:30:38 spectrum bird: device1: Scanning interfaces Jan 26 01:30:38 spectrum bird: device1: Scanning interfaces Jan 26 01:30:38 spectrum bird: Guessed router ID 10.0.0.1 according to interface eth1 Jan 26 01:30:38 spectrum bird: Guessed router ID 10.0.0.1 according to interface eth1 Jan 26 01:30:38 spectrum bird: device1: State changed to feed Jan 26 01:30:38 spectrum bird: device1: State changed to feed Jan 26 01:30:38 spectrum bird: rip1: Starting Jan 26 01:30:38 spectrum bird: rip1: Starting Jan 26 01:30:38 spectrum bird: rip1: Listening on (dummy), port 520, mode broadc ast (0.0.0.0) Jan 26 01:30:38 spectrum bird: rip1: Listening on (dummy), port 520, mode broadc ast (0.0.0.0) Jan 26 01:30:38 spectrum bird: rip1: State changed to feed Jan 26 01:30:38 spectrum bird: rip1: State changed to feed Jan 26 01:30:38 spectrum bird: direct1 < primary address 127.0.0.0/8 on interfac e lo added Jan 26 01:30:38 spectrum bird: direct1 < primary address 127.0.0.0/8 on interfac e lo added Jan 26 01:30:38 spectrum bird: direct1 < primary address 12.17.138.0/26 on inter face eth0 added Jan 26 01:30:38 spectrum bird: direct1 < primary address 12.17.138.0/26 on inter face eth0 added Jan 26 01:30:38 spectrum bird: direct1 > added [best] 12.17.138.0/26 dev eth0 Jan 26 01:30:38 spectrum bird: direct1 > added [best] 12.17.138.0/26 dev eth0 Jan 26 01:30:38 spectrum bird: direct1 < primary address 10.0.0.0/8 on interface eth1 added Jan 26 01:30:38 spectrum bird: direct1 < primary address 10.0.0.0/8 on interface eth1 added Jan 26 01:30:38 spectrum bird: direct1 > added [best] 10.0.0.0/8 dev eth1 Jan 26 01:30:38 spectrum bird: direct1 > added [best] 10.0.0.0/8 dev eth1 Jan 26 01:30:38 spectrum bird: direct1: State changed to up Jan 26 01:30:38 spectrum bird: direct1: State changed to up Jan 26 01:30:38 spectrum bird: kernel1: Connected to table master Jan 26 01:30:38 spectrum bird: kernel1: Connected to table master Jan 26 01:30:38 spectrum bird: kernel1 < added 10.0.0.0/8 dev eth1 Jan 26 01:30:38 spectrum bird: kernel1 < added 10.0.0.0/8 dev eth1 Jan 26 01:30:38 spectrum bird: kernel1 < added 12.17.138.0/26 dev eth0 Jan 26 01:30:38 spectrum bird: kernel1 < added 12.17.138.0/26 dev eth0 Jan 26 01:30:38 spectrum bird: kernel1: State changed to up Jan 26 01:30:38 spectrum bird: kernel1: State changed to up Jan 26 01:30:38 spectrum bird: device1: State changed to up Jan 26 01:30:38 spectrum bird: device1: State changed to up Jan 26 01:30:38 spectrum bird: rip1: Connected to table master Jan 26 01:30:38 spectrum bird: rip1: Connected to table master Jan 26 01:30:38 spectrum bird: rip1 < interface lo goes up Jan 26 01:30:38 spectrum bird: rip1 < interface lo goes up Jan 26 01:30:38 spectrum bird: rip1 < interface eth0 goes up Jan 26 01:30:38 spectrum bird: rip1 < interface eth0 goes up Jan 26 01:30:38 spectrum bird: rip1 < interface tunl0 created Jan 26 01:30:38 spectrum bird: rip1 < interface tunl0 created Jan 26 01:30:38 spectrum bird: rip1 < interface gre0 created Jan 26 01:30:38 spectrum bird: rip1 < interface gre0 created Jan 26 01:30:38 spectrum bird: rip1 < interface ipsec0 created Jan 26 01:30:38 spectrum bird: rip1 < interface ipsec0 created Jan 26 01:30:38 spectrum bird: rip1 < interface ipsec1 created Jan 26 01:30:38 spectrum bird: rip1 < interface ipsec1 created Jan 26 01:30:38 spectrum bird: rip1 < interface ipsec2 created Jan 26 01:30:38 spectrum bird: rip1 < interface ipsec2 created Jan 26 01:30:38 spectrum bird: rip1 < interface ipsec3 created Jan 26 01:30:38 spectrum bird: rip1 < interface ipsec3 created Jan 26 01:30:38 spectrum bird: rip1 < interface teql0 created Jan 26 01:30:38 spectrum bird: rip1 < interface teql0 created Jan 26 01:30:38 spectrum bird: rip1 < interface brg0 created Jan 26 01:30:38 spectrum bird: rip1 < interface brg0 created Jan 26 01:30:38 spectrum bird: rip1 < interface eth1 goes up Jan 26 01:30:38 spectrum bird: rip1 < interface eth1 goes up Jan 26 01:30:38 spectrum bird: rip1 < added 10.0.0.0/8 dev eth1 Jan 26 01:30:38 spectrum bird: rip1 < added 10.0.0.0/8 dev eth1 Jan 26 01:30:38 spectrum bird: rip1 < added 12.17.138.0/26 dev eth0 Jan 26 01:30:38 spectrum bird: rip1 < added 12.17.138.0/26 dev eth0 Jan 26 01:30:38 spectrum bird: rip1: State changed to up Jan 26 01:30:38 spectrum bird: rip1: State changed to up Jan 26 01:30:38 spectrum bird: kernel1: Scanning routing table Jan 26 01:30:38 spectrum bird: kernel1: Scanning routing table Jan 26 01:30:38 spectrum bird: kernel1: 0.0.0.0/0: [alien] created Jan 26 01:30:38 spectrum bird: kernel1: 0.0.0.0/0: [alien] created Jan 26 01:30:38 spectrum bird: kernel1: Pruning table master Jan 26 01:30:38 spectrum bird: kernel1: Pruning table master Jan 26 01:30:38 spectrum bird: kernel1: Pruning inherited routes Jan 26 01:30:38 spectrum bird: kernel1: Pruning inherited routes Jan 26 01:30:38 spectrum bird: kernel1 > added [best] 0.0.0.0/0 via 12.17.138.3 on eth0 Jan 26 01:30:38 spectrum bird: kernel1 > added [best] 0.0.0.0/0 via 12.17.138.3 on eth0 Jan 26 01:30:38 spectrum bird: kernel1 < added 0.0.0.0/0 via 12.17.138.3 on eth0 Jan 26 01:30:38 spectrum bird: kernel1 < added 0.0.0.0/0 via 12.17.138.3 on eth0 Jan 26 01:30:38 spectrum bird: rip1 < filtered out 0.0.0.0/0 via 12.17.138.3 on eth0 Jan 26 01:30:38 spectrum bird: rip1 < filtered out 0.0.0.0/0 via 12.17.138.3 on eth0 Jan 26 01:30:38 spectrum bird: rip1: Listening on eth0, port 520, mode multicast (224.0.0.9) Jan 26 01:30:38 spectrum bird: rip1: Listening on eth0, port 520, mode multicast (224.0.0.9) Jan 26 01:30:48 spectrum bird: device1: Scanning interfaces Jan 26 01:30:48 spectrum bird: device1: Scanning interfaces Jan 26 01:30:58 spectrum bird: device1: Scanning interfaces Jan 26 01:30:58 spectrum bird: kernel1: Scanning routing table Jan 26 01:30:58 spectrum bird: device1: Scanning interfaces Jan 26 01:30:58 spectrum bird: kernel1: Scanning routing table Jan 26 01:30:58 spectrum bird: kernel1: 0.0.0.0/0: [alien] seen Jan 26 01:30:58 spectrum bird: kernel1: 0.0.0.0/0: [alien] seen Jan 26 01:30:58 spectrum bird: kernel1: Pruning table master Jan 26 01:30:58 spectrum bird: kernel1: Pruning table master Jan 26 01:30:58 spectrum bird: kernel1: Pruning inherited routes Jan 26 01:30:58 spectrum bird: kernel1: Pruning inherited routes Jan 26 01:31:08 spectrum bird: device1: Scanning interfaces Jan 26 01:31:08 spectrum bird: device1: Scanning interfaces Jan 26 01:31:18 spectrum bird: device1: Scanning interfaces Jan 26 01:31:18 spectrum bird: kernel1: Scanning routing table Jan 26 01:31:18 spectrum bird: device1: Scanning interfaces Jan 26 01:31:18 spectrum bird: kernel1: Scanning routing table Jan 26 01:31:18 spectrum bird: kernel1: 0.0.0.0/0: [alien] seen Jan 26 01:31:18 spectrum bird: kernel1: 0.0.0.0/0: [alien] seen Jan 26 01:31:18 spectrum bird: kernel1: Pruning table master Jan 26 01:31:18 spectrum bird: kernel1: Pruning table master Jan 26 01:31:18 spectrum bird: kernel1: Pruning inherited routes Jan 26 01:31:18 spectrum bird: kernel1: Pruning inherited routes Jan 26 01:31:28 spectrum bird: device1: Scanning interfaces Jan 26 01:31:28 spectrum bird: device1: Scanning interfaces Jan 26 01:31:29 spectrum bird: Shutting down Jan 26 01:31:29 spectrum bird: Shutting down Jan 26 01:31:29 spectrum bird: direct1: Unconfigured Jan 26 01:31:29 spectrum bird: direct1: Unconfigured Jan 26 01:31:29 spectrum bird: direct1: Shutting down Jan 26 01:31:29 spectrum bird: direct1: Shutting down Jan 26 01:31:29 spectrum bird: direct1: State changed to flush Jan 26 01:31:29 spectrum bird: direct1: State changed to flush an 26 01:31:29 spectrum bird: kernel1: Unconfigured Jan 26 01:31:29 spectrum bird: kernel1: Unconfigured Jan 26 01:31:29 spectrum bird: kernel1: Shutting down Jan 26 01:31:29 spectrum bird: kernel1: Shutting down Jan 26 01:31:29 spectrum bird: kernel1: State changed to flush Jan 26 01:31:29 spectrum bird: kernel1: State changed to flush Jan 26 01:31:29 spectrum bird: device1: Unconfigured Jan 26 01:31:29 spectrum bird: device1: Unconfigured Jan 26 01:31:29 spectrum bird: device1: Shutting down Jan 26 01:31:29 spectrum bird: device1: Shutting down Jan 26 01:31:29 spectrum bird: rip1 < interface lo goes down Jan 26 01:31:29 spectrum bird: rip1 < interface lo goes down Jan 26 01:31:29 spectrum bird: rip1 < interface eth0 goes down Jan 26 01:31:29 spectrum bird: rip1 < interface eth0 goes down Jan 26 01:31:29 spectrum bird: rip1 < interface eth1 goes down Jan 26 01:31:29 spectrum bird: rip1 < interface eth1 goes down Jan 26 01:31:29 spectrum bird: device1: State changed to flush Jan 26 01:31:29 spectrum bird: device1: State changed to flush Jan 26 01:31:29 spectrum bird: rip1: Unconfigured Jan 26 01:31:29 spectrum bird: rip1: Unconfigured Jan 26 01:31:29 spectrum bird: rip1: Shutting down Jan 26 01:31:29 spectrum bird: rip1: Shutting down Jan 26 01:31:29 spectrum bird: rip1: State changed to flush Jan 26 01:31:29 spectrum bird: rip1: State changed to flush Jan 26 01:31:29 spectrum bird: ospf1: Unconfigured Jan 26 01:31:29 spectrum bird: ospf1: Unconfigured Jan 26 01:31:29 spectrum bird: static1: Unconfigured Jan 26 01:31:29 spectrum bird: static1: Unconfigured Jan 26 01:31:29 spectrum bird: kernel1 > removed [sole] 0.0.0.0/0 via 12.17.138. 3 on eth0 Jan 26 01:31:29 spectrum bird: kernel1 > removed [sole] 0.0.0.0/0 via 12.17.138. 3 on eth0 Jan 26 01:31:29 spectrum bird: direct1 > removed [sole] 10.0.0.0/8 dev eth1 Jan 26 01:31:29 spectrum bird: direct1 > removed [sole] 10.0.0.0/8 dev eth1 Jan 26 01:31:29 spectrum bird: direct1 > removed [sole] 12.17.138.0/26 dev eth0 Jan 26 01:31:29 spectrum bird: direct1 > removed [sole] 12.17.138.0/26 dev eth0 Jan 26 01:31:29 spectrum bird: direct1: State changed to down Jan 26 01:31:29 spectrum bird: direct1: State changed to down Jan 26 01:31:29 spectrum bird: kernel1: State changed to down Jan 26 01:31:29 spectrum bird: kernel1: State changed to down Jan 26 01:31:29 spectrum bird: device1: State changed to down Jan 26 01:31:29 spectrum bird: device1: State changed to down Jan 26 01:31:29 spectrum bird: rip1: State changed to down Jan 26 01:31:29 spectrum bird: rip1: State changed to down Jan 26 01:31:29 spectrum bird: System shutdown completed Jan 26 01:31:29 spectrum bird: System shutdown completed Martin Mares wrote:
Hi!
I'm using Bird v1.0.4 and trying to setup RIP to accept RIP routes but not broadcast any routes on a specific interface, in the following example eth0. I realize I could configure an export filter to block broadcasting all RIP routes but I'd like the capability to block broadcasting based on specific interfaces.
The problem is that in "quiet" mode bird doesn't seem to accept routes, when I check the list of routes with route -n. Other modes like broadcast and nolisten work fine. Following is a copy of my bird.conf file.
I'm not the author of the RIP code, but could you try to turn on tracing of the protocol and send me the result, please?
Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth Purchasing Windows is an Unrecoverable Application Error.
participants (2)
-
Martin Mares -
Raymond E. Marcil