From owner-freebsd-isp@FreeBSD.ORG Wed Sep 24 03:51:16 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 877BC16A4B3 for ; Wed, 24 Sep 2003 03:51:16 -0700 (PDT) Received: from supermail.ispro.net.tr (supermail.ispro.net.tr [217.21.68.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78BD743FCB for ; Wed, 24 Sep 2003 03:51:13 -0700 (PDT) (envelope-from yurtesen@ispro.net.tr) Received: (qmail 13464 invoked by uid 0); 24 Sep 2003 10:51:09 -0000 Received: from opisadsl.tekniikka.turkuamk.fi (HELO ispro.net.tr) (yurtesen@ispro.net.tr@193.166.136.253) by supermail.ispro.net.tr with AES256-SHA encrypted SMTP; 24 Sep 2003 10:51:09 -0000 Message-ID: <3F720398.8020805@ispro.net.tr> Date: Wed, 24 Sep 2003 13:50:32 -0700 From: Evren Yurtesen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030808 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Martin Jessa References: <20030924123420.26140297.freebsd@yazzy.org> In-Reply-To: <20030924123420.26140297.freebsd@yazzy.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by IsproNET cc: freebsd-isp Subject: Re: 4 network segments and dhcpd X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2003 10:51:16 -0000 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