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#3690 - 6in4 interfaces creation sometimes stuck in an infinite loop #9098

Closed
openwrt-bot opened this issue Mar 19, 2021 · 8 comments
Closed
Labels

Comments

@openwrt-bot
Copy link

openwrt-bot commented Mar 19, 2021

LGA1150:

Router: Linksys WRT1900AC v2
OpenWrt version: SNAPSHOT r16134-c6652a7c94
netifd version: 2021-01-09-c00c8335-1

I have set up multiple 6in4 interfaces for testing, but sometimes some interface won't come up.
The system log is flooded with errors like these:

Fri Mar 19 20:32:58 2021 daemon.notice netifd: Interface 'wan6_4' is setting up now
Fri Mar 19 20:32:58 2021 daemon.notice netifd: wan6_4 (13717): Command failed: Unknown error
Fri Mar 19 20:32:58 2021 daemon.notice netifd: Interface 'wan6_4' is now down
Fri Mar 19 20:32:58 2021 daemon.notice netifd: Interface 'wan6_4' is setting up now
Fri Mar 19 20:32:58 2021 daemon.notice netifd: wan6_4 (13770): Command failed: Unknown error
Fri Mar 19 20:32:58 2021 daemon.notice netifd: Interface 'wan6_4' is now down
Fri Mar 19 20:32:58 2021 daemon.notice netifd: Interface 'wan6_4' is setting up now
Fri Mar 19 20:32:58 2021 daemon.notice netifd: wan6_4 (13794): Command failed: Unknown error
Fri Mar 19 20:32:58 2021 daemon.notice netifd: Interface 'wan6_4' is now down
Fri Mar 19 20:32:58 2021 daemon.notice netifd: Interface 'wan6_4' is setting up now
Fri Mar 19 20:32:58 2021 daemon.notice netifd: wan6_4 (13847): Command failed: Unknown error
Fri Mar 19 20:32:58 2021 daemon.notice netifd: Interface 'wan6_4' is now down
Fri Mar 19 20:32:58 2021 daemon.notice netifd: Interface 'wan6_4' is setting up now
Fri Mar 19 20:32:58 2021 daemon.notice netifd: wan6_4 (13871): Command failed: Unknown error
Fri Mar 19 20:32:58 2021 daemon.notice netifd: Interface 'wan6_4' is now down

And it also hogs CPU.

An workaround is manually remove the tunnel with iproute2, then restart the interface:

ip tun del 6in4-wan6_4
ifup wan6_4

@openwrt-bot
Copy link
Author

openwrt-bot commented May 29, 2021

LGA1150:

Update: It seems only kernel 5.10 has this issue.

@openwrt-bot
Copy link
Author

openwrt-bot commented Jul 18, 2021

Ansuel:

Can also confirm... I have this problem currently with dsa and he-tunnel (that i think is 6in4 ?)

@openwrt-bot
Copy link
Author

openwrt-bot commented Jul 18, 2021

nbd:

Can you please post a /etc/config/network that reproduces this?

@openwrt-bot
Copy link
Author

openwrt-bot commented Jul 18, 2021

Ansuel:

On my side it's really the basic network config with just lan bridge and the tunnel setup. nothing special at all. The problem is that thinks works for a while and then chase to work... I currently have a broken condition so if you have some command or you need some data, I can give you them very quickly.

@openwrt-bot
Copy link
Author

openwrt-bot commented Jul 18, 2021

Ansuel:

My current network config

config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'

config globals 'globals'
option ula_prefix 'fd49:5134:465f::/48'
option packet_steering '1'

config interface 'lan'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.2.1'
option stp '1'
option netmask '255.255.255.0'
option ifname 'lan1 lan2 lan3 lan4 tap_ext-br tap_rome-br tap_taranto-br'

config interface 'guest'
option proto 'static'
option netmask '255.255.255.0'
option _orig_ifname 'wlan1-1'
option _orig_bridge 'false'
option type 'bridge'
option ipaddr '192.168.20.1'
option ip6assign '64'
option ip6hint '0002'

config interface 'wan'
option ifname 'wan'
option proto 'pppoe'
option ipv6 'auto'
option username 'asda'
option password 'as'

config interface 'hetunnel'
option proto '6in4'
option peeraddr 'REDACTED'
option ip6addr 'REDACTED/64'
option tunnelid '550591'
option username 'REDACTED'
option password 'REDACTED'
list ip6prefix 'REDACTED::/48'

config interface 'modem'
option proto 'static'
option ifname 'wan'
option ipaddr '192.168.1.5'
option netmask '255.255.255.0'

config route
option interface 'lan'
option target '192.168.3.0/24'
option netmask '255.255.255.0'
option gateway '192.168.2.254'

@openwrt-bot
Copy link
Author

openwrt-bot commented Jul 24, 2021

Ansuel:

Any news on this?

@openwrt-bot
Copy link
Author

openwrt-bot commented Jul 27, 2021

Ansuel:

I tried updating iproute2 to the latest version 5.13 and now it doesn't work from the boot...

@openwrt-bot
Copy link
Author

openwrt-bot commented Aug 2, 2021

Ansuel:

@LGA1150 Can you test if this fix the problem?
#4418

(notice the tunnel is not removed on interface teardown (or interface restart))

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