Date: Wed, 24 Sep 2003 13:50:32 -0700 From: Evren Yurtesen <yurtesen@ispro.net.tr> To: Martin Jessa <freebsd@yazzy.org> Cc: freebsd-isp <freebsd-isp@freebsd.org> Subject: Re: 4 network segments and dhcpd Message-ID: <3F720398.8020805@ispro.net.tr> In-Reply-To: <20030924123420.26140297.freebsd@yazzy.org> References: <20030924123420.26140297.freebsd@yazzy.org>
next in thread | previous in thread | raw e-mail | index | archive | help
You cant use 192.168.100.1 gw for 192.168.101/24 network the gw should be an IP address inside the network. You should define multiple IP addresses to your gw interface, lets say 192.168.100.1 mask 255.255.255.0 192.168.101.1 mask 255.255.255.0 192.168.102.1 mask 255.255.255.0 Then define these networks in your dhcp server separately so that if a user gets ip from 192.168.101.0/24 network the gw will be set to 192.168.101.1. You can also increase the number of IP addresses in your 192.168.100.0/24 network by decreasing the mask by using mask 255.255.252.0 then tell your dhcp server to give IP's in between 192.168.100.2-192.168.110.103.254 But I still suggest you to use PPPoE instead of this :) A lot less trouble and supported in FreeBSD ppp implementation with radius support. Plus by using something like mikrotik routeros you can limit the bandwidth at the same time from radius server. Evren Martin Jessa wrote: > Hi. > > I have a wireless network with a FreeBSD router acting as a poptop vpn server. > To extend the amount of my clients I have to add 3 extra network segments, each with /24, ie 192.168.100.0, 192.168.101.0, 192.168.102.0 and 192.168.103.0 > Each of the clients connects to our wireless equipement, gets his IP from dhcpd with a default route to 192.168.0.1. > Then when he logs in creating vpn tunnel over pptp he receives a static IP from our radius server and his bandwith is throttled. > How can I run a dhcpd for four network segments? > How can I solve that so all the users can use 192.168.100.1 as their default gw? > Or should each of the users rather use the first IP from his segment as his default gw? > I assume I would need a 255.255.252.0 > > > Address: 192.168.100.0 > Netmask: 255.255.252.0 = 22 > Wildcard: 0.0.3.255 > Network: 192.168.100.0/22 (Class C) > Broadcast: 192.168.103.255 > HostMin: 192.168.100.1 > HostMax: 192.168.103.254 > Hosts/Net: 1022 (Private Internet RFC 1918) > > > YazzY
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F720398.8020805>