From owner-freebsd-questions@FreeBSD.ORG Sat Dec 29 23:09:39 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 CEFFE55A for ; Sat, 29 Dec 2012 23:09:39 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 865728FC08 for ; Sat, 29 Dec 2012 23:09:39 +0000 (UTC) Received: from r56.edvax.de (port-92-195-31-80.dynamic.qsc.de [92.195.31.80]) by mx02.qsc.de (Postfix) with ESMTP id B033924ABF; Sun, 30 Dec 2012 00:09:38 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id qBTN9fH3003245; Sun, 30 Dec 2012 00:09:41 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 30 Dec 2012 00:09:41 +0100 From: Polytropon To: Fbsd8 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> <50DF7444.8080409@a1poweruser.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Dec 2012 23:09:39 -0000 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, ...