Date: Fri, 2 Jul 1999 19:13:23 -0700 (PDT) From: Dan Busarow <dan@dpcsys.com> To: Roelof Osinga <roelof@eboa.com> Cc: Doug White <dwhite@resnet.uoregon.edu>, questions@FreeBSD.ORG Subject: Re: IP alias routing problem Message-ID: <Pine.BSF.3.96.990702185458.18855E-100000@java.dpcsys.com> In-Reply-To: <377D5CDD.CB748DEE@eboa.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 3 Jul 1999, Roelof Osinga wrote: > 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 haven't been following this whole thread, maybe you could restate what it is you're trying to accomplish. Your ifconfig line should be setting up 194.134.130.170 with a netmask of 255.255.252.0. Naturally the route it establishes is for a /22 since that's what you're telling it to do. If you want the /16 use a netmask of 255.255.0.0 I'm not sure what I would expect ifconfig to do when you specify a destination address on a non PTP line but it obviously confuses the heck out of it. See what it did to your broadcast address inet 194.134.130.170 netmask 0xfffffc00 broadcast 194.134.128.1 SB 194.134.131.255 Try ifconfig_ep1_alias0="inet 194.134.130.170 netmask 255.255.0.0" > 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 Dan -- Dan Busarow 949 443 4172 Dana Point Communications, Inc. dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82 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?Pine.BSF.3.96.990702185458.18855E-100000>