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

FullNat 如何删除一个 LoclIP #958

Open
selboo opened this issue May 9, 2024 · 1 comment
Open

FullNat 如何删除一个 LoclIP #958

selboo opened this issue May 9, 2024 · 1 comment
Assignees
Labels
issue/solved the issue is solved, and would be closed later

Comments

@selboo
Copy link

selboo commented May 9, 2024

[root@localhost ~]# ipvsadm -Ln
IP Virtual Server version 1.9.6 (size=0)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  10.238.40.11:80 rr
  -> 192.168.1.5:80               FullNat 1      0          0
  -> 192.168.1.6:80               FullNat 1      0          0

[root@localhost ~]# ipvsadm -G
VIP:VPORT            TOTAL    SNAT_IP              CONFLICTS  CONNS
10.238.40.11:80      2
                              192.168.1.3          0          0
                              192.168.1.4          0          0
[root@localhost ~]# ipvsadm --add-laddr -z 192.168.1.9 -t 10.238.40.11:80 -F dpdk1

[root@localhost ~]# ipvsadm -G
VIP:VPORT            TOTAL    SNAT_IP              CONFLICTS  CONNS
10.238.40.11:80      3
                              192.168.1.3          0          0
                              192.168.1.4          0          0
                              192.168.1.9          0          0

如何删除 192.168.1.9, 调用 --del-laddr 参数的时候,有错误

[root@localhost ~]# ipvsadm --del-laddr -z 192.168.1.9 -t 10.238.40.11:80 -F dpdk1
[sockopt_msg_recv] errcode set in socket msg#1 header: no service(-17)
Success

以下 dpvs.log 日志

MSGMGR: [sockopt_msg_send:msg#SOCKOPT_SET_LADDR_DEL] errcode set in sockopt msg reply: no service
IFA: [00] ifa_free: del ifaddr 192.168.1.9
SERVICE: dp_vs_service_hashkey: IP proto not support.
@ywc689 ywc689 self-assigned this May 22, 2024
@ywc689 ywc689 added the issue/to-solve issues await answers tobe solved label May 22, 2024
@leogoing
Copy link

leogoing commented Jun 5, 2024

#969 已修复

@ywc689 ywc689 added issue/solved the issue is solved, and would be closed later and removed issue/to-solve issues await answers tobe solved labels Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/solved the issue is solved, and would be closed later
Projects
None yet
Development

No branches or pull requests

3 participants