Date: Fri, 9 May 2003 12:51:59 -0500 (CDT) From: Eduardo Viruena Silva <mrspock@esfm.ipn.mx> To: Ronald Weinrich <freebsd@werosoft.com> Cc: freebsd-questions@freebsd.org Subject: Re: dhcp Message-ID: <20030509123418.L41420@Gina.esfm.ipn.mx> In-Reply-To: <3EBBF9AE.11268.19DEC66@localhost> References: <3EBBF03C.24811.17909CC@localhost> <3EBBF9AE.11268.19DEC66@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030509123418.L41420>
