Date: Fri, 26 Jan 2001 10:12:27 +0100 From: Per Tore Larsen <per.tore.larsen@fernonorden.com> To: 'Doug Young' <dougy@bryden.apana.org.au>, freebsd-questions@FreeBSD.ORG Subject: RE: Two IP addresses for one interface Message-ID: <25879E6A7E74D411B9370050043B7F3E09F913@RUBICON>
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_01C08778.1AA28E20 Content-Type: text/plain; charset="iso-8859-1" the second ip adress should be assign like below if the ip adress is on the same subnet you must use 255.255.255.255 as the netmask. if not use the appropriate netmask for the new ip address you are adding. ifconfig_xl0_alias0="inet xxx.xxx.xxx.xxx netmask 255.255.255.255" ^^ ipadress PeTe -----Original Message----- From: Doug Young [mailto:dougy@bryden.apana.org.au] Sent: Friday, January 26, 2001 7:24 AM To: freebsd-questions@FreeBSD.ORG Subject: Two IP addresses for one interface Is there any reason why one interface should NOT have two IP addresses ?? My reason is to do with testing NAT .... I've got a problem thats been driving me to distraction for ages & because it involves one of two tun's it costs a mint to keep dialling the incoming line to test changes. If I can try things on a regular ethernet interface I might have a chance of seeing whats not right without enriching Tel$tra \any further. I guess the second (private) address is assigned similarly to the first (public) one in /etc/rc.conf ?? ------_=_NextPart_001_01C08778.1AA28E20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><SPAN class=3D218471309-26012001><FONT face=3DArial = color=3D#0000ff size=3D2>the=20 second ip adress should be assign like below</FONT></SPAN></DIV> <DIV><SPAN class=3D218471309-26012001><FONT face=3DArial = color=3D#0000ff size=3D2>if the=20 ip adress is on the same subnet you must use = 255.255.255.255</FONT></SPAN></DIV> <DIV><SPAN class=3D218471309-26012001><FONT face=3DArial = color=3D#0000ff size=3D2>as the=20 netmask. if not use the appropriate netmask for the new = ip</FONT></SPAN></DIV> <DIV><SPAN class=3D218471309-26012001><FONT face=3DArial = color=3D#0000ff=20 size=3D2>address you are adding.</FONT></SPAN></DIV> <DIV><SPAN class=3D218471309-26012001><FONT face=3DArial = color=3D#0000ff=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D218471309-26012001><FONT face=3DArial = color=3D#0000ff=20 size=3D2>ifconfig_xl0_alias0=3D"inet xxx.xxx.xxx.xxx netmask=20 255.255.255.255"</FONT></SPAN></DIV> <DIV><SPAN=20 class=3D218471309-26012001> &nb= sp; &nb= sp; &nb= sp; =20 <FONT face=3DArial color=3D#0000ff size=3D2>^^ = ipadress</FONT></SPAN></DIV> <DIV><SPAN class=3D218471309-26012001><FONT face=3DArial = color=3D#0000ff=20 size=3D2>PeTe</FONT></SPAN></DIV> <BLOCKQUOTE dir=3Dltr=20 style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px = solid; MARGIN-RIGHT: 0px"> <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT = face=3DTahoma=20 size=3D2>-----Original Message-----<BR><B>From:</B> Doug Young=20 [mailto:dougy@bryden.apana.org.au]<BR><B>Sent:</B> Friday, January = 26, 2001=20 7:24 AM<BR><B>To:</B> = freebsd-questions@FreeBSD.ORG<BR><B>Subject:</B> Two IP=20 addresses for one interface<BR><BR></DIV></FONT> <DIV><FONT face=3DArial size=3D2>Is there any reason why one = interface should NOT=20 have two IP addresses ??</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>My reason is to do with testing NAT = .... I've got=20 a problem thats been driving me</FONT></DIV> <DIV><FONT face=3DArial size=3D2>to distraction for ages & = because it involves=20 one of two tun's it costs a mint to keep </FONT></DIV> <DIV><FONT face=3DArial size=3D2>dialling the incoming line to test = changes. If I=20 can try things on a regular ethernet </FONT></DIV> <DIV><FONT face=3DArial size=3D2>interface I might have a chance of = seeing whats=20 not right without enriching Tel$tra \any further.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I guess the second (private) address = is assigned=20 similarly to the first (public) one</FONT></DIV> <DIV><FONT face=3DArial size=3D2>in /etc/rc.conf=20 ?? </FONT></DIV></BLOCKQUOTE></BODY></HTML> ------_=_NextPart_001_01C08778.1AA28E20-- 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?25879E6A7E74D411B9370050043B7F3E09F913>