Re: [suse-sles-e] if-up and route add -net command

From: Alexei_Roudnev (Alexei_Roudnev_at_exigengroup.com)
Date: Wed Oct 04 2006 - 23:31:25 CEST


Message-ID: <0a9b01c6e7fc$722092b0$6f31a8c0@sjc.exigengroup.com>
From: "Alexei_Roudnev" <Alexei_Roudnev@exigengroup.com>
Date: Wed, 4 Oct 2006 14:31:25 -0700
Subject: Re: [suse-sles-e] if-up and route add -net command

Why do not use YaST2 to configure persistant routing (as it is designed)?
(Then you can see, where it created records,
and do the same manually if you want).

YaST2 -> Network decides -> edit (interface) -> routing

----- Original Message -----
From: "heze54" <heze54@hezesoft.org>
To: <suse-sles-e@suse.com>
Sent: Wednesday, October 04, 2006 1:52 PM
Subject: [suse-sles-e] if-up and route add -net command

Hi,

I need to add several route add- net routes when the server re-starts,
starts or the interface becomes up(ip-up).

Like my opensuse, I add a bash file to /etc/sysconfig/network/if-up.d..
and then a bash file like this..

!/bin/bash

# this scripts is called with the name of the interface in
# parameter $1

# source configuration file

route add -net 192.168.158.0 netmask 255.255.255.0 gw 192.168.154.254

With suse 10 or open suse it works fine but... with my sles9, when I
restart the system, there are not route added they must be added manually..

Why? whatÅ› wrong?

best regards

heze54

Antes de imprimir piensa en tu responsabilidad y compromiso con el MEDIO
AMBIENTE

---------------------------------------------------------------------
To unsubscribe, e-mail: suse-sles-e-unsubscribe@suse.com
For additional commands, e-mail: suse-sles-e-help@suse.com

---------------------------------------------------------------------
To unsubscribe, e-mail: suse-sles-e-unsubscribe@suse.com
For additional commands, e-mail: suse-sles-e-help@suse.com



This archive was generated by hypermail 2.1.7 : Wed Oct 04 2006 - 23:28:04 CEST