LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-14-2009, 01:50 AM   #1
RedHatAddict
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Rep: Reputation: 0
Default route deleted from the Fedora's routing table


Greetings,

My static route was deleted after some equipments were halted by mistake in my topology:

Server -> Switch -> Cisco Router -> Internet

Though, the server was not rebooted, I've checked with the uptime command.

The distribution is Fedora Core 10, but I believe that doesn't matter so much.

The command I've used is: route add default gw Ciscorouter's_IP


Can anyone tell me WHY that route would disappear? What are the conditions a route would disappear from the routing table?

Thanks a lot guys!

Last edited by RedHatAddict; 09-14-2009 at 04:31 AM.
 
Old 09-14-2009, 02:44 AM   #2
WorldIsNotFair
Member
 
Registered: Jun 2008
Location: Jakarta
Distribution: CentOS 5
Posts: 89

Rep: Reputation: 17
I guess that you don't put your gateway into the configuration file.

is the switch connected to server go down ?

if yes, then IMO the scenario will be like this:

switch down - network interface down(no ip) - switch up - network iface up(OS reread the network config file)

Just guessing.
 
Old 09-14-2009, 03:23 AM   #3
RedHatAddict
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Original Poster
Rep: Reputation: 0
The switch went down.

The route has been written in the conf file (checked by setup command), and the IP was on the interface, the interface was up. Everything was ok on the server except that static route.

In dmesg I saw some messages that the link went down.

Last edited by RedHatAddict; 09-14-2009 at 03:32 AM.
 
Old 09-14-2009, 12:14 PM   #4
RedHatAddict
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Any ideas please?

Thanks a lot!
 
Old 09-19-2009, 11:40 AM   #5
RedHatAddict
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Original Poster
Rep: Reputation: 0
What the reason could be?
 
Old 09-26-2009, 03:30 AM   #6
RedHatAddict
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Somebody, please?
 
Old 09-26-2009, 03:39 AM   #7
WorldIsNotFair
Member
 
Registered: Jun 2008
Location: Jakarta
Distribution: CentOS 5
Posts: 89

Rep: Reputation: 17
Are u using NetworkManager ?

if you are using NetworkManager, it doesn't read the gateway config on /etc/sysconfig/network
, u have to put the parameter on /etc/sysconfig/network-scripts/ifcfg-[interface]

or you can put a script under /etc/NetworkManager/dispatcher.d/


regards

Last edited by WorldIsNotFair; 09-26-2009 at 04:11 AM.
 
Old 09-27-2009, 07:41 AM   #8
RedHatAddict
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Hello,

NetworkManager isn't a GUI tool from Gnome?

I am using "Setup" in the terminal to configure the network eths.


Quote:
Originally Posted by WorldIsNotFair View Post
Are u using NetworkManager ?

if you are using NetworkManager, it doesn't read the gateway config on /etc/sysconfig/network
, u have to put the parameter on /etc/sysconfig/network-scripts/ifcfg-[interface]

or you can put a script under /etc/NetworkManager/dispatcher.d/


regards
 
Old 09-27-2009, 08:19 AM   #9
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
can you able to ping your default gateway?

Quote:
Can anyone tell me WHY that route would disappear?
#route -n just check this and what is the output for this
Ex-
#route add -net 172.16.10.0/16 gw 172.16.10.250
If you reboot the server or even restart the network services you will lost the route
 
Old 09-28-2009, 04:33 AM   #10
WorldIsNotFair
Member
 
Registered: Jun 2008
Location: Jakarta
Distribution: CentOS 5
Posts: 89

Rep: Reputation: 17
so, is it default route problem or additional static route ?

@RedHataddict
Yes, if you are using NetworkManager its override Network service,
check your running service.

Quote:
Originally Posted by kirukan View Post
can you able to ping your default gateway?


#route -n just check this and what is the output for this
Ex-
#route add -net 172.16.10.0/16 gw 172.16.10.250
If you reboot the server or even restart the network services you will lost the route
 
Old 09-28-2009, 01:42 PM   #11
RedHatAddict
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by WorldIsNotFair View Post
so, is it default route problem or additional static route ?

@RedHataddict
Yes, if you are using NetworkManager its override Network service,
check your running service.
I am using the "setup" utility in the console mode. I just enter setup in the terminal and write the settings in the networking tab. Isn't this enaugh?
 
Old 09-28-2009, 09:16 PM   #12
WorldIsNotFair
Member
 
Registered: Jun 2008
Location: Jakarta
Distribution: CentOS 5
Posts: 89

Rep: Reputation: 17
yes, thats should be enough, since 'setup' write default gateway config to network-scripts/ifcfg-[interface]

and even if you using NetworkManager its should be ok for default gateway.

The only problem when using NetworkManager is when you add additional route.

You may want to find if there is network configuration file under /etc/sysconfig/network that may overriding each others.

Sorry can help much.
 
  


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
How to route using my own custom routing tables and not the Kernel's table WhiskeyTangoFoxtrot Linux - Networking 1 03-17-2009 10:03 AM
I deleted my ip routing table! ajaimes Linux - Networking 8 05-22-2007 02:14 PM
Routing table problem - can't route over ppp link ocgltd Linux - Networking 1 01-12-2007 01:07 AM
Default route disappears from kernel routing table second after adding it eli_pack Linux - Networking 2 03-13-2006 03:39 AM
Does ftp have a routing table on where to route users? digital bots Linux - Networking 1 04-06-2004 05:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:29 AM.

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