From owner-freebsd-questions Mon Nov 27 13:32:48 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA00354 for questions-outgoing; Mon, 27 Nov 1995 13:32:48 -0800 Received: from tesla.cview.com (root@tesla.cview.com [204.95.57.17]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id NAA00349 for ; Mon, 27 Nov 1995 13:32:42 -0800 Received: by tesla.cview.com (Smail3.1.29.0 #1) id m0tKBAE-00063BC; Mon, 27 Nov 95 15:32 CST Message-Id: From: malenovi@cview.com (Nik Malenovic) Subject: Q: how to do routing with ethers/ppp interfaces with gated To: freebsd-questions@freebsd.org Date: Mon, 27 Nov 1995 15:32:38 -0600 (CST) X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 2945 Sender: owner-questions@freebsd.org Precedence: bulk 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 mtu 1500 inet 204.95.57.17 netmask 0xffffff00 broadcast 204.95.57.255