Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jul 2001 06:29:59 -0500 
From:      "Lavender, Ben" <LavenderB@nctldno.navy.mil>
To:        "'cjclark@alum.mit.edu'" <cjclark@alum.mit.edu>
Cc:        "'freebsd-questions@freebsd.org'" <freebsd-questions@freebsd.org>
Subject:   RE: interface aliases and routing
Message-ID:  <78202F9B9BB8D311846100805F577DFF274096@nctams01.nctldno.navy.mil>

next in thread | raw e-mail | index | archive | help
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<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="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<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                           cjclark@alum.mit.edu
> 

------_=_NextPart_001_01C103B3.7E759930
Content-Type: text/html;
	charset="windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dwindows-1252">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2232.0">
<TITLE>RE: interface aliases and routing</TITLE>
</HEAD>
<BODY>
<BR>

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

<P><FONT SIZE=3D2>164.229.1.74 does not have connectivity to machines =
outside the subnet.&nbsp; 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.&nbsp; Pinging 164.229.1.74 from another subnet does not work, =
nor does any tcp service.&nbsp; However, connectivity to other machines =
on the same subnet (164.229.1.64-128) works just fine.</FONT></P>

<P><FONT SIZE=3D2>Applications using a source address of 1.72 (most of =
them) have no problems.&nbsp; I can open connections, ping, do whatever =
I want to 1.72 without any problem I can see.&nbsp; </FONT></P>

<P><FONT SIZE=3D2>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.&nbsp; Any ideas on that one?).&nbsp; =
</FONT></P>

<P><FONT SIZE=3D2>relevent rc.conf:</FONT>
<BR><FONT SIZE=3D2>network_interfaces=3D&quot;xl0 lo0&quot;</FONT>
<BR><FONT SIZE=3D2>ifconfig_xl0=3D&quot;inet 164.229.1.72 up netmask =
255.255.255.192&quot;</FONT>
<BR><FONT SIZE=3D2>defaultrouter=3D&quot;164.229.1.66&quot;</FONT>
<BR><FONT SIZE=3D2>ifconfig_xl0_alias0=3D&quot;inet 164.229.1.74 up =
netmask 255.255.255.192&quot;</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; From: Terry Zink [<A =
HREF=3D"mailto:tzink@metrocon.com">mailto:tzink@metrocon.com</A>]</FONT>=

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

</BODY>
</HTML>
------_=_NextPart_001_01C103B3.7E759930--

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?78202F9B9BB8D311846100805F577DFF274096>