static ip address and ifconfig

Mikel King mikel.king at
Sat Dec 29 19:21:02 UTC 2012

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. 

Mikel King
Senior Editor, BSD News

On Dec 29, 2012, at 1:16 PM, Polytropon <freebsd at> 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 <fbsd8 at> wrote:
>>>> 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.
>>>> When I issue the ifconfig command what will it show me?
>>>> Just the single primary static ip address or all 25 of them in a list?
>>>> Thanks
>>>> _______________________________________________
>>> It will just show the one currently assigned.
>>> Try it - just bring up an xterm and type 'ifconfig' You don't have to 
>>> be root, and you can't do any harm.
>>> em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>>> 	ether 08:00:27:40:ca:a9
>>> 	inet netmask 0xffffff00 broadcast  # HERE IT IS
>>> 	media: Ethernet autoselect (1000baseT <full-duplex>)
>>> 	status: active
>> Nope is a private lan IP address, its not public routable.
>> question has to be answered by some body who has multiple static public 
>> routable ip address assigned by their ISP.
> 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.
> However, at my old location I had assigned one static IP
> address directly delivered to the NIC, and ifconfig did
> show exactly that address.
> Simply try "ifconfig" and show what it prints for YOU.
> -- 
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list