Ip rule - Routes - Setup questions

Thread Tools Search this Thread
Special Forums IP Networking Ip rule - Routes - Setup questions
# 1  
Old 09-16-2013
Ip rule - Routes - Setup questions

Hi fellow linux-users,

I have a server with 4 nics(currently only using 2), running virtual machines.

It uses two networks on different subnets.


eth1   (via gateway
eth2   (via gateway

I ran the following commands to make the network to work with internet connection:

ip rule add from table 200
ip route add default via dev eth1 table 200

However if I leave the server for a couple of hours, it looses its connection to

I have tried to make it persistent by making the following changes:

in /etc/sysconfig/network-scripts/route-eth1:
default via dev eth1 table 200 via
from table 200

in /etc/sysconfig/network-scripts/rule-eth1:
from table 200

Any obvious ideas or errors?

I am new to linux, and have read a lot of network threads - and I cannot seem to get it work.

Hope you guys have some ideas.



Moderator's Comments:
Mod Comment Use code tags please.

Btw. Im using Centos 6

Last edited by Shawarmadk; 09-16-2013 at 12:38 PM.. Reason: code tags
# 2  
Old 09-18-2013
Is there a routing protocol running RIP/BGP/OSPF ? Someone has to be rewriting the routes!
# 3  
Old 09-19-2013
Thanks for the response, I think you are right that the problem is that there is no one to rewrite tthe rules so it sticks.

Is there a way to check which routing protocols are running? (sorry for noob question)

I have no access to the router, as it is a server hosted in a datacenter which have access to two gateways through a small switch.

It is a standard centos 6 linux box with virtouzzo installed.
# 4  
Old 09-19-2013
There are ICMP messages that rewrite routing tables, which in hindsight was a hackers dream, so they need to be disabled internally or with a firewall.

Otherwise, dynamic changes are done by protocols, and I assume daemons, but I work at high altitude, here. Linux Advanced Routing & Traffic Control HOWTO
This User Gave Thanks to DGPickett For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Problem with routes in Solaris 10

Hello All, I have a Solaris 10 machine with 4 physical network interfaces configured viz. igb0, e1000g0, igb2 and e1000g2. Out of these interfaces, I am routing all my normal monitoring and O&M activities via. igb0 and e1000g0 interfaces. However, I am facing an issue on one of the... (4 Replies)
Discussion started by: mystition
4 Replies

2. IP Networking

Unix Network Routes

I would really appreciate some help with HP UX's Network Routes. Basically, what I want to do is, I would want a system with global ip (eg: to ping/access my HP-UX server which is with private IP address ( I have all the routers/switches in between properly route... (2 Replies)
Discussion started by: damchey
2 Replies

3. AIX

ssh public key setup questions.

Hi all, I have N number of AIX hosts, where I need to login frequently and do some routine tasks (run some scripts). I need to setup ssh public/private key, so I can auto-login via a master (wrapper) script and run each script in each server. I am trying to setup/generate ssh keys, but am... (6 Replies)
Discussion started by: haroon_a
6 Replies

4. AIX

NIM server setup on etherchannel setup environment

I know that IBM's official stance is that NIM does not work on etherchannel environment, but has anyone able to get around it? I'm working on a p5-590 LPAR system, and the NIM master and clients are all on the same frame. Any help is appreciated. (1 Reply)
Discussion started by: pdtak
1 Replies

5. AIX

Static Routes question

I added a static route through smit using: Communications applications and Services ==> TCIP/IP ==> Further Configuration ==> Static Routes ==> Add a Static Route ==> Route Type of host Filled in Destination Address, Default Gateway Address and Network Interface of en0. This... (2 Replies)
Discussion started by: jyoung
2 Replies

6. IP Networking

How to delete some ipv6 routes?

Hi, How can i delete the following routes on my OpenBSD 4.1 system? # route -n show (including only relevant ipv6-routes) Internet6: Destination Gateway Flags Refs Use Mtu Interface ::/104 ::1 UGRS 1 0 ... (1 Reply)
Discussion started by: phalcos
1 Replies

7. Solaris

Where are routes stored ?

Hi there When adding a route (or indeed deleting a route) which file is amended ? I am moving a box from one network to another and when it starts up it tries to connect run 'add net 192.x.x.x' etc etc ...but i dont want it to do that where do I edit these route additions cheers (5 Replies)
Discussion started by: hcclnoodles
5 Replies

8. AIX

Multiple Default routes

Hi All, I have a AIX server running v5.2 and its having multiple default routes configured to two seperate gateway. Here's the output of -- netstat -rn Routing tables Destination Gateway Flags Refs Use If PMTU Exp Groups Route Tree for Protocol Family 2... (2 Replies)
Discussion started by: rramanuj
2 Replies

9. Debian

Setting Routes and such

Ok, I made changes to my routing tables..... which file do I modify to make the routes initialize correctly when the machine boots up? I work with all flavours of Unix/Linux... but this is an older box... Linux, Release 2.2.14-5.0. I did a grep for the default route in /etc, but didnt find... (2 Replies)
Discussion started by: djsal
2 Replies

10. Linux

newbie questions on ntp and routes

RH 7.2 I have 2 unrelated questions - 1.) I have been able to configure and run ntp but cannot figure out how to start the service upon reboot. I have read the man pages for ntsysv - this is a manual action, but I want to drop a tarball of config files on a new installation and cannot... (1 Reply)
Discussion started by: jalburger
1 Replies
Login or Register to Ask a Question