RE: DHCP option static-routes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2005-05-30 at 17:12 +0100, Milver Nisay wrote:
> done you want to do the routing from the server level?  just a thought...
> 
> -----Original Message-----
> From: fedora-list-bounces@xxxxxxxxxx [mailto:fedora-list-bounces@xxxxxxxxxx]
> On Behalf Of Phil
> Sent: Monday, May 30, 2005 3:44 PM
> To: For users of Fedora Core releases
> Subject: DHCP option static-routes
> 
> I am using the latest version of DHCPD for Fedora Core 2.
> 
> I want to add a static route to all my clients.
> 
> basically I want to add a route with this configuration:
> 
> 192.168.11.0 mask 255.255.255.0 with a GW of 10.64.87.15
> 
> now if I use:
> option static-routes 192.168.11.0 10.64.87.15
> 
> The clients get a route with a subnet mask of 255.255.255.255
> 
> How can I give all the client a route with a specific subnet mask with
> DHCP? Is this possible?
> 
> Thanks!
> 
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> 
> 
G'day,

You will probably want something like this:

subnet 192.168.11.0 netmask 255.255.255.0 {

# --- default gateway
        option routers                  192.168.11.1;
        range dynamic-bootp 192.168.11.101 192.168.11.225;
        default-lease-time 21600;
        max-lease-time 43200;
}

The default route has to be on the same subnet. Then on the
firewall/route have it's default route set to 10.64.87.15 on the
external interface. For RedHat/Fedora Core simply add a
GATEWAY=10.64.87.15 to the /etc/sysconfig/network-scripts/ifcfg-eth1
(external interface), if using a static IP Address.

-- 
Marcus O. White <1lnxraider@xxxxxxxxxxx>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux