Skip to content

Instantly share code, notes, and snippets.

@moe93
Forked from nabakdev/disable-ipv6-openwrt.md
Created December 19, 2023 05:20
Show Gist options
  • Save moe93/315bfb9f223d2fd87a78cd07a4dd1696 to your computer and use it in GitHub Desktop.
Save moe93/315bfb9f223d2fd87a78cd07a4dd1696 to your computer and use it in GitHub Desktop.
disable IPV6 openwrt
uci set 'network.lan.ipv6=0'
uci set 'network.wan.ipv6=0'
uci set 'dhcp.lan.dhcpv6=disabled'

# Disable RA and DHCPv6 so no IPv6 IPs are handed out
uci -q delete dhcp.lan.dhcpv6
uci -q delete dhcp.lan.ra

# Disable the LAN delegation
uci set network.lan.delegate="0"

# Delete the IPv6 ULA Prefix
uci -q delete network.globals.ula_prefix

# Disable odhcpd
/etc/init.d/odhcpd disable
/etc/init.d/odhcpd stop

# Save changes
uci commit
/etc/init.d/network restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment