4 network segments and dhcpd
yurtesen at ispro.net.tr
Wed Sep 24 03:51:16 PDT 2003
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
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
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.
Martin Jessa wrote:
> 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)
More information about the freebsd-isp