Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BSD

Status
Not open for further replies.

w1nn3r

ISP
Sep 12, 2001
179
US
Hello,
Ive got a LAN, and 3 PC's running on it currently. Two of them(One windows 2k advanced server, and one redhat) pull DHCP ip addresses fine and route perfectly. my BSD box does not. i checked /etc/rosolv.conf and my nameservers are in there along with the correct domain, but i am unable to resolve names to IP addresses on the BSD box. My question is, with ifconfig, how do i set the nameservers for the dc0 interface. i tried ifconfig dc0 nameserver 24.xx.xx.xx but says "Bad value". What is the correct format for this command?
 
Hi,

I'm not too clear on what your're trying to do here. Do you mean configure an interface as a dhcp client ? If so, try

/sbin/dhclient dc0

(do 'which dhclient' to find path if different)

Your name resolution would ordinarily be in /etc/resolv.conf but that is never going to work unless your ip routing is correct first. Can you actually ping the ip addresses in your /etc/resolv.conf ?

If you have freebsd, the interface parms are stored in /etc/rc.conf by the /stand/sysinstall utility. You should be able to set things up using the /stand/sysinstall command - choose post-install config, then networking, etc.

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top