Thread: DSL Router
View Single Post
  #2   (View Single Post)  
Old 18th June 2009
s0xxx's Avatar
s0xxx s0xxx is offline
Package Pilot
 
Join Date: May 2008
Posts: 192
Default

I guess you are taking literaly what I wrote you in another forum.
First, you must learn the concepts of interfaces in *BSD world. I took vr0 just as an example, you must replace it with your interface listed in ifconfig -a output. I suggest you take a read on ifconfig(8) man page. Same applies for DNS settings. In the example, you replace 'nameserver A.B.C.D' with your (or your ISP's) DNS IP address.

But, when you use DHCP to obtain IP address (that is dinamic IP address, as oposed to static IP address), you also receive default gateway, DNS settings and loads of other useful stuff by DHCPD server, so there is no need to set up resolv.conf(5) and default gateway in /etc/rc.conf at all. It is being automagicaly done.

Concerning DHCP, there is a nice article at Onlamp.com named Introducing DHCP: http://www.onlamp.com/pub/a/bsd/2003...SD_Basics.html

Have fun
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD
Reply With Quote