Date: Mon, 18 Feb 2002 11:42:11 -0500 From: Bill Moran <wmoran@potentialtech.com> To: "a064983" <eddy.houthuys@pandora.be>, <questions@freebsd.org> Subject: Re: use the subject: DHCP or static? Message-ID: <02021811421106.01558@proxy.pt.com> In-Reply-To: <000f01c1b89a$59104f40$3201a8c0@pandora.be> References: <000f01c1b89a$59104f40$3201a8c0@pandora.be>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 18 February 2002 11:35, a064983 wrote: > I have been trying to install FreeBSD for the first time and am having > some difficulties setting up my cable connection. I have a Linksys > ethernetfast dsl/cable router which is setup for DHCP. My windows > machine is connected to it as a DHCP client and seems to work fine. > > What I would like to do is connect my FreeBSD box not as a DHCP client > but assign a "static" ip such as 192.168.1.5 which the router allows you > to do. So in rc.conf I have: > > ifconfig_vr0 = "inet 192.168.1.5 netmask 255.255.255.0" > defaultrouter = "192.168.1.1" > > > This is same setup a friend of mine in the US--I'm from Belgium--has and > it works fine (though he runs his own nameserver.) > > The problem I'm having is that I'm getting host lookup failures. If I > look in my router's status I can see that it has found two nameservers. > Do these need to be in resolv.conf as well or should lookups simply be > passed to the router which will forward them apprpriately? I'm guessing that you need to put those nameservers in /etc/resolv.conf It's possible for the "router" to take care of all that automagically, but I seriously doubt if it does. > Finally, what should I specify as a hostname in rc.conf with a DHCP > connection and how should this appear in /etc/hosts? Generally, I just make stuff up for a hostname. With your setup you can even leave it out and FreeBSD will assign itself the name "amnesiac" (which is somewhat humorious) Unless you plan to use the hostname to access your machine (perhaps other computers in your home) or you have someone with an Internet DNS server who's going to list your computer (which isn't generally a good idea with DHCP) then it doesn't make much difference what you call your comptuer. One exception to that (that I know of), if you want to install MySQL, you need to have a hostname that exists in /etc/hosts for the local machine. It doesn't matter what that name is, just so long as it resolves to 127.0.0.1 Otherwise, MySQL will refuse to install. -- Bill Moran Potential Technology technical services http://www.potentialtech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02021811421106.01558>