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'
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 ''
 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]