Re: How to save route commands

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

 



Am Do, den 16.06.2005 schrieb Zhen Zhou um 7:40:

http://www-personal.ksu.edu/~seabra/linux/FedoraRules.html
  --> 4. IF YOU ARE REPLYING TO A MESSAGE --> "no top posting, please!"

> very cool, but I couldn't add default gateway to this:
> 
> etc/sysconfig/network-scripts/route-<interface-name>
> 
>   Contains lines that are arguments to "/sbin/ip route add"
>   For example:
>   
>   192.168.2.0/24 dev ppp0
>   
>   adds a network route to the 192.168.2.0 network through ppp0.
> 
> maybe it is, but how could I do?

> Zhou Zhen

Reading your initial posting, this kind of route setting isn't necessary
at all. Just make sure no ethernet device is setting a default route so
that the PPP device can not set it for itself. How?

a) Make sure /etc/sysconfig/network contains no GATEWAY / GATEWAYDEV
entry
b) Make sure any /etc/sysconfig/network-scripts/ifcfg-ethX config file
contains a GATEWAY setting either
c) Make sure /etc/sysconfig/network-scripts/ifcfg-ppp0 contains a
DEFROUTE=yes setting

That would be a clean setting. I would bet you now have at least 2
default routes set which would be broken.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.27_FC2smp 
Serendipity 17:04:49 up 23 days, 15:42, load average: 0.22, 0.16, 0.15 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


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

  Powered by Linux