Date: Fri, 31 Mar 1995 21:05:59 +0200 (MET DST) From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-hackers@FreeBSD.org (FreeBSD hackers) Subject: Any gate daemon expert around? Message-ID: <199503311906.VAA08389@uriah.heep.sax.de>
next in thread | raw e-mail | index | archive | help
Sorry for abusing the list for this, but i suspect there might be someone around who could help me. Please get back on me in private mail, to avoid further bloat of the list. I'm trying to get a 1.1.5.1 system to announce incoming SLIP connections into the local ethernet. The caller on the SLIP interface can change (there are currently two possible machines calling it), and i would like to get gated announce the host route into the local net as soon as the connection comes in, and have it deleted after it has been dropped finally. Reading the man page for gated-config(5) doesn't give me a warm feeling however. :-/ Here's my gated.conf so far: /* gated3.0 configuration file */ tracefile "/var/log/gated.log" replace size 100k files 2; traceoptions general route kernel rip; options noresolv; interfaces { interface sl passive; }; rip on { interface sl noripout; } ; hello off ; ospf off ; export proto rip { /* export the SLIP routes into the ethernet */ proto static { /* radeberg.tcd-dresden.de */ host 192.109.108.201 metric 1; } ; proto static { /* uriah.heep.sax.de */ host 193.175.26.65 metric 1; } ; } ; ...and that's the log extract for a SLIP connection up/down (from host 193.175.26.65): ... Mar 31 18:04:00 ifl_alloc: interface sl0 index 3 refcount 2 Mar 31 18:04:00 EVENT <UpDown> sl0 index 3 <Up PointToPoint> Mar 31 18:04:00 Mar 31 18:04:00 EVENT 193.175.26.65 Mar 31 18:04:00 EVENT index: 3 name: sl0 state: <Up PointToPoint> Mar 31 18:04:00 EVENT change: <Add> metric: 0 route: not installed Mar 31 18:04:00 EVENT preference: 0 down: 120 refcount: 1 mtu: 192 Mar 31 18:04:00 EVENT lcladdr: 192.109.108.139 Mar 31 18:04:00 EVENT net: 193.175.26 netmask: 255.255.255 Mar 31 18:04:00 EVENT subnetmask: 255.255.255.255 Mar 31 18:04:00 Mar 31 18:04:00 if_ifachange: 193.175.26.65 Mar 31 18:04:00 if_ifachange: index: 3 name: sl0 state: <Up PointToPoint NoAge> Mar 31 18:04:00 if_ifachange: change: <Add> metric: 0 route: not installed Mar 31 18:04:00 if_ifachange: preference: 0 down: 120 refcount: 1 mtu: 192 Mar 31 18:04:00 if_ifachange: lcladdr: 192.109.108.139 Mar 31 18:04:00 if_ifachange: net: 193.175.26 netmask: 255.255.255 Mar 31 18:04:00 if_ifachange: subnetmask: 255.255.255.255 Mar 31 18:04:00 Mar 31 18:04:00 if_rtadd: ADD route for interface sl0 193.175.26.65/255.255.255.255 ADD 193.175.26.65 255.255.255.255 gw 192.109.108.139 Direct pref 0 metric 0 sl0 <NoAge Refresh Active Retain> Mar 31 18:04:00 rt_close: 1 route proto IF Mar 31 18:04:00 Mar 31 18:04:00 rip_target_list: supplying updates to 1 interface Mar 31 18:04:00 Mar 31 18:04:00 Mar 31 18:04:00 rt_flash_update: flash updating kernel with 1 entries Mar 31 18:04:00 KERNEL ADD 193.175.26.65 mask 255.255.255.255 gateway 192.109.108.139 Direct <NoAge Refresh Active Retain> Mar 31 18:04:00 krt_send: write: File exists Mar 31 18:04:00 KRT *NOT SENT* type ADD(1)flags UP HOST(5) error 17: File exists Mar 31 18:04:00 KRT *NOT SENT* dest 193.175.26.65 gateway 192.109.108.139 Mar 31 18:04:00 Mar 31 18:04:00 KRT SENT type CHANGE(3)flags UP HOST(5) error 17: File exists Mar 31 18:04:00 KRT SENT dest 193.175.26.65 gateway 192.109.108.139 Mar 31 18:04:00 Mar 31 18:04:00 Mar 31 18:04:00 rt_flash_update: flash update started with 1 entries Mar 31 18:04:00 rt_flash_update: flash update ended with 1 entries ... Mar 31 18:18:06 Mar 31 18:18:30 EVENT <UpDown> sl0 index 3 <PointToPoint> Mar 31 18:18:30 Mar 31 18:18:30 EVENT 193.175.26.65 Mar 31 18:18:30 EVENT index: 3 name: sl0 state: <PointToPoint NoAge> Mar 31 18:18:30 EVENT change: <UpDown> metric: 0 route: installed Mar 31 18:18:30 EVENT preference: 0 down: 120 refcount: 2 mtu: 192 Mar 31 18:18:30 EVENT lcladdr: 192.109.108.139 Mar 31 18:18:30 EVENT net: 193.175.26 netmask: 255.255.255 Mar 31 18:18:30 EVENT subnetmask: 255.255.255.255 Mar 31 18:18:30 EVENT proto RIP state: <NoOut> Mar 31 18:18:30 Mar 31 18:18:30 if_rtdelete: DELETE route for interface sl0 193.175.26.65/255.255.255.255 CHANGE 193.175.26.65 255.255.255.255 gw 192.109.108.139 Direct pref 0 metric 0 sl0 <NoAge HoldDown Delete Retain> Mar 31 18:18:30 rt_close: 1 route proto IF Mar 31 18:18:30 Mar 31 18:18:30 rip_target_list: just listening Mar 31 18:18:30 Mar 31 18:18:30 Mar 31 18:18:30 rt_flash_update: flash updating kernel with 1 entries Mar 31 18:18:30 KERNEL DELETE 193.175.26.65 mask 255.255.255.255 gateway 192.109.108.139 Direct <NoAge HoldDown Delete Retain> Mar 31 18:18:30 KRT SENT type DELETE(2)flags HOST(4) error 0 Mar 31 18:18:30 KRT SENT dest 193.175.26.65 Mar 31 18:18:30 RELEASE 193.175.26.65 255.255.255.255 gw 192.109.108.139 Direct pref 0 metric 0 sl0 <NoAge Delete Release Retain> Mar 31 18:18:30 Mar 31 18:18:30 rt_flash_update: flash update started with 1 entries Mar 31 18:18:30 rt_flash_update: flash update ended with 1 entries Of course, i know that the route to the interface does already exist at the time where gated can react on the interface up/down event, but why does it not announce it into the net? Any hints? Thank'ya. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503311906.VAA08389>