Re: 4 network segments and dhcpd

From: Evren Yurtesen (yurtesen_at_ispro.net.tr)
Date: 09/24/03

  • Next message: Nick Kraal: "Re: SSHD Patch"
    Date: Wed, 24 Sep 2003 13:50:32 -0700
    To: Martin Jessa <freebsd@yazzy.org>
    
    

    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

    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"


  • Next message: Nick Kraal: "Re: SSHD Patch"

    Relevant Pages

    • Re: Fully parallel Scheme-based language w/ evaluator
      ... Windows Server 2003 and networks in simple - and irreverent - terms. ... If networking really is a big deal, ... Concepts and Terminology in Part I, and The Design and Deployment of Network ...
      (comp.lang.misc)
    • Can connect to smb://192.168.0.112/share but not smb://NYS/share
      ... In Konqueror I get an error if I try to browse the windows network. ... I am not sure if this is an issue with my samba config file(the server ... create mask = 0600 ...
      (comp.os.linux.networking)
    • Can connect to smb://192.168.0.112/share but not smb://NYS/share
      ... In Konqueror I get an error if I try to browse the windows network. ... I am not sure if this is an issue with my samba config file(the server ... create mask = 0600 ...
      (comp.os.linux)
    • Re: Outgoing POP3 email missing/lost/not received
      ... Funny thing is that I have had this ISP for 8 years and it has always been ... It looks like when you last ran CEICW, you set the ISP's mail server to: ... Internet Connection Wizard. ... After the wizard completes, the following network connection ...
      (microsoft.public.windows.server.sbs)
    • Re: Logon Server Unavailable
      ... There are currently no logon servers available to service ... You use a office laptop to connect the office VPN, when you map a network ... you may receive this message: "This account is the ... The server is not configured for transactions"> "A domain controller for your domain could not be contacted" ...
      (microsoft.public.windows.server.general)