Date: Sat, 03 Jul 1999 02:44:13 +0200 From: Roelof Osinga <roelof@eboa.com> To: Doug White <dwhite@resnet.uoregon.edu> Cc: questions@FreeBSD.ORG Subject: Re: IP alias routing problem Message-ID: <377D5CDD.CB748DEE@eboa.com> References: <Pine.BSF.4.10.9907021302160.98238-100000@resnet.uoregon.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <g>. 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?377D5CDD.CB748DEE>