Date: Mon, 24 Mar 2003 17:01:11 +0300 From: Vlad Kozin <epbox@yandex.ru> To: Anselme <anselme@netcourrier.com> Cc: freebsd-newbies@FreeBSD.ORG Subject: Re[2]: dhcp and network interface Message-ID: <1816728455.20030324170111@yandex.ru> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1816728455.20030324170111>