-
Notifications
You must be signed in to change notification settings - Fork 682
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 模式下 ipvsadm -S 与 ipvsadm -R 的问题 #15
Comments
ipvsadm -S -n 2016-01-08 13:32 GMT+08:00 sope [email protected]:
|
使用ipvsadm -R恢复规则时还是报错。 [root@lvs ~]# ipvsadm -S -n -A -t 10.10.11.77:80 -s rr -a -t 10.10.11.77:80 -r 10.10.11.66:80 (null) -w 100 -A -t 10.10.11.78:80 -s rr -a -t 10.10.11.78:80 -r 10.10.11.66:80 (null) -w 100 [root@lvs ~]# ipvsadm -S -n > /tmp/conf [root@lvs ~]# cat /tmp/conf -A -t 10.10.11.77:80 -s rr -a -t 10.10.11.77:80 -r 10.10.11.66:80 (null) -w 100 -A -t 10.10.11.78:80 -s rr -a -t 10.10.11.78:80 -r 10.10.11.66:80 (null) -w 100 [root@lvs ~]# ipvsadm -C [root@lvs ~]# ipvsadm -l IP Virtual Server version 1.2.1 (size=4194304) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn [root@lvs ~]# ipvsadm -R < /tmp/conf unexpected argument (null) |
应该是ipvsadm-save还是使用的lvs官方方法,所以在重新编译的fullnat中ipvsadm-save就不支持-b的参数,导致导出规则之后出现(null),目前我的方式是把规则导出文件中的(null)替换为-b之后再导入就不会有报错了。 |
我现在通过ipvsadm来进行当前规则的导入与导出时碰到了问题,操作如下:
这个是不是操作不对引起的?
The text was updated successfully, but these errors were encountered: