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

2015-06-12 Thread Dario Lesca
Il giorno ven, 12/06/2015 alle 15.20 +0930, Tim ha scritto: Or, modify your DHCP client configuration. When into f22 / NM has disabled the ability to change the default gateway or any value obtained from DHCP via the command line, it had to give the opportunity in to control panel to set up a

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

2015-06-11 Thread Dario Lesca
Il giorno mar, 09/06/2015 alle 15.50 -0700, Rick Stevens ha scritto: I think you have to change the method to manual, then set the IP address and route: sudo nmcli conn mod p6p1 ipv4.method manual ipv4.address 192.168.61.80/24 ipv4.gateway 192.168.61.254 The auto method for an

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

2015-06-11 Thread Rick Stevens
On 06/11/2015 02:42 AM, Dario Lesca wrote: Il giorno mar, 09/06/2015 alle 15.50 -0700, Rick Stevens ha scritto: I think you have to change the method to manual, then set the IP address and route: sudo nmcli conn mod p6p1 ipv4.method manual ipv4.address 192.168.61.80/24 ipv4.gateway

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

2015-06-11 Thread Dario Lesca
Il giorno gio, 11/06/2015 alle 11.42 +0200, Dario Lesca ha scritto: But now it appeared a new problem, the IP set with nmcli, remain set also when I have put the ipv4.method to auto, disconnect then reconnect the cabled and restart NetworkManager. it seems that the change is permanent,

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

2015-06-11 Thread Dario Lesca
Il giorno gio, 11/06/2015 alle 10.00 -0700, Rick Stevens ha scritto: Not sure about this, but you could try the Automatic (DHCP) option under the IPV4 settings, then click Routes... and add a route with address 0.0.0.0, netmask 0.0.0.0, gateway of your choosing and a metric of 1. Also make

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

2015-06-11 Thread Rick Stevens
On 06/11/2015 01:18 PM, Dario Lesca wrote: Il giorno gio, 11/06/2015 alle 10.00 -0700, Rick Stevens ha scritto: Not sure about this, but you could try the Automatic (DHCP) option under the IPV4 settings, then click Routes... and add a route with address 0.0.0.0, netmask 0.0.0.0, gateway of your

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

2015-06-11 Thread Dario Lesca
Il giorno gio, 11/06/2015 alle 13.27 -0700, Rick Stevens ha scritto: Try using the Automatic (DHCP) Address Only option. This option (not present into gnome configuration panel but only into nm-connection-editor) do not set the DNS, an for me this is a problem. Keep in mind that you're using

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

2015-06-11 Thread Tim
On Wed, 2015-06-10 at 09:16 +0200, j.witvl...@mindef.nl wrote: 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

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

2015-06-10 Thread J.Witvliet
-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

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

2015-06-09 Thread James Hogarth
On 8 Jun 2015 13:12, Dario Lesca d.le...@solinos.it wrote: Il giorno sab, 06/06/2015 alle 21.43 +0300, Alchemist ha scritto: Couple of possible solutions Thanks Alchemist, one of that sure probably partially solves my problem. But the question is: Why in f22 (or new version of

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

2015-06-09 Thread Ed Greshko
On 06/09/15 15:26, James Hogarth wrote: On 8 Jun 2015 13:12, Dario Lesca d.le...@solinos.it mailto:d.le...@solinos.it wrote: Il giorno sab, 06/06/2015 alle 21.43 +0300, Alchemist ha scritto: Couple of possible solutions Thanks Alchemist, one of that sure probably partially solves

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

2015-06-09 Thread Rick Stevens
On 06/09/2015 12:44 AM, Ed Greshko wrote: On 06/09/15 15:26, James Hogarth wrote: On 8 Jun 2015 13:12, Dario Lesca d.le...@solinos.it mailto:d.le...@solinos.it wrote: Il giorno sab, 06/06/2015 alle 21.43 +0300, Alchemist ha scritto: Couple of possible solutions Thanks Alchemist, one of

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

2015-06-09 Thread Ed Greshko
On 06/10/15 02:34, Rick Stevens wrote: you have to specify the connection name, not the interface name. Connection names are shown via nmcli connection show --active under the NAME column. On my laptop: [root@f22k ~]# nmcli connection show --active NAMEUUID

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

2015-06-09 Thread Dario Lesca
Il giorno mar, 09/06/2015 alle 15.44 +0800, Ed Greshko ha scritto: Or not [root@f22k ~]# nmcli conn mod enp0s3 ipv4.gateway 192.168.1.18 Error: Failed to modify connection 'enp0s3': ipv4.gateway: gateway cannot be set if there are no addresses configured FWIW, on this system

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

2015-06-09 Thread Rick Stevens
On 06/09/2015 03:40 PM, Dario Lesca wrote: Il giorno mar, 09/06/2015 alle 15.44 +0800, Ed Greshko ha scritto: Or not [root@f22k ~]# nmcli conn mod enp0s3 ipv4.gateway 192.168.1.18 Error: Failed to modify connection 'enp0s3': ipv4.gateway: gateway cannot be set if there are no addresses

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

2015-06-09 Thread Dario Lesca
Il giorno lun, 08/06/2015 alle 21.40 +, Martin Cigorraga ha scritto: Hello guys, Dario, did you try stopping the NetworkManager services to then try to do your stuff? I didn't tried this yet but I suppose it should work... Yes, it work. I can change default gateway. But when I restart NM

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

2015-06-09 Thread Tim
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

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

2015-06-09 Thread Tim
On Wed, 2015-06-10 at 00:40 +0200, Dario Lesca wrote: [lesca@dodo ~]$ LANG=c sudo nmcli conn mod p6p1 ipv4.gateway 192.168.61.250 Error: Failed to modify connection 'p6p1': ipv4.gateway: gateway cannot be set if there are no addresses configured This occur why the field ipv4.addresses is

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

2015-06-08 Thread Martin Cigorraga
Hello guys, Dario, did you try stopping the NetworkManager services to then try to do your stuff? I didn't tried this yet but I suppose it should work... Regards. -Martin On Mon, Jun 8, 2015, 09:12 Dario Lesca d.le...@solinos.it wrote: Il giorno sab, 06/06/2015 alle 21.43 +0300, Alchemist ha

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

2015-06-08 Thread Dario Lesca
Il giorno sab, 06/06/2015 alle 21.43 +0300, Alchemist ha scritto: Couple of possible solutions Thanks Alchemist, one of that sure probably partially solves my problem. But the question is: Why in f22 (or new version of NetworkManager?) it has removed the option to change the default gateway via

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

2015-06-06 Thread Paul Cartwright
On 06/06/2015 05:32 AM, Dario Lesca wrote: Into Fedora 22 workstation, it's possible to change temporarily via command line the default gateway, to test another gateway, when I have setup the network via DHCP? What is the best command line to use? Many thanks try : $ man route *DESCRIPTION

f22: how to change default gateway via line command

2015-06-06 Thread Dario Lesca
Into Fedora 22 workstation, it's possible to change temporarily via command line the default gateway, to test another gateway, when I have setup the network via DHCP? What is the best command line to use? Many thanks -- Dario Lesca (inviato dal mio Linux Fedora 22 con Gnome 3.16) -- users

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

2015-06-06 Thread Dario Lesca
Il giorno sab, 06/06/2015 alle 07.01 -0400, Paul Cartwright ha scritto: On 06/06/2015 05:32 AM, Dario Lesca wrote: Into Fedora 22 workstation, it's possible to change temporarily via command line the default gateway, to test another gateway, when I have setup the network via DHCP?

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

2015-06-06 Thread Alchemist
2015-06-06 21:03 GMT+03:00 Dario Lesca d.le...@solinos.it: Il giorno sab, 06/06/2015 alle 07.01 -0400, Paul Cartwright ha scritto: On 06/06/2015 05:32 AM, Dario Lesca wrote: Into Fedora 22 workstation, it's possible to change temporarily via command line the default gateway, to test