Mailinglist Archive: opensuse-kde (218 mails)

< Previous Next >
Re: [opensuse-kde] Re: Network Manager - how to control automatic connection?
On Mon, 28 Mar 2011 16:33, Giacomo Comes <comes@...> wrote:

On Sun, Mar 27, 2011 at 07:01:28PM -0600, Don Raboud wrote:
Hi all,

Shortened question:

Is there a way to force Network Manager to autoconnect using a fixed IP
address? There is a conection present called "Auto eth0" which takes
precedence over my defined connection "Fixed IP".

I had the same problem some time ago (it was with opensuse 11.1) and I didn't
find any solution already available. Therefore I created my own.

Step one: create the executable script /etc/NetworkManager/dispatcher.d/ipalias
with this content
<snip>
I have created another executable script: /root/bin/check_network_alias
with this content
<snip>
and added this line in root's crontab:
*/10 * * * * /root/bin/check_network_alias

With this setup I have a reliable fixed ip address using
networkmanager.

Last thing. This works with 11.3. Not tested yet with 11.4

Bravo! Even better than the dhcpconfig hack.

Now, not to rain into anyones parade, but:

1. why is there no detailed documentation of the whole "Network Manager"?
- see for example the http protocol finely documented: when what is
done, and how to handle errors and edge-cases
- even /sbin/ip is better documented
- the involvment of dhcp is never clearly documented
- neither is /etc/NetworkManager/dispatcher*

2. without forthing your way through the whole source-code, a user will
never find solutions for the actual edge-case the user has, by
him/herself. Even Google doesn't help in most of this.

3. This is NOT an openSUSE specific problem. Other distros fight with this
too. Never the less there is NO solution.

4. This is NOT an KDE / GNOME / XFCE specific problem, well may be on the
front-end side. but the 'core' is not desktop bound.

Sorry for the rant, but I'm not convinced that "Network Manager", as it
is, could be called a better solution than "traditional" ifup/ifdown.

To me it's a source of frustation for every non-standard situation.

--
Yamaban, who feels cleansed after this rant, out.
--
To unsubscribe, e-mail: opensuse-kde+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-kde+help@xxxxxxxxxxxx

< Previous Next >