From owner-freebsd-questions@FreeBSD.ORG Sat Dec 29 19:21:02 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C71A2BD5 for ; Sat, 29 Dec 2012 19:21:02 +0000 (UTC) (envelope-from mikel.king@olivent.com) Received: from mail.olivent.com (mail.olivent.com [75.99.82.91]) by mx1.freebsd.org (Postfix) with ESMTP id 3DC008FC13 for ; Sat, 29 Dec 2012 19:21:01 +0000 (UTC) Received: from localhost ([127.0.0.1]) by mail.olivent.com (using TLSv1/SSLv3 with cipher AES128-SHA (128 bits)); Sat, 29 Dec 2012 13:50:23 -0500 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: static ip address and ifconfig From: Mikel King In-Reply-To: <20121229191604.cff1a883.freebsd@edvax.de> Date: Sat, 29 Dec 2012 13:50:40 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <0DC2CDCE-7A58-4F5D-AD27-6A4B46DD05ED@olivent.com> References: <50DF24BC.20507@a1poweruser.com> <20121229124207.110dca60@europa> <50DF30EA.1030408@a1poweruser.com> <20121229191604.cff1a883.freebsd@edvax.de> To: Polytropon X-Mailer: Apple Mail (2.1499) Cc: Mike Jeays , Fbsd8 , freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Dec 2012 19:21:02 -0000 It will show you each IP address you have successfully bound to the = interface. Using static IP addresses; the choice is yours on which get = bound to the interface and which do not where as with DHCP the one = chosen by the provider is assigned. If you bind only one then that is what it will show you.=20 Regards, Mikel King Senior Editor, BSD News http://bsdnews.net =20 On Dec 29, 2012, at 1:16 PM, Polytropon wrote: > On Sat, 29 Dec 2012 13:05:30 -0500, Fbsd8 wrote: >> Mike Jeays wrote: >>> On Sat, 29 Dec 2012 12:13:32 -0500 >>> Fbsd8 wrote: >>>=20 >>>> I don't have static ip address so I can not find out for myself. >>>> Lets say I am a company that my ISP has assigned us >>>> 25 static ip address. >>>>=20 >>>> When I issue the ifconfig command what will it show me? >>>>=20 >>>> Just the single primary static ip address or all 25 of them in a = list? >>>>=20 >>>> Thanks >>>> _______________________________________________ >>>=20 >>> It will just show the one currently assigned. >>>=20 >>> Try it - just bring up an xterm and type 'ifconfig' You don't have = to=20 >>> be root, and you can't do any harm. >>>=20 >>>=20 >>> em0: flags=3D8843 metric 0 = mtu 1500 >>> options=3D9b >>> ether 08:00:27:40:ca:a9 >>> inet 10.0.2.15 netmask 0xffffff00 broadcast 10.0.2.255 # HERE = IT IS >>> media: Ethernet autoselect (1000baseT ) >>> status: active >>>=20 >>=20 >> Nope 10.0.2.15 is a private lan IP address, its not public routable. >> question has to be answered by some body who has multiple static = public=20 >> routable ip address assigned by their ISP. >=20 > The presented example simply shows a typical ifconfig output. > On the "inet" line, you can see the assigned IP addresses. > As per definition, one interface can be assigned more than > one IP address, and maybe those will show in the ifconfig > output - however, this depends on your actual setup, for > example when you have specific network gear that "translates" > one or more static IP addresses into local addresses that > are _then_ assigned to individual network interfaces. >=20 > However, at my old location I had assigned one static IP > address directly delivered to the NIC, and ifconfig did > show exactly that address. >=20 > Simply try "ifconfig" and show what it prints for YOU. >=20 >=20 >=20 >=20 > --=20 > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org"