Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Dec 2012 00:09:41 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Fbsd8 <fbsd8@a1poweruser.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: static ip address and ifconfig
Message-ID:  <20121230000941.06510aa0.freebsd@edvax.de>
In-Reply-To: <50DF7444.8080409@a1poweruser.com>
References:  <50DF24BC.20507@a1poweruser.com> <20121229124207.110dca60@europa> <50DF30EA.1030408@a1poweruser.com> <20121229191604.cff1a883.freebsd@edvax.de> <50DF3A61.6040307@a1poweruser.com> <29b73b32ef10a5f868eb1e3bbc6a0a95@dweimer.net> <50DF5D99.9020206@a1poweruser.com> <C96878CC-3A9C-4A7A-B7B6-4E586AAF3CFF@olivent.com> <50DF7444.8080409@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 29 Dec 2012 17:52:52 -0500, Fbsd8 wrote:
> Your talking in general terms which does not help me, I need details.
> You said above "Whereas a static IP assignment must be configured 
> manually by you the human and not the ISP."
> 
> I tried to show this human manual configuration in my above post.
> What are you purposing as human manual configuration?
> I need syntax of commands used in response to my above post.

This basically means you do not actually use DHCP for your
"client" machines (or better: for _your_ machines, be it
servers, desktop computers or firewalls); instead you have
to configure the components that would be DHCP's task on
a dynamic IP connection.

This is:

1. In /etc/rc.conf you need to configure the NIC(s) of your
   system to the IPs you want them to have:

	hostname="foo.example.com"
	ifconfig_xl0="inet 123.456.789.10  netmask 0xffffff00"
	ifconfig_xl1="inet 123.456.789.11  netmask 0xffffff00"
	defaultrouter="123.456.777.100"

   Maybe your ISP also defines a default router for you.



2. In /etc/resolv.conf, you have to define name servers if
   you need them (or you run your own one). Typically the
   ISP will tell you which NS _he_ offers.

	search example.com
	nameserver 123.456.700.100



3. You would also add entries to /etc/hosts reflecting your
   host's settings:

	123.456.789.10 foo.example.com foo
	123.456.789.11 foo.example.com foo


All this implies that those settings are quite static. But for
a static IP that might be fully desired. :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121230000941.06510aa0.freebsd>