I want to know how to set the following static routes, I currently have in
rc.local:
route add 10.0.0.138 dev eth1
route add default gw 10.0.0.138
When I do service network restart I would like those routes to be added
automaticly.
However I don't use a "normal" setup. I have a dsl modem, and use
"SIP_SPOOF"
This means that eth1 of my fedora computer has it's outside ipadress
A.B.C.D.
However the ethernet adsl-modem also has this address A.B.C.D. Bit weird but
with a special setup this works.
so eth1 has ip a.b.c.d, netmask 255.255.255.255 ( this netmask means you
basically can't get to any network)
to get data outside the adsl modem 10.0.0.138 has to be reached.
However we can't add let say an alias address 10.0.0.150, to reach the dsl
modem, because then the computer would originate with its own 10.0.0.150
address.
So that why i need add this route: route add 10.0.0.138 dev eth1, before
anything else
Only when this route is set, i can set my default gateway.
So i cant set in ifcfg-eth1my default GW or in /etc/sysconfig/network
So i guess I must put something in route-eth1
but examples like:
> > # <prefix/bits> via <gateway>
> > 10.0.0.0/8 via 192.168.0.1
>
or GATEWAY0=10.0.0.254
> NETMASK0=255.255.255.255
> ADDRESS0=192.168.1.10
don't fit the description. Any ideas?
Jan-Willem
|