Date: Mon, 27 Nov 1995 15:32:38 -0600 (CST) From: malenovi@cview.com (Nik Malenovic) To: freebsd-questions@freebsd.org Subject: Q: how to do routing with ethers/ppp interfaces with gated Message-ID: <m0tKBAE-00063BC@tesla.cview.com>
next in thread | raw e-mail | index | archive | help
ok guys do I have a problem for you. somebody must have solved this before. please help. I am on the 204.95.57.0 netmask 255.255.255.0 - see ifconfig ed0 below. my ppp server is 204.95.57.17 - output of netstat -r and ifconfig ed0 can be seen below. when client 204.95.57.117 (.117 in this text) dials up and establishes a connection everything is fine - until the connection hangs up. let's say the client didn't close his telnet session to 204.95.57.17. well, ppp0 interface (which .117 used) went down... but check this out... when I do netstat -r -n, I *STILL* see route to .117 via ed0!!!!!!! obviously, my ed0 is 204.95.56.0 netmask 255.255.255.0 - therefore a host 204.95.57.117 will be routed via ed0. what I need is a way to setup gated to KNOW that when the interface doesn't reply from ethernet, that it should remove it's entry from the routing tables. ed0 is obviously a replicating interface (address replication right?) and it probably inserts the route in the kernel tables. the question is - how do I fix this? I want gated to report "destination unreachable" for all hosts on 204.95.57.0 that it can not reach. (and not let the kernel automaticlally replicate the route) please respond directly to malenovi@cview.com thank you Nik netstat -r/ifconfig ed0 output: Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127 127.0.0.1 URc 0 0 lo0 127.0.0.1 127.0.0.1 UH 0 4 lo0 204.95.57 link#1 UC 0 0 204.95.57.17 0:0:b4:68:77:52 UHLW 3 32594 lo0 204.95.57.97 204.95.57.97 UH 0 0 lo0 204.95.57.98 204.95.57.98 UH 0 0 lo0 204.95.57.99 204.95.57.99 UH 0 0 lo0 204.95.57.100 204.95.57.100 UH 0 0 lo0 204.95.57.101 204.95.57.101 UH 0 0 lo0 204.95.57.102 204.95.57.102 UH 0 0 lo0 204.95.57.103 204.95.57.103 UH 0 0 lo0 204.95.57.104 204.95.57.104 UH 0 0 lo0 204.95.57.105 204.95.57.105 UH 0 0 lo0 204.95.57.106 204.95.57.106 UH 0 0 lo0 204.95.57.107 204.95.57.107 UH 0 0 lo0 204.95.57.108 204.95.57.108 UH 0 0 lo0 204.95.57.109 204.95.57.109 UH 0 0 lo0 204.95.57.116 link#1 UHLW 2 2 204.95.57.255 link#1 UHLW 1 1803 224 link#1 UCS 0 0 224.0.0.9 127.0.0.1 UH 0 0 lo0 ed0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 204.95.57.17 netmask 0xffffff00 broadcast 204.95.57.255
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0tKBAE-00063BC>