LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-26-2011, 09:59 PM   #1
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Rep: Reputation: 15
trouble adding static route to fedora 11


I need a static route setup on fedora 11 to allow a remote site to work. I can add the static route using:

route add -net 192.1.2.0 netmask 255.255.255.0 gw 192.1.1.152

but after reboot it the static route is lost. I have tried /etc/rc.d/rc.local and also added the static route through the network gui but neither have worked. Where would I need to add this to have it started each time the system is booted??
 
Old 09-26-2011, 10:40 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Hello,

Haven't used Fedora in a bit, but have a look in /etc/sysconfig/network-scripts/route-eth0 after you set your static route and see if the changes are made. Of course, change the interface to whatever you are using. Make your changes reflect in that file, and your static route will be defined.

Cheers,

Josh
 
Old 09-26-2011, 11:26 PM   #3
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
The changes are there, but the route is still not being started. I created a file in /etc/init.d named routes to automatically add the routes but it's getting an error stating: "SIOCADDRT: no such process". However, if I run the exact same command once the server is started, it adds the route with no problem.
 
Old 09-27-2011, 12:53 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
are you using the "networkmanager" or the older and still installed but turned off "network"
on this WAY PAST it's End Of Life fedora 11 .( 16 is in testing )

networkmanager auto set it up on boot
network is manual
 
1 members found this post helpful.
Old 09-27-2011, 01:30 AM   #5
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by John VV View Post
are you using the "networkmanager" or the older and still installed but turned off "network"
on this WAY PAST it's End Of Life fedora 11 .( 16 is in testing )

networkmanager auto set it up on boot
network is manual
I know this is going to bug the living sh*t out of you, but my server is running Fedora 11
 
Old 09-27-2011, 05:36 AM   #6
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 394

Rep: Reputation: 52
I think I'll revert my server from Fedora 14 to Fedora 11. Things were better in the "old" days
 
Old 09-27-2011, 08:52 AM   #7
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by Glennzo View Post
I think I'll revert my server from Fedora 14 to Fedora 11. Things were better in the "old" days
True that. But here's the catch... If you do revert, you are going to have to hand-update EVERYTHING.... Even the kernel. Fedora 11's end of life ended a while ago...... So unless you either really want to do this, or have a damn good reason for going to Fedora 11, then stick with an updated version that gets its updates. I hand update what I need to on my server for the experience, and also because I'm weird. So if you do, what's your reason?
 
Old 09-27-2011, 09:34 AM   #8
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
I believe it's using network manager.
 
Old 09-27-2011, 12:45 PM   #9
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
When you mentioned NetworkManager I did some searching and ended up finding this (http://forums.fedoraforum.org/showthread.php?t=219788). Creating the /etc/NetworkManager/dispatcher.d/02-setuproutes file worked perfectly. Thanks for the help.
 
Old 09-27-2011, 12:51 PM   #10
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by JSLayton View Post
When you mentioned NetworkManager I did some searching and ended up finding this (http://forums.fedoraforum.org/showthread.php?t=219788). Creating the /etc/NetworkManager/dispatcher.d/02-setuproutes file worked perfectly. Thanks for the help.
Glad to hear you got it figured out man. I knew it had something to do with a script within NetworkManager.
 
Old 09-27-2011, 06:16 PM   #11
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 394

Rep: Reputation: 52
Quote:
Originally Posted by corp769 View Post
True that. But here's the catch... If you do revert, you are going to have to hand-update EVERYTHING.... Even the kernel. Fedora 11's end of life ended a while ago...... So unless you either really want to do this, or have a damn good reason for going to Fedora 11, then stick with an updated version that gets its updates. I hand update what I need to on my server for the experience, and also because I'm weird. So if you do, what's your reason?
I'm just joking. It would take way too much effort to go backwards. On the other hand, it would irritate JohnVV
 
Old 09-27-2011, 07:07 PM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
On the other hand, it would irritate JohnVV
true .

but most of the time the person who is using the EOL fedora had / has no idea that they are using a EOL version

the rest DO know the risks ( or SHOULD know the risks )
most of the time the risk is small but not always .
 
Old 09-28-2011, 07:15 AM   #13
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Awe, we are all getting along.... Cute.

Anyways.... I'm done thread jacking for today. To the OP - Good luck. John and The Bassinator - I'm not saying anything....
 
Old 11-02-2011, 11:25 PM   #14
etegration
LQ Newbie
 
Registered: Jan 2004
Posts: 26

Rep: Reputation: 15
Quote:
Originally Posted by Glennzo View Post
I think I'll revert my server from Fedora 14 to Fedora 11. Things were better in the "old" days
there's still some truth to that. things are kept being added till it's so bloated at times, troubleshooting a small p[roblem takes ages. haha
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
route-eth - Adding a static route gbwien Linux - Networking 5 02-24-2012 05:15 AM
Adding a route to a static Host helptonewbie Linux - Newbie 6 02-16-2010 04:20 PM
Permanent static Route on fedora cora 5 niurkin69 Linux - Networking 2 09-22-2006 03:56 PM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 02:11 PM
Adding static route in Mandrake 9.2 bloke Linux - Networking 1 02-23-2004 07:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration