WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   route "fixieren" (http://www.wcm.at/forum/showthread.php?t=182758)

jay_R 10.01.2006 14:59

route "fixieren"
 
wenn ich mit route add ne route hinzufüge bleibt sie genau solang bis ich nen reboot mache... wie stelle ich es an, dass die route auch nach einem reboot noch da ist?

ari 10.01.2006 15:23

route add -p :confused:

ingomar 10.01.2006 15:59

welches os ?

jay_R 10.01.2006 16:05

redhat enterprise 4

JoergStueger 10.01.2006 16:46

Da sollten die Routen rein ...

/etc/sysconfig/network-scripts/route-ethx

LG
Joerg

jay_R 10.01.2006 16:52

hab aber kein route verzeichnis drinnen...

ingomar 10.01.2006 16:59

/etc/sysconfig/static-routes ?

callas 11.01.2006 09:29

Creating static routes in RHEL 4.
Monday, October 31st, 2005

It looks as though many people are hitting my site looking for information on setting up static routes in Red Hat Enterprise Linux 4. Previously in on of my earlier entries covered setting up static routes with a metric, this is entry is just for setting up static routes. You could always add them manually, however below is a recipie for making them persistant.

For each device, (say eth0) create the file: /etc/sysconfig/network-scripts/route-eth0

And the contents should be something like:

10.0.1.0/24 via 192.168.2.4 dev eth0
10.0.4.0/24 via 192.168.2.2 dev eth0

If you have devices, make one for each device, and modify the line above to match that device.

The syntax is pretty straight forward, and I believe you can expand the “/24″ out to be a full netmask. The keen eye will realise that this is basically an interface to the “ip” tool. There are other cool things you can do with routing, for more information check out the “man ip” command.


von http://blog.subverted.net/?cat=1


oder mit 'system-config-network' falls du eine graphische konsole hast.


Alle Zeitangaben in WEZ +2. Es ist jetzt 01:07 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag