Date: Mon, 24 May 1999 22:27:26 GMT From: "Valery V. Chikalov" <valera@aval.krcrme.dp.ua> To: freebsd-stable@FreeBSD.org Subject: route get VS netstat -r Message-ID: <199905242227.WAA07992@aval.krcrme.dp.ua>
next in thread | raw e-mail | index | archive | help
Hi, all! I have a big distributed network with a lot of subnetworks and all are working predictably. But sometimes i'm fall down in very strange and fully repeatable situation. HOBBIT(10.20.64.234) <--dialup PPP--> nautilus(10.20.64.1) <--Ethernet--| | Internet <-- slip --- --> GOLIATH(10.20.64.6) < -----------| dwarf(10.20.64.100) < -----------| PHASE 1:all is okey ********************************************************** goliath# netstat -rn ( output is in full accordance with gated.conf) ---- skip a lot of ------- 10.20.64.224/27 10.20.64.1 de0 --- All ok, I can see & ping hobbit ---- skip a lot of ------- goliath# netstat -rn | grep 10.20.64.100 10.20.67.0/24 10.20.64.100 ---- All ok, another subnet goliath# netstat -rn > routes.ok ---- it will be needed later and dwarf is in off state hobbit# uname -r 4.0-CURRENT goliath# uname -r 3.1-CURRENT goliath# gated version --> 3-5-9 hobbit# ftp goliath ( geting something) PHASE 2:i try to simulate connection breakdown *********************************************************** hobbit# killall -1 pppd PHASE 3:after the connecting restored *********************************************************** goliath# ping hobbit ping 10.20.64.234 no route to host ^C goliath# netstat -rn ( again, output is in a full accordance with gated.conf) ---- skip a lot of ------- 10.20.64.224/27 10.20.64.1 de0 --- All ok, as before ---- skip a lot of ------- goliath# netstat -rn | grep 10.20.64.100 10.20.67.0/24 10.20.64.100 NEVETHELESS !!!!! !!!! goliath# route get 10.20.64.234 ---> giving me 10.20.64.100 as gateway ( DWARF !! which is down !? } goliath# grep 10.20.64.100 gated.conf 10.20.67.0/24 10.20.64.100 nautilus# grep 10.20.64.100 gated.conf 10.20.67.0/24 10.20.64.100 goliath# netstat -rn > routes.bad goliath# diff routes.ok routes.bad ---> no differences And the remedy is very simple: goliath# killall gated goliath# /usr/local/sbin/gated And of course goliath# netstat -rn ---> reproducing the EXACTLY same routes set as in the BOTH previous cases. killall -SIGINT or -SIGUSR2 gated --- have not help I'm running ipfw - firewall in "simple" configuration on goliath. Of course, my setup maybe complicated and possibly there are a lot of places to looking for misconfiguration. But, what my question is --- why i see BOGUS routes table when using "netstat -r" -- which is ,as i think, fully independent tool from MAYBE buggy gated? Why are "route get HOST" and "netstat -r" in contradiction with one another? And what is the more exact (preferable) way for routes table examination? Thanks. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905242227.WAA07992>