Networking Forums

Networking Forums > Computer Networking > Linux Networking > Weird static route in Fedora?

Reply
Thread Tools Display Modes

Weird static route in Fedora?

 
 
news.xs4all.nl
Guest
Posts: n/a

 
      07-21-2004, 09:23 PM
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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
server loses connectivity - weird route showing up Shan McArthur Windows Networking 3 12-21-2005 12:46 AM
How Do I Config Static Route Permanent On Fedora mpanlop Linux Networking 3 04-15-2004 03:03 PM
route and static route to a gateway Sting Linux Networking 2 02-21-2004 03:35 AM
OK with static IP weird with DHCP bof Broadband 8 10-14-2003 03:44 PM
OK with static IP weird with DHCP bof Home Networking 8 10-14-2003 03:44 PM



1 2 3 4 5 6 7 8 9 10 11