LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-30-2014, 03:27 PM   #1
centosguy
LQ Newbie
 
Registered: Jun 2014
Posts: 2

Rep: Reputation: Disabled
How to set the rules in Centos, so that local table won't override


Hello community,

I am new-bee to Linux and seeking for your help. I will try to explain my problem here and hopefully I will do well enough to explain.

In Centos 6.4, when I type : ip rule list, I am seeing following:

0: from all lookup local
xyz: from all lookup 220
...: from all lookup main
...: from all lookup default

If I understood it correctly, it is prioritizing local table above all. What is happening is a route that is added in the Main does not getting executed for eth1 as there is already similar route exist for traffic through eth0. This makes the traffic flow from eth0 .

Now adding this route in local table above already existing route works and route flows from eth1. But the problem is whenever I perform network restarts, it remove the route that is added in local table!!

Is there any way to put a new route in local table permanently, so that it will be there even after network restart? Is there any way I can change the rules so that creating a new rule that can override the route in table local?

Thanks in advance. Your help will be highly appreciated.
 
Old 07-01-2014, 09:20 AM   #2
centosguy
LQ Newbie
 
Registered: Jun 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Please help, and let me know if any particular information is missing.
 
  


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
IP table rules umashanker_p28 Linux - Security 4 05-24-2011 04:42 AM
[SOLVED] Override real DNS entries with BIND (Centos 5.3) orthogonal3 Linux - Server 2 08-14-2009 03:42 AM
First Table applies its rules in iptalbes Tarikc Linux - Newbie 3 05-17-2009 03:54 AM
how do i set up an local apt respository on centos 4.2 server kiraninfotech Linux - Software 0 06-06-2006 03:20 AM
How to show rules in nat table? mrpc_cambodia Red Hat 2 09-26-2004 10:04 PM

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

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