I am using CentOS 6, and I have two network cards on my machine. After asking friends, I have figured out that I need to make my routing table look like this:
Code:
Destination Gateway Genmask Flags MSS Window irtt Iface
111.68.222.48 0.0.0.0 255.255.255.240 U 0 0 0 eth1
10.1.8.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.0.0.0 10.1.8.1 255.0.0.0 UG 0 0 0 eth0
0.0.0.0 111.68.222.49 0.0.0.0 UG 0 0 0 eth1
In order to make this routing table persistent, I know I need to create the following two files:
1. /etc/sysconfig/network-scripts/route-eth0
2. /etc/sysconfig/network-scripts/route-eth1
But what goes in each of these two files? Please help.