Where is nmcli?

Hi there, I cannot seem to find how to install nmcli under openwrt

I am trying real hard for the router have a persistent behavior towards the "disable ipv6 state"

the ipv6 will be disabled when reload /etc/sysctl.conf via /etc/rc.local


I did remove odhcp6c and odhcpd-ipv6only

however when connect the wan port (eth1)

IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link become ready

obviously sth bypass the sysctl setting and trigger the ipv6

cat /proc/sys/net/ipv6/conf/eth1/disable_ipv6

what is it???!!! can I disable it for good???

this thing may have sth to do with netifd, because if I kill the netifd I will get the same ipv6 address under eth1

I found the potential solution

nmcli conn show
nmcli connection modify eth1 ipv6.method ignore

however I cannot really debug further without nmcli

how can I install nmcli ???

any help would be appreciated

here is the rom of my router


OpenWrt does not use network-manager, and -for quite obvious reasons- it most likely never will.

1 Like

#1, nmcli is like a thing in fedora, you wont find it in openWRT

#2, if you hate/dislike/dont need ipv6 (my ISP doesnt support it):

this is sufficient to completely disable ipv6
in v18 and v22... I skipped the inbtwns

Step One:

root@openWRT cat /etc/hosts | head localhost

###::1 localhost ip6-localhost ip6-loopback
###ff02::1 ip6-allnodes
###ff02::2 ip6-allrouters

Step Two:

root@openWRT cat /etc/rc.local
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

echo "disabling IPv6"
sysctl -w net.ipv6.conf.all.disable_ipv6=1
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
sysctl -w net.ipv6.conf.default.disable_ipv6=1

exit 0

Boo-Yah, no more ipv6