Mailinglist Archive: opensuse (1914 mails)

< Previous Next >
Re: [opensuse] preferred way to add a static route in OpenSuse?
  • From: Amedee Van Gasse <amedee@xxxxxxxxx>
  • Date: Wed, 12 Nov 2008 00:55:35 +0100
  • Message-id: <491A1B77.3040205@xxxxxxxxx>
Angel Alvarez schreef:
El Martes 11 Noviembre 2008 Amedee Van Gasse escribió:
Hello,

I have added a static route that sends all traffic for a certain net
block over the wlan interface.

route add -net xxx.xxx.xxx.0 netmask 255.255.255.0 gw 192.168.1.1 dev wlan0

What is the preferred way in OpenSuse to:
a) make this static route permanent?
Yast/Network/network cards /wlan0/routes

Thanks.
I was looking at the "global" routes config in Yast, didn't realize that
each individual interface could have routes too.
You see, I'm used to routing on Cisco IOS, so I know the basics, I just
need to fing the right place to do what I want.

b) make this static route only come up when wlan0 is up?
/etc/sysconfig/network/if-up.d custom script

c) delete the static route when wlan0 goes down?
/etc/sysconfig/network/if-down.d custom script

OK thanks, I can do that.
I already considered that but I was hesitant because perhaps Yast could
already provide this. But you just told me I was on the right path anyway.

--
Amedee
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >