Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3687 - netifd always requires a netmask for IPv6 routes, even when it's only a single IP #8712

Closed
openwrt-bot opened this issue Mar 17, 2021 · 1 comment
Labels

Comments

@openwrt-bot
Copy link

eriktews:

Usually when IPv4 routes are configured in OpenWRT, it's possible to specify a route for a single target IP such as:

config route option target '8.8.8.8' option gateway '192.168.2.3' option interface 'lan'

However, when you specify a route for IPv6, then you always have to specify a netmask, even when you only target a specific IP:

config route6 option target '2001:4860:4860::8844/128' option table 'vpn' option gateway 'fe80::1' option interface 'lan'

I think the problem is somewhere around here:

It would be nice when netifd would also allow just the IPv6 address without the trailing ///128// here, which would make the v4 an v6 routes a bit more consistent.

@openwrt-bot
Copy link
Author

dedeckeh:

network.@Route6[0]=route6
network.@Route6[0].target='2001:4860:4860::8844'
network.@Route6[0].interface='lan'
network.@Route6[0].gateway='fe80::1'

ip -6 route show
2001:4860:4860::8844 via fe80::1 dev br-lan proto static metric 1024 pref medium

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant