static ip address and ifconfig

Chris Hill chris at monochrome.org
Sat Dec 29 19:48:53 UTC 2012


On Sat, 29 Dec 2012, Fbsd8 wrote:

[ ... ]

> My host just has ifconfig_xl0="DHCP" in rc.conf and xl0 is the NIC 
> connected to public internet connection coming from my ISP.

In that case, you are not using static IPs. If your ISP has assigned you 
- as in Poly's example - 123.456.789.1 through 123.456.789.25, then 
those addresses are for your use to assign as you see fit. You would 
configure this machine's interface for any address in that block. You 
can then configure the same interface for more than one of those, or use 
your extra IPs for other machines (or interfaces). Instead of 
ifconfig_xl0="DHCP" in rc.conf, you might have 
ifconfig_xl0="123.456.789.16 255.255.255.128" or some such.

HTH.

-- 
Chris Hill               chris at monochrome.org
**                     [ Busy Expunging </> ]


More information about the freebsd-questions mailing list