Re: Static Routes via DHCP - How to do?

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

 



On Wed, 2005-01-26 at 10:56 -0600, David Hoffman wrote:
> > You don't need to script this on linux. Assuming you've only got one NIC
> > on your clients (eth0), create a file on each client called
> > /etc/sysconfig/network-scripts/route-eth0 that contains the following:
> > 
> > 192.168.1.0/24 via 10.0.0.3
> > 192.168.2.0/24 via 10.0.0.3
> > 192.168.3.0/24 via 10.0.0.3
> > 
> > That should have the desired effect.
> > 
> > Paul.
> 
> 
> If there is only one NIC on the clients, and if the default gateway is
> at 10.0.0.3, then how is this any different than setting 10.0.0.3 to
> the default gw?

His default gateway is 10.0.0.2 and there is no route to the 192.168
networks from there. If he changes default gateway to 10.0.0.3, he won't
be able to connect to the Internet from his 10.x clients because the
router at 10.0.0.3 has no default route itself.

Paul.
-- 
Paul Howarth <paul@xxxxxxxxxxxx>


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

  Powered by Linux