LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-25-2014, 04:22 AM   #1
sekarlinux
Member
 
Registered: Dec 2011
Posts: 48

Rep: Reputation: Disabled
ip route removed automatically on CentOS-5.9


Hello Friends,

I have connected 2 DSL lines in my linux box with two different Ethernet card. In my ifcfg-ppp0 , ifcfg-ppp1 config files having DEFROUTE=yes. ip route added automatically when i brought up the interface ppp0 it is updated like

default dev ppp0 scope link

and brought up the interface ppp1 it is updated like

default dev ppp1 scope link

But this route is automatically removed when i brought down ppp0 interface when ppp1 interface still up and running.

Do i need to change any configuration to route can be removed only on the particular interface is down?

Regards
 
Old 07-28-2014, 12:47 AM   #2
sekarlinux
Member
 
Registered: Dec 2011
Posts: 48

Original Poster
Rep: Reputation: Disabled
Anyone faced the same issue?
 
Old 07-28-2014, 04:16 AM   #3
sekarlinux
Member
 
Registered: Dec 2011
Posts: 48

Original Poster
Rep: Reputation: Disabled
Adding more details.

I have two interface ppp0 ppp1. When we run ifdown ppp0 then it is flush all the default routes with ppp1 route as well. I did not see any issue lower version of CentOS-5.9.

Is there any bug reported or am i missing some configuration or is there any way to disable the delete routes when we run ifdown command?
 
Old 07-30-2014, 07:08 AM   #4
sekarlinux
Member
 
Registered: Dec 2011
Posts: 48

Original Poster
Rep: Reputation: Disabled
Nobody facing the ifdown command flush all the routes issue?
 
Old 07-30-2014, 07:27 AM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Depends on the distribution. Fedora has been moving things around for instance, and routes can occur in at least two places - the /etc/sysconfig/network-scripts/ifcfg files, and in /etc/sysconfig/network. Before my VM would work correctly, I had to put the designated gateway in the in network file (along with the DNS info).

Previously, the entries for DEFROUTE=yes, PEERDNS=yes, and PEERROUTES=yes would have set the routing properly.

Not any more.
 
Old 08-05-2014, 08:51 AM   #6
sekarlinux
Member
 
Registered: Dec 2011
Posts: 48

Original Poster
Rep: Reputation: Disabled
Can we stop flushing by any code change or any comment our some parameter?
 
Old 08-05-2014, 01:02 PM   #7
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
The flushing is done by downing the interface. When the routes are in /etc/sysconfig/networks they shouldn't be removed. Just be sure they are not in the ifcfg files.

The only other way is to not use fedora and use a more controllable distribution.
 
Old 08-06-2014, 12:27 AM   #8
sekarlinux
Member
 
Registered: Dec 2011
Posts: 48

Original Poster
Rep: Reputation: Disabled
I am using CentOS-5.9 operating system. Do we have any issue on CentOS-5.9 for my use case?
 
Old 08-06-2014, 05:44 AM   #9
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
I wouldn't think so.

I don't have a CentOS 5.9 system currently available to check though, Mine went to CentOS 7 for testing which did show the problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Centos 6 - Changing screen resolution after monitor removed TechnoBod Linux - Software 1 07-02-2013 08:56 PM
CentOS 5.7 partition problem -- VolGroup00 removed, 2nd HDD ... oneclick Linux - Server 7 12-25-2011 06:09 AM
pon connects ok to remote VPN but I cant get a route added automatically CADIT Linux - Networking 3 03-08-2010 10:09 AM
Suse ifdown default route is removed? simand Linux - Networking 1 10-19-2005 09:51 AM
automatically add route on boot? Loz Linux - Networking 1 11-22-2004 11:56 PM

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

All times are GMT -5. The time now is 03:42 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