From owner-freebsd-questions Fri Jul 2 17:41:27 1999 Delivered-To: freebsd-questions@freebsd.org Received: from nl.eboa.com (unknown [212.187.0.39]) by hub.freebsd.org (Postfix) with ESMTP id 9B5B514CF9 for ; Fri, 2 Jul 1999 17:41:23 -0700 (PDT) (envelope-from roelof@eboa.com) Received: from eboa.com (roelof [10.0.0.2]) by nl.eboa.com (8.9.2/8.9.2) with ESMTP id CAA11917; Sat, 3 Jul 1999 02:41:12 +0200 (CEST) (envelope-from roelof@eboa.com) Message-ID: <377D5CDD.CB748DEE@eboa.com> Date: Sat, 03 Jul 1999 02:44:13 +0200 From: Roelof Osinga Organization: eboa - engineering buro Office Automation X-Mailer: Mozilla 4.6 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: Doug White Cc: questions@FreeBSD.ORG Subject: Re: IP alias routing problem References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doug White wrote: > > > ifconfig_ep1="inet 212.187.0.39 netmask 255.255.248.0" > > ifconfig_ep1_alias0="inet 194.134.130.170 194.134.128.1 netmask 255.255.252.0" > > ep1 is not a point to point link, so this should fail. Rewmove the second > IP address. (Just what OS is that semantic from?) That's what I started out with. Didn't work. This does. Got it from the *FreeBSD* ifconfig man page . Though it doesn't quite work as expected in that sets the broadcast address to it. Also, the 128.1 is a direct link. > > route add -net 194.134 194.134.128.1 > > This isn't necessary, as the ifconfig command will add it automatically. > Make the above fix and you should be happy. No it doesn't. It adds the 194.134.128/22 route, which unfortunately routes the reminder of the 194.134/16 net through the default route thereby preventing me from accessing certain IP restricted services. I think I need to up the metric on the default route so it'll prefer the special route given equal opportunities to satisfy. Roelof PS in case this'll help: nl:/stand# ifconfig -a ep1: flags=8843 mtu 1500 inet 212.187.0.39 netmask 0xfffff800 broadcast 212.187.7.255 inet 194.134.130.170 netmask 0xfffffc00 broadcast 194.134.128.1 ether 00:60:97:e4:98:db nl:/stand# netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 212.187.0.1 UGSc 8 157891 ep1 194.134/16 194.134.128.1 UGSc 4 835 ep1 194.134.128/22 link#2 UC 0 0 ep1 194.134.128.1 0:90:6d:e4:30:0 UHLW 5 14656 ep1 1053 212.187/21 link#2 UC 0 0 ep1 I cleaned it up a little. -- Home is where the (@) http://eboa.com/ is. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message