RE: f22: how to change default gateway via line command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----Original Message-----
From: users-bounces@xxxxxxxxxxxxxxxxxxxxxxx [mailto:users-bounces@xxxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Tim
Sent: woensdag 10 juni 2015 3:32
To: users@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
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




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux