Re: How to set ipv4 default route



On Wed, 16 Jul 2014 16:48:24 -0600
Pete Zaitcev <zaitcev redhat com> wrote:

[root localhost ~]# nmcli c mod eth0 ipv4.routes 'default 192.168.129.17'
Error: failed to modify ipv4.routes: invalid IPv4 route 'default'.

Still, NetworkManager.conf(5) contains this tantalizing hint:

           Remember that NetworkManager controls the default
           route, so because the interface is ignored, NetworkManager may
           assign the default route to some other interface.

I know, my shame is going to remain in the list archive forever.
The right way to do it is obvious:

 nmcli c mod eth0 ipv4.addresses '191.168.129.23/28 192.168.129.17'
 nmcli c mod eth0 ipv6.addresses 'fd2d:acfb:74cc:3::7/64 fd2d:acfb:74cc:3::1'

-- P


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