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

hnat导致通过vlan划分2个lan,第2个lan访问wan的转发速度极慢 #34

Closed
ubitsp opened this issue Dec 25, 2022 · 7 comments
Closed
Labels
documentation Improvements or additions to documentation

Comments

@ubitsp
Copy link

ubitsp commented Dec 25, 2022

通过vlan的方式划分了2个lan,再由mwan分流,多wan是通过单线多拨macvlan创建的接口, lan1 to wan1,wan2 速度都正常,但是lan2 to wan1,wan2速度都极慢,上传10mbps,下载只有2mbps,通过
echo 0 > /sys/kernel/debug/hnat/hook_toggle 关闭硬件加速后转发速度恢复正常

@ubitsp ubitsp changed the title hnat导致通过vlan划分2个lan,第3个lan访问wan的转发速度极慢 hnat导致通过vlan划分2个lan,第2个lan访问wan的转发速度极慢 Dec 25, 2022
@ubitsp
Copy link
Author

ubitsp commented Dec 25, 2022

通过vlan的方式划分2个wan,症状和情况一样,vlan划分情况如下图 vlan12是lan2, vlan13 vlan14是wan1 wan2。lan2 to lan1的速率也正常,只有转发到wan不太正常,猜测和pppoe有关系
image
image

@lalasou
Copy link

lalasou commented Dec 25, 2022

通过vlan的方式划分2个wan,症状和情况一样,vlan划分情况如下图 vlan12是lan2, vlan13 vlan14是wan1 wan2

image

image

你好 像我光猫路由器一根线 单线复用回传 光猫lan

image

这样 4031那个 cpu eth1 是untag 还是应该tag啊

@ubitsp
Copy link
Author

ubitsp commented Dec 25, 2022

通过vlan的方式划分2个wan,症状和情况一样,vlan划分情况如下图 vlan12是lan2, vlan13 vlan14是wan1 wan2
image
image

你好 像我光猫路由器一根线 单线复用回传 光猫lan

image

这样 4031那个 cpu eth1 是untag 还是应该tag啊

要不要tag 取决于你要不要多建立一个vlan,如果要建立,那就tag,你这种情况应该不用

@lalasou
Copy link

lalasou commented Dec 25, 2022

谢谢👍🙏

@MeIsReallyBa
Copy link

测试了下,lan2的那个接口你勾上桥接应该就正常了。
image
image

@ubitsp
Copy link
Author

ubitsp commented Mar 7, 2023

接口你勾上桥接应该就正常

我看了下,好像没有 物理设置-桥接接口这个选项

@ubitsp
Copy link
Author

ubitsp commented Mar 7, 2023

测试了下,lan2的那个接口你勾上桥接应该就正常了。

非常感谢,按照你的思路测试正常了, 我这个界面有点不一样,需要新建网桥设备

image

@ubitsp ubitsp closed this as completed Mar 7, 2023
@hanwckf hanwckf added the documentation Improvements or additions to documentation label Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants