Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-25-2014, 04:22 AM
|
#1
|
Member
Registered: Dec 2011
Posts: 48
Rep:
|
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
|
|
|
07-28-2014, 12:47 AM
|
#2
|
Member
Registered: Dec 2011
Posts: 48
Original Poster
Rep:
|
Anyone faced the same issue?
|
|
|
07-28-2014, 04:16 AM
|
#3
|
Member
Registered: Dec 2011
Posts: 48
Original Poster
Rep:
|
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?
|
|
|
07-30-2014, 07:08 AM
|
#4
|
Member
Registered: Dec 2011
Posts: 48
Original Poster
Rep:
|
Nobody facing the ifdown command flush all the routes issue?
|
|
|
07-30-2014, 07:27 AM
|
#5
|
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912
|
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.
|
|
|
08-05-2014, 08:51 AM
|
#6
|
Member
Registered: Dec 2011
Posts: 48
Original Poster
Rep:
|
Can we stop flushing by any code change or any comment our some parameter?
|
|
|
08-05-2014, 01:02 PM
|
#7
|
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912
|
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.
|
|
|
08-06-2014, 12:27 AM
|
#8
|
Member
Registered: Dec 2011
Posts: 48
Original Poster
Rep:
|
I am using CentOS-5.9 operating system. Do we have any issue on CentOS-5.9 for my use case?
|
|
|
08-06-2014, 05:44 AM
|
#9
|
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912
|
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.
|
|
|
All times are GMT -5. The time now is 03:42 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|