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>> </FONT> <BR><FONT SIZE=3D2>> On Mon, Jul 02, 2001 at 10:28:44AM -0500, = Lavender, Ben wrote:</FONT> <BR><FONT SIZE=3D2>> > Like this?</FONT> <BR><FONT SIZE=3D2>> > xl0: = flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu = 1500</FONT> <BR><FONT SIZE=3D2>> > inet6 = fe80::210:5aff:fe28:ca1f%xl0 prefixlen 64 scopeid 0x1 </FONT> <BR><FONT SIZE=3D2>> > inet 164.229.1.72 = netmask 0xffffffc0 broadcast 164.229.1.127</FONT> <BR><FONT SIZE=3D2>> > inet 164.229.1.74 = netmask 0xffffffff broadcast 164.229.1.74</FONT> <BR><FONT SIZE=3D2>> > ether 00:10:5a:28:ca:1f = </FONT> <BR><FONT SIZE=3D2>> > media: autoselect = (100baseTX <full-duplex>) status: active</FONT> <BR><FONT SIZE=3D2>> > supported media: = autoselect 100baseTX <full-duplex> 100baseTX</FONT> <BR><FONT SIZE=3D2>> > 10baseT/UTP <full-duplex> = 10baseT/UTP 100baseTX <hw-loopback></FONT> <BR><FONT SIZE=3D2>> > </FONT> <BR><FONT SIZE=3D2>> > This didn't work.</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> What does not work? In a setup like this, an = outgoing connection will</FONT> <BR><FONT SIZE=3D2>> use the 164.229.1.72 address unless the = application explicitly</FONT> <BR><FONT SIZE=3D2>> requests 164.229.1.74 as the source address. It = should be able to use</FONT> <BR><FONT SIZE=3D2>> that address if it wants. Incoming connections = to the machine should</FONT> <BR><FONT SIZE=3D2>> reply using whatever address the incoming = packets came in on.</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> What is not working?</FONT> </P> <P><FONT SIZE=3D2>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.</FONT></P> <P><FONT SIZE=3D2>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. </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. Any ideas on that one?). = </FONT></P> <P><FONT SIZE=3D2>relevent rc.conf:</FONT> <BR><FONT SIZE=3D2>network_interfaces=3D"xl0 lo0"</FONT> <BR><FONT SIZE=3D2>ifconfig_xl0=3D"inet 164.229.1.72 up netmask = 255.255.255.192"</FONT> <BR><FONT SIZE=3D2>defaultrouter=3D"164.229.1.66"</FONT> <BR><FONT SIZE=3D2>ifconfig_xl0_alias0=3D"inet 164.229.1.74 up = netmask 255.255.255.192"</FONT> </P> <BR> <P><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> > > -----Original Message-----</FONT> <BR><FONT SIZE=3D2>> > > From: Terry Zink [<A = HREF=3D"mailto:tzink@metrocon.com">mailto:tzink@metrocon.com</A>]</FONT>= <BR><FONT SIZE=3D2>> > > Sent: Monday, July 02, 2001 10:12 = AM</FONT> <BR><FONT SIZE=3D2>> > > To: Lavender, Ben</FONT> <BR><FONT SIZE=3D2>> > > Cc: = freebsd-questions@freebsd.org</FONT> <BR><FONT SIZE=3D2>> > > Subject: Re: interface aliases and = routing</FONT> <BR><FONT SIZE=3D2>> > > </FONT> <BR><FONT SIZE=3D2>> > > </FONT> <BR><FONT SIZE=3D2>> > > Hrm. I believe if I;m not mistaken, = that aliases on the nic </FONT> <BR><FONT SIZE=3D2>> > > need to have a </FONT> <BR><FONT SIZE=3D2>> > > netmask of 255.255.255.255 .. At = least, that is what I need </FONT> <BR><FONT SIZE=3D2>> > > to do. Might </FONT> <BR><FONT SIZE=3D2>> > > wish to try that. </FONT> <BR><FONT SIZE=3D2>> > > </FONT> <BR><FONT SIZE=3D2>> > > </FONT> <BR><FONT SIZE=3D2>> > > On Monday 02 July 2001 10:42, you = wrote:</FONT> <BR><FONT SIZE=3D2>> > > > I have a FreeBSD 4.2 box = currently running. Im trying to </FONT> <BR><FONT SIZE=3D2>> > > get interface</FONT> <BR><FONT SIZE=3D2>> > > > aliases to work properly without = much success.</FONT> <BR><FONT SIZE=3D2>> > > ></FONT> <BR><FONT SIZE=3D2>> > > > While I seemingly get the = interface configured properly, I can't</FONT> <BR><FONT SIZE=3D2>> > > > communicate with different = subnets. The interface and the </FONT> <BR><FONT SIZE=3D2>> > > alias can both</FONT> <BR><FONT SIZE=3D2>> > > > communicate with other machines = on the same subnet, but </FONT> <BR><FONT SIZE=3D2>> > > only the 'primary'</FONT> <BR><FONT SIZE=3D2>> > > > address (in this case, 1.72) = will talk with other subnets.</FONT> <BR><FONT SIZE=3D2>> > > ></FONT> <BR><FONT SIZE=3D2>> > > > any ideas/information = required?</FONT> <BR><FONT SIZE=3D2>> > > ></FONT> <BR><FONT SIZE=3D2>> > > > ifconfig:</FONT> <BR><FONT SIZE=3D2>> > > > xl0: = flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu = 1500</FONT> <BR><FONT SIZE=3D2>> > > > = inet6 = fe80::210:5aff:fe28:ca1f%xl0 prefixlen 64 </FONT> <BR><FONT SIZE=3D2>> scopeid 0x1</FONT> <BR><FONT SIZE=3D2>> > > > = inet 164.229.1.72 netmask = 0xffffffc0 broadcast </FONT> <BR><FONT SIZE=3D2>> 164.229.1.127</FONT> <BR><FONT SIZE=3D2>> > > > = inet 164.229.1.74 netmask = 0xffffffc0 broadcast </FONT> <BR><FONT SIZE=3D2>> 164.229.1.127</FONT> <BR><FONT SIZE=3D2>> > > > = ether = 00:10:5a:28:ca:1f</FONT> <BR><FONT SIZE=3D2>> > > > = media: autoselect (100baseTX = <full-duplex>) </FONT> <BR><FONT SIZE=3D2>> status: active</FONT> <BR><FONT SIZE=3D2>> > > > = supported media: autoselect = 100baseTX </FONT> <BR><FONT SIZE=3D2>> <full-duplex> 100baseTX</FONT> <BR><FONT SIZE=3D2>> > > > 10baseT/UTP <full-duplex> = 10baseT/UTP 100baseTX <hw-loopback></FONT> <BR><FONT SIZE=3D2>> -- </FONT> <BR><FONT SIZE=3D2>> Crist J. = Clark &= nbsp; &= nbsp; cjclark@alum.mit.edu</FONT> <BR><FONT SIZE=3D2>> </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>