Author: Morten Christensen
Email: mc@svanekaer.dk
Date Submitted: Fri, Sep 25, 1998
Status: New Entry
Requester: Terry West
Email: terry@twest.com
Request Made: Mon, Aug 3, 1998
Releases: | (none) |
Platform: | all |
Category: | Networking and netcfg |
Category Listing: | What is the format of /etc/sysconfig/static-routes ? |
I'm remotely helping someone fix their eth0 routes. From looking at ifup-routes, it looks like the syntax for 'static-routes' should be:
eth0 net netIP gw hostIP netmask 255.255.255.248 metric 0
eth0 default gw gwIP metric 1I would appreciate it someone could email/post an example. Thanks.
PS, The above example is supposed to be two lines each beginning with 'eth0'--using preview mode submitting this, I can't seem to get the formatting right.
Try something like this:
eth0 net 130.225.204.48 netmask 255.255.255.248 gw 130.225.204.49
eth1 net 192.38.8.0 netmask 255.255.255.224 gw 192.38.8.129
eth1 net 192.38.8.32 netmask 255.255.255.248 gw 192.38.8.129
Or easier - try one of the conf tools...
cheers,
Morten
(none)