dhcp
Eduardo Viruena Silva
mrspock at esfm.ipn.mx
Fri May 9 10:53:43 PDT 2003
On Fri, 9 May 2003, Ronald Weinrich wrote:
---
I cut this part.
---
> ok that's it every user gets a 192.xxx......
> look at my topolgy
>
> > INTERNET ip xx.xx.xx.xx of my provider
> |
> |
> ------------------- ip xx.xx.xx.xx outside of my router
> | |
> | MY ROUTER|
> | |
> -------------------- ip 213.47.28.161
> |
> |
> -----------------------------------
> | switch 2 |
> -----------------------------------
> |
> |
> ------------------------- ed0 213.47.28.166
> | Freebsd-box |
> | Firewall |
> | ipfilter ipnat |
> -------------------------- ep0 192.168.1.1
> |
> |
> -----------------------------------
> | switch 1 |
> -----------------------------------
> | | | ^
> ^ ^ ^ |
> -----------------
> | |
> | DHCP |
> | |
> ------------------
>
>
> hier I like to install the DHCP Box with 1nic so that every user who
> connects to the switch 1 will get a ip from 192.168.0.2 - 192.168.0.50
>
you mean, a new box inside your network acting as dhcpd server?
My topology is equal to yours.
Your FreeBSD box --the firewall above-- can be used as DHCP server.
You don't need another computer doing the job inside your network.
Perhaps this can help you:
---------/usr/local/etc/dhcpd.conf-----------
ddns-update-style none;
subnet 192.168.1.0 netmask 255.255.255.0 {
option domain-name-servers your_name_server_ip;
option domain-name "your_domain_name";
range 192.168.1.2 192.168.1.50;
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
default-lease-time 600;
max-lease-time 7200;
}
---------------------------------------------
just change your_name_server_ip and your_domain_name, accordingly.
Eduardo.
--
2B | ~ 2B == ?
Hamlet
More information about the freebsd-questions
mailing list