From owner-freebsd-newbies Mon Mar 24 6: 1:33 2003 Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34F6737B401 for ; Mon, 24 Mar 2003 06:01:30 -0800 (PST) Received: from plintus.lcm.msu.ru (plintus.lcm.msu.ru [193.232.113.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BCF243F3F for ; Mon, 24 Mar 2003 06:01:27 -0800 (PST) (envelope-from epbox@yandex.ru) Received: from hq.sectorb.msk.ru (IDENT:root@petaflop.lcm.msu.ru [193.232.113.220]) by plintus.lcm.msu.ru (8.11.6/8.9.3) with ESMTP id h2OE1Mn13989; Mon, 24 Mar 2003 17:01:22 +0300 Received: from 192.168.17.99 (vlad.dorms.msu.ru [192.168.17.99]) by hq.sectorb.msk.ru (8.11.6/8.11.6) with ESMTP id h2OE1Gk31307; Mon, 24 Mar 2003 17:01:20 +0300 Date: Mon, 24 Mar 2003 17:01:11 +0300 From: Vlad Kozin X-Mailer: The Bat! (v1.61) Reply-To: Vlad Kozin X-Priority: 3 (Normal) Message-ID: <1816728455.20030324170111@yandex.ru> To: Anselme Cc: freebsd-newbies@FreeBSD.ORG Subject: Re[2]: dhcp and network interface In-Reply-To: <1048500845.251.46.camel@Toto.dippgw.homedns.org> References: <1048242305.253.11.camel@Toto.dippgw.homedns.org> <20030321115204.0243fe6f.benjamin@khlav-kalasch.de> <1048500845.251.46.camel@Toto.dippgw.homedns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-24.5 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello Anselme, Monday, March 24, 2003, 1:14:05 PM, you wrote: >> "ifconfig" gives you several info and let you do this changes by hand. A> type "man ifconfig" to see what it can do :) >> A> However, I need one more precision : A> I've done : A> $ ifconfig vr0 inet 192.168.0.11 netmask 255.255.255.0 A> $ route add default 192.168.0.1 A> and I add those lines in /etc/rc.conf : A> #ifconfig_vr0="DHCP" A> ifconfig_vr0="inet 192.168.0.11 netmask 255.255.255.0" A> defaultrouter="192.168.0.1" A> hostname="www.myserver.com" A> I didnot reboot the FreeBSD but it's in case ... A> My wondering is that when I do : A> $ ps -aux |grep dhc A> I get : A> root 69 0.0 0.1 940 328 ?? Is Thu08PM 0:00.01 /sbin/dhclient vr0 A> So, can I now safely do a kill 69 ? A> I doubt because man dhclient : A> (...)The DHCP A> protocol also provides a mechanism whereby a client can A> learn important details about the network to which it is A> attached, such as the location of a default router, the A> location of a name server, and so on. A> (...) After you've added those lines to your rc.conf and commented out the ="HDCP" line, you hopefully have your network addresses and gateways configured statically. Your system shouldn't listen the dhclient for network info anymore. I guess now you should check your /etc/resolv.conf for the correct nameservers entries (local network suffixes should be in this file as well). Make shure that the info in your resolv.conf is correct. Now hopefully you're done. By default dhclient overwrites resolv.conf each time it is used with the info it derives out of dhcp-server. >man resolv.conf for more info. -- Best regards, Vlad mailto:epbox@yandex.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message