How to save route commands

Alexander Dalloz ad+lists at uni-x.org
Thu Jun 16 15:10:23 UTC 2005


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 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20050616/5b9be967/attachment-0002.bin 


More information about the users mailing list