f22: how to change default gateway via line command

Tim ignored_mailbox at yahoo.com.au
Wed Jun 10 01:32:38 UTC 2015


On Wed, 2015-06-10 at 00:40 +0200, Dario Lesca wrote:
> [lesca at 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 empty, like many other
> "ipv4.*" flags:
>  
> [lesca at dodo ~]$ nmcli conn show p6p1 | grep ipv4.
> ipv4.method:                            auto
> ipv4.dns:                               
> ipv4.dns-search:                        
> ipv4.addresses:                         
> ipv4.gateway:                           --
> ipv4.routes:                            
> ipv4.route-metric:                      -1
> ipv4.ignore-auto-routes:                no
> ipv4.ignore-auto-dns:                   no
> ipv4.dhcp-client-id:                    --
> ipv4.dhcp-send-hostname:                yes
> ipv4.dhcp-hostname:                     --
> ipv4.never-default:                     no
> ipv4.may-fail:                          yes
>  
> Some other suggest?

Obvious thing to try:  At the same time as manually setting your
gateway, also try manually setting your local address.

-- 
tim at 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.



More information about the users mailing list