The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Dynamic Networking - DHCPd/NATd
Author: D.A. Alderud 
Date:   21-05-00 22:08

Here's the problem I'm trying to solve.

We're reciving the information we need from a DHCP server(DNS, Gateway etc), we're on a T3 connection btw. So, anyway, on this SOHO-LAN we want to use DHCP too.

Now to the questing, how do set up a FreeBSD 4.0 box to do the following:
At boot get the information from the external DHCP server, then use that
information when on boot time to configure our own DHCPd.
Second, since our server get a dynamic IP and passes out dynamic IPs, how do
I configure NATd to it's job.

So basicly, I recive our IP, IP of the DNS, etc from the external server.
Then I want to pass this on to our clients (192.168.0.X) via DHCPd, and as
you know I also need to handle this with NATd.

If everything was done staticly, no problem, easy.
However, I've been messing with this for more than a week now and I still
can't get it right.
To be honest, I couldn't even get the internal DHCPd to work with NATd. :)

And btw, the client machines are of very different kinds of hardware and
software, even Win95 boxes, and I've heard that makes great deal of trouble
with DHCPd.

Preferably this should all be handled with rc.conf(examples with natd.conf
also needed), so the guy that one day will handle this later does not need
to look all over the place for .

Hope I managed to make my self clear. :)

Reply To This Message
 
 RE: Dynamic Networking - DHCPd/NATd
Author: D.A. Alderud 
Date:   22-05-00 14:20

Ok, I managed to solve this, looks like rc.conf fails for some reason, I just have to do it manually in /usr/local/etc/rc.d and it works ok.

Anyone understand why the following rc.conf fails?

[...]
firewall="YES"
gateway_enable="YES"
dhcpd_enable="YES"
dhcpd_flags="xl2 -q"
natd_enable="YES"
natd_flags="-u -m -s -dynamic -interface xl2"
[...]


I want to do things from rc.conf, it's better for the guy that will take over after me if it's all in one place, so how do I get it to work?

Reply To This Message
 
 RE: Dynamic Networking - DHCPd/NATd
Author: D.A. Alderud 
Date:   22-05-00 14:24

wrong,
natd_flags="-u -m -s -dynamic -interface xl1"
is what is in rc.conf, stupid typos :)

Reply To This Message
 
 RE: Dynamic Networking - DHCPd/NATd
Author: Dan Langille 
Date:   22-05-00 22:36

There is a lot in there. Which bits fail?

Reply To This Message
 
 RE: Dynamic Networking - DHCPd/NATd
Author: D.A. Alderud 
Date:   23-05-00 11:08

NATd and DHCPd wont even start, so I really don't know what's wrong.

If anyone has their DHCP, DHCPd, NATd working I'd be very happy if you would post you're config files here so that I can have a closer look.

Feal free to change any irrelevant information, like IP numbers to protect your self. :)

Reply To This Message
 
 RE: Dynamic Networking - DHCPd/NATd
Author: Dan Langille 
Date:   23-05-00 21:52

Any messages in /var/log/messages pertaining to thse issues?

Can you start them by hand?

Failing answers here, send a message to freebsd-questions@freebsd.org with full details.

Reply To This Message
 
 RE: Dynamic Networking - DHCPd/NATd
Author: D.A. Alderud 
Date:   27-05-00 22:51

That was the first place I looked, but it didn't show anything.

Nomaly there would be an error message, but there's nothing.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org