Skip to content
Contents
GuidesOpenWrt

LuCI accepts an invalid subnet mask. Check the prefix that was actually saved

The 1s in the subnet mask must be consecutive. To configure /31, first verify the full mask, then check the final prefix length saved by the system.

Applies to · LuCI · IPv4 · /31

What to check

When entering a target prefix on draft or test devices, compare the page-saved value with the kernel address.

Connect over Ethernet and run the following commands in an SSH session on the router.

ip -4 addr show
ip -4 route show

How to interpret the result

255.255.255.254 is a contiguous /31 mask. The ones in 255.25.255.254 are discontinuous. Correct the latter before saving. If the interface already accepted it, use the existing management connection to inspect the active address and route, then restore the original prefix.

Verify and recover

Read the saved prefix from the running interface and confirm reachability from the expected peer. Restore the saved address through the retained management connection if the prefix is wrong.

Related guide · Troubleshoot OpenWrt IPv6 prefix delegation when only WAN has IPv6

Explore hardware

Comments