alibaba / kt-connect

A toolkit for Integrating with your kubernetes dev environment more efficiently
https://alibaba.github.io/kt-connect/#/
GNU General Public License v3.0
1.48k stars 230 forks source link

Failed to add ip addr 241.255.0.0 to tun device #436

Open ldy24555 opened 1 year ago

ldy24555 commented 1 year ago

Describe the bug 使用ktctl connect --debug 连接k8s集群不知为何突然连接不了了 查看日志和源代码发现其执行 netsh interface ipv4 add address "KtConnectTunnel" "241.254.0.0" "255.255.0.0" 配置路由有问题, 单独将其拿出来执行 会报参数错误。我排查出netsh添加c类ip地址是可以的 ,但d类和e类不行。这导致我工具使用不了

Log DBG Task C:\Windows\system32\netsh.exe with args [netsh interface ipv4 add address KtConnectTunnel 241.255.0.0 255.255.0.0] WRN Failed to add ip addr 241.255.0.0 to tun device

Environment (please complete the following information):