Re: [CentOS] additional network config

2015-01-05 Thread ken

On 01/04/2015 01:44 PM, Leon Fauster wrote:

Am 04.01.2015 um 19:32 schrieb ken geb...@mousecar.com:

A system whose network routing table looks like this (abbreviated):

Destination Gateway Genmask Flags Metric RefUse Iface
192.168.0.0 0.0.0.0 255.255.255.0   U 0  00 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG0  00 eth0

needs to look like this:

Destination Gateway Genmask Flags Metric RefUse Iface
192.168.0.0 0.0.0.0 255.255.255.0   U 0  00 eth0
10.10.0.0   192.168.0.98255.255.0.0 UG0  00 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG0  00 eth0

The first table is nicely configured by the files under /etc/sysconfig/.

The first table becomes the second when this command is run:

route add -net 10.10.0.0/16 gw 192.168.0.98 eth0

The question is, which file(s) need to be configured under /etc/sysconfig/-- and with 
what-- in order to accomplish what the route add ... command does?




which OS?

for EL5, from /usr/share/doc/initscripts-8.45.45/sysconfig.txt

/etc/sysconfig/network-scripts/route-interface-name

   Contains lines that specify additional routes that should be added when the
   associated interface is brought up.

--
LF


Thanks, Leon.  I looked at using that file before, but gave it just a 
30% possibility of working, this due to the fact that there didn't seem 
to be enough variables available with which to provide all the 
information required to create the route.  But it worked fine, so who 
can argue with that?  :)



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] additional network config

2015-01-04 Thread ken

A system whose network routing table looks like this (abbreviated):

Destination Gateway Genmask Flags Metric RefUse 
Iface

192.168.0.0 0.0.0.0 255.255.255.0   U 0  00 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG0  00 eth0

needs to look like this:

Destination Gateway Genmask Flags Metric RefUse 
Iface

192.168.0.0 0.0.0.0 255.255.255.0   U 0  00 eth0
10.10.0.0   192.168.0.98255.255.0.0 UG0  00 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG0  00 eth0

The first table is nicely configured by the files under /etc/sysconfig/.

The first table becomes the second when this command is run:

route add -net 10.10.0.0/16 gw 192.168.0.98 eth0

The question is, which file(s) need to be configured under 
/etc/sysconfig/-- and with what-- in order to accomplish what the route 
add ... command does?


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] additional network config

2015-01-04 Thread Leon Fauster
Am 04.01.2015 um 19:32 schrieb ken geb...@mousecar.com:
 A system whose network routing table looks like this (abbreviated):
 
 Destination Gateway Genmask Flags Metric RefUse Iface
 192.168.0.0 0.0.0.0 255.255.255.0   U 0  00 eth0
 0.0.0.0 192.168.0.1 0.0.0.0 UG0  00 eth0
 
 needs to look like this:
 
 Destination Gateway Genmask Flags Metric RefUse Iface
 192.168.0.0 0.0.0.0 255.255.255.0   U 0  00 eth0
 10.10.0.0   192.168.0.98255.255.0.0 UG0  00 eth0
 0.0.0.0 192.168.0.1 0.0.0.0 UG0  00 eth0
 
 The first table is nicely configured by the files under /etc/sysconfig/.
 
 The first table becomes the second when this command is run:
 
 route add -net 10.10.0.0/16 gw 192.168.0.98 eth0
 
 The question is, which file(s) need to be configured under /etc/sysconfig/-- 
 and with what-- in order to accomplish what the route add ... command does?



which OS?

for EL5, from /usr/share/doc/initscripts-8.45.45/sysconfig.txt

/etc/sysconfig/network-scripts/route-interface-name

  Contains lines that specify additional routes that should be added when the
  associated interface is brought up.

--
LF







___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos