-----Original Message-----
From: users-boun...@lists.fedoraproject.org 
[mailto:users-boun...@lists.fedoraproject.org] On Behalf Of Tim
Sent: woensdag 10 juni 2015 3:32
To: users@lists.fedoraproject.org
Subject: Re: f22: how to change default gateway via line command

On Wed, 2015-06-10 at 00:22 +0200, Dario Lesca wrote:
> But when I restart NM the gateway change again then this (stop NM) is 
> not a valid solution for me.

For what it's worth, you're trying two mutually exclusive commands, as far as I 
can see.

NetworkManager automatically configures things as instructed by a DHCP server, 
or self-configures a link-local address, or activates a chosen user-configured 
network setting (the later may be an option for you, but you wanted to do stuff 
by the command line interface, and I'm unfamiliar with controlling 
NetworkManager that way).  I've certainly made new custom settings in the 
NetworkManager GUI, and chosen them to force manual changes to my network.

Using an IP command temporarily changes the current operating parameters, but 
doesn't change any stored configuration.

NetworkManager's next operation will do what it wants to do, again.
Overriding what you may have temporarily changed.

I would have thought that if you were making temporary changes, this wouldn't 
have mattered.  But it sounds like you want to make permanent changes, despite 
initially talking about making temporary ones, and going about it the wrong way.

--
tim@localhost ~]$ uname -rsvp

Linux 3.19.8-100.fc20.i686 #1 SMP Tue May 12 17:42:35 UTC 2015 i686

All mail to my mailbox is automatically deleted, there is no point trying to 
privately email me, I will only read messages posted to the public lists.

George Orwell's '1984' was supposed to be a warning against tyranny, not a set 
of instructions for supposedly democratic governments.

 
-----Original Message-----

Some additional thoughts.
Anything you do on the command line, is volatile thus won't survive a reboot.
It is tempting to catch any manually settings in a script, running after 
startup has completed.
Often this works, though with network-settings there is a catch22...
If you use dhcp, and the lease-renewal comes around, your manual (or scripted) 
settings, like v4/v6 addresses, (default-)routing, dns/ntp-settings are gone.
Mostly dhcp-settings are set to one or several days, so it seems static, 
But when you set on the dhcp-server the lease-time to 5 minutes, you see the 
effects.
It can cause some very hard to detect unwanted behavior.

Hw



______________________________________________________________________
Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet 
de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u 
verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat 
aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband 
houdt met risico's verbonden aan het electronisch verzenden van berichten.

This message may contain information that is not intended for you. If you are 
not the addressee or if this message was sent to you by mistake, you are 
requested to inform the sender and delete the message. The State accepts no 
liability for damage of any kind resulting from the risks inherent in the 
electronic transmission of messages.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to