From owner-freebsd-questions Tue Jul 3 4:32:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nctams01.nctldno.navy.mil (nctams01.nctldno.navy.mil [164.229.13.13]) by hub.freebsd.org (Postfix) with ESMTP id 5E86B37B405 for ; Tue, 3 Jul 2001 04:32:01 -0700 (PDT) (envelope-from LavenderB@nctldno.navy.mil) Received: by nctams01.nctldno.navy.mil with Internet Mail Service (5.5.2232.9) id ; Tue, 3 Jul 2001 06:30:00 -0500 Message-ID: <78202F9B9BB8D311846100805F577DFF274096@nctams01.nctldno.navy.mil> From: "Lavender, Ben" To: "'cjclark@alum.mit.edu'" Cc: "'freebsd-questions@freebsd.org'" Subject: RE: interface aliases and routing Date: Tue, 3 Jul 2001 06:29:59 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2232.9) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C103B3.7E759930" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C103B3.7E759930 Content-Type: text/plain; charset="windows-1252" > > On Mon, Jul 02, 2001 at 10:28:44AM -0500, Lavender, Ben wrote: > > Like this? > > xl0: flags=8843 mtu 1500 > > inet6 fe80::210:5aff:fe28:ca1f%xl0 prefixlen 64 scopeid 0x1 > > inet 164.229.1.72 netmask 0xffffffc0 broadcast 164.229.1.127 > > inet 164.229.1.74 netmask 0xffffffff broadcast 164.229.1.74 > > ether 00:10:5a:28:ca:1f > > media: autoselect (100baseTX ) status: active > > supported media: autoselect 100baseTX 100baseTX > > 10baseT/UTP 10baseT/UTP 100baseTX > > > > This didn't work. > > What does not work? In a setup like this, an outgoing connection will > use the 164.229.1.72 address unless the application explicitly > requests 164.229.1.74 as the source address. It should be able to use > that address if it wants. Incoming connections to the machine should > reply using whatever address the incoming packets came in on. > > What is not working? 164.229.1.74 does not have connectivity to machines outside the subnet. Using dig v9 to bind to the source address of 1.74 does not get me a response from a name server on another subnet. Pinging 164.229.1.74 from another subnet does not work, nor does any tcp service. However, connectivity to other machines on the same subnet (164.229.1.64-128) works just fine. Applications using a source address of 1.72 (most of them) have no problems. I can open connections, ping, do whatever I want to 1.72 without any problem I can see. Ive also got a sizeable portion of static routes to other gateways for other networks (speaking of which, I cant find how one might add a static route to rc.conf in /etc/defaults/rc.conf, I'm currently using a shell script. Any ideas on that one?). relevent rc.conf: network_interfaces="xl0 lo0" ifconfig_xl0="inet 164.229.1.72 up netmask 255.255.255.192" defaultrouter="164.229.1.66" ifconfig_xl0_alias0="inet 164.229.1.74 up netmask 255.255.255.192" > > > > -----Original Message----- > > > From: Terry Zink [mailto:tzink@metrocon.com] > > > Sent: Monday, July 02, 2001 10:12 AM > > > To: Lavender, Ben > > > Cc: freebsd-questions@freebsd.org > > > Subject: Re: interface aliases and routing > > > > > > > > > Hrm. I believe if I;m not mistaken, that aliases on the nic > > > need to have a > > > netmask of 255.255.255.255 .. At least, that is what I need > > > to do. Might > > > wish to try that. > > > > > > > > > On Monday 02 July 2001 10:42, you wrote: > > > > I have a FreeBSD 4.2 box currently running. Im trying to > > > get interface > > > > aliases to work properly without much success. > > > > > > > > While I seemingly get the interface configured properly, I can't > > > > communicate with different subnets. The interface and the > > > alias can both > > > > communicate with other machines on the same subnet, but > > > only the 'primary' > > > > address (in this case, 1.72) will talk with other subnets. > > > > > > > > any ideas/information required? > > > > > > > > ifconfig: > > > > xl0: flags=8843 mtu 1500 > > > > inet6 fe80::210:5aff:fe28:ca1f%xl0 prefixlen 64 > scopeid 0x1 > > > > inet 164.229.1.72 netmask 0xffffffc0 broadcast > 164.229.1.127 > > > > inet 164.229.1.74 netmask 0xffffffc0 broadcast > 164.229.1.127 > > > > ether 00:10:5a:28:ca:1f > > > > media: autoselect (100baseTX ) > status: active > > > > supported media: autoselect 100baseTX > 100baseTX > > > > 10baseT/UTP 10baseT/UTP 100baseTX > -- > Crist J. Clark cjclark@alum.mit.edu > ------_=_NextPart_001_01C103B3.7E759930 Content-Type: text/html; charset="windows-1252" Content-Transfer-Encoding: quoted-printable RE: interface aliases and routing

>
> On Mon, Jul 02, 2001 at 10:28:44AM -0500, = Lavender, Ben wrote:
> > Like this?
> > xl0: = flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu = 1500
> >     inet6 = fe80::210:5aff:fe28:ca1f%xl0 prefixlen 64 scopeid 0x1
> >     inet 164.229.1.72 = netmask 0xffffffc0 broadcast 164.229.1.127
> >     inet 164.229.1.74 = netmask 0xffffffff broadcast 164.229.1.74
> >     ether 00:10:5a:28:ca:1f =
> >     media: autoselect = (100baseTX <full-duplex>) status: active
> >     supported media: = autoselect 100baseTX <full-duplex> 100baseTX
> > 10baseT/UTP <full-duplex> = 10baseT/UTP 100baseTX <hw-loopback>
> >
> > This didn't work.
>
> What does not work? In a setup like this, an = outgoing connection will
> use the 164.229.1.72 address unless the = application explicitly
> requests 164.229.1.74 as the source address. It = should be able to use
> that address if it wants. Incoming connections = to the machine should
> reply using whatever address the incoming = packets came in on.
>
> What is not working?

164.229.1.74 does not have connectivity to machines = outside the subnet.  Using dig v9 to bind to the source address of = 1.74 does not get me a response from a name server on another = subnet.  Pinging 164.229.1.74 from another subnet does not work, = nor does any tcp service.  However, connectivity to other machines = on the same subnet (164.229.1.64-128) works just fine.

Applications using a source address of 1.72 (most of = them) have no problems.  I can open connections, ping, do whatever = I want to 1.72 without any problem I can see. 

Ive also got a sizeable portion of static routes to = other gateways for other networks (speaking of which, I cant find how = one might add a static route to rc.conf in /etc/defaults/rc.conf, I'm = currently using a shell script.  Any ideas on that one?).  =

relevent rc.conf:
network_interfaces=3D"xl0 lo0"
ifconfig_xl0=3D"inet 164.229.1.72 up netmask = 255.255.255.192"
defaultrouter=3D"164.229.1.66"
ifconfig_xl0_alias0=3D"inet 164.229.1.74 up = netmask 255.255.255.192"


>
> > > -----Original Message-----
> > > From: Terry Zink [mailto:tzink@metrocon.com]=
> > > Sent: Monday, July 02, 2001 10:12 = AM
> > > To: Lavender, Ben
> > > Cc: = freebsd-questions@freebsd.org
> > > Subject: Re: interface aliases and = routing
> > >
> > >
> > > Hrm. I believe if I;m not mistaken, = that aliases on the nic
> > > need to have a
> > > netmask of 255.255.255.255 .. At = least, that is what I need
> > > to do.  Might
> > > wish to try that. 
> > >
> > >
> > > On Monday 02 July 2001 10:42, you = wrote:
> > > > I have a FreeBSD 4.2 box = currently running.  Im trying to
> > > get interface
> > > > aliases to work properly without = much success.
> > > >
> > > > While I seemingly get the = interface configured properly, I can't
> > > > communicate with different = subnets.  The interface and the
> > > alias can both
> > > > communicate with other machines = on the same subnet, but
> > > only the 'primary'
> > > > address (in this case, 1.72) = will talk with other subnets.
> > > >
> > > > any ideas/information = required?
> > > >
> > > > ifconfig:
> > > > xl0: = flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu = 1500
> > > > =         inet6 = fe80::210:5aff:fe28:ca1f%xl0 prefixlen 64
> scopeid 0x1
> > > > =         inet 164.229.1.72 netmask = 0xffffffc0 broadcast
> 164.229.1.127
> > > > =         inet 164.229.1.74 netmask = 0xffffffc0 broadcast
> 164.229.1.127
> > > > =         ether = 00:10:5a:28:ca:1f
> > > > =         media: autoselect (100baseTX = <full-duplex>)
> status: active
> > > > =         supported media: autoselect = 100baseTX
> <full-duplex> 100baseTX
> > > > 10baseT/UTP <full-duplex> = 10baseT/UTP 100baseTX <hw-loopback>
> --
> Crist J. = Clark           &= nbsp;           &= nbsp;   cjclark@alum.mit.edu
>

------_=_NextPart_001_01C103B3.7E759930-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message