How to disable ipv6 on the router

hello and thanks,

i want to disable all ipv6 functionality, on wan and lan, dhcp, dns?

i found this suggestion, will this do it, do i need to do anything else?

uci set 'network.lan.ipv6=off'
uci set 'network.wan.ipv6=off'
uci set 'dhcp.lan.dhcpv6=disabled'
/etc/init.d/odhcpd disable
uci commit

is this needed /etc/init.d/odhcpd disable

do i need to do anything about this?

1 Like

This is not a valid option value for the current release, you should use ipv6=0 instead.

You can simply delete it or disable autostart.

1 Like

You can ask here if the question is related to the current thread.

does this look good, what about odhcpd disable, is the a good idea?

uci set 'network.lan.ipv6=0'
uci set 'network.wan.ipv6=0'
uci set 'dhcp.lan.dhcpv6=disabled'
/etc/init.d/odhcpd disable
uci commit
2 Likes

You should also disable RA, and since disabled is the default value, the config can be simplified:

uci -q delete dhcp.lan.dhcpv6
uci -q delete dhcp.lan.ra
uci commit dhcp
/etc/init.d/odhcpd restart

And restart the network to apply the related changes.

5 Likes

what is RA?

i see that this interface has a ipv6 address?
image

and

image

1 Like

Router Advertisement is a part of the IPv6 Neighbor Discovery.

Make sure to restart the network service, or reboot the router to properly apply the changes.

uci set network.lan.delegate="0"
uci commit network
/etc/init.d/network restart

In this case, you can as well disable odhcpd:

/etc/init.d/odhcpd disable
/etc/init.d/odhcpd stop
5 Likes

i always reboot after each change.

there is still an ipv6 address?
image

1 Like

Delete the IPv6 ULA prefix:

uci -q delete network.globals.ula_prefix
uci commit network
/etc/init.d/network restart
5 Likes

looks good for now.

thanks much,
david

1 Like

I am glad to help! :smile:

3 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.