From owner-freebsd-questions Fri Jan 26 1:17:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from rubicon.fernonorden.com (unknown [195.139.149.229]) by hub.freebsd.org (Postfix) with ESMTP id B09B137B402 for ; Fri, 26 Jan 2001 01:17:34 -0800 (PST) Received: by RUBICON with Internet Mail Service (5.5.2653.19) id ; Fri, 26 Jan 2001 10:12:28 +0100 Message-ID: <25879E6A7E74D411B9370050043B7F3E09F913@RUBICON> From: Per Tore Larsen To: 'Doug Young' , freebsd-questions@FreeBSD.ORG Subject: RE: Two IP addresses for one interface Date: Fri, 26 Jan 2001 10:12:27 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C08778.1AA28E20" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk 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_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
the=20 second ip adress should be assign like below
if the=20 ip adress is on the same subnet you must use = 255.255.255.255
as the=20 netmask. if not use the appropriate netmask for the new = ip
address you are adding.
 
ifconfig_xl0_alias0=3D"inet xxx.xxx.xxx.xxx netmask=20 255.255.255.255"
       &nb= sp;           &nb= sp;           &nb= sp;       =20 ^^ = ipadress
PeTe
-----Original Message-----
From: Doug Young=20 [mailto:dougy@bryden.apana.org.au]
Sent: Friday, January = 26, 2001=20 7:24 AM
To: = freebsd-questions@FreeBSD.ORG
Subject: Two IP=20 addresses for one interface

Is there any reason why one = interface should NOT=20 have two IP addresses ??
 
My reason is to do with testing NAT = .... I've got=20 a problem thats been driving me
to distraction for ages & = because it involves=20 one of two tun's it costs a mint to keep
dialling the incoming line to test = changes. If I=20 can try things on a regular ethernet
interface I might have a chance of = seeing whats=20 not right without enriching Tel$tra \any further.
 
I guess the second (private) address = is assigned=20 similarly to the first (public) one
in /etc/rc.conf=20 ?? 
------_=_NextPart_001_01C08778.1AA28E20-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message