Closed jiangyibo closed 1 year ago
# ipvsadm --help| grep local
ipvsadm -P|Q -t|u|q|f service-address -z local-address
--add-laddr -P add local address
--del-laddr -Q del local address
--get-laddr -G get local address
@ywc689 可以使用同个localip进行多个端口的转发吗?
@a2888409 兄弟,你解决了吗
@ywc689 可以使用同个localip进行多个端口的转发吗?
支持。该问题是local IP没有正确配置
[root@S0512 bin]# cat setup.sh
!/bin/sh
VIP=119.188.210.149 LIP=119.188.210.240 RS=119.188.210.128 ./dpip vlan add dpdk0.100 link dpdk0 id 100 ./dpip addr add ${VIP}/24 dev dpdk0.100 ./ipvsadm -A -t ${VIP}:8081 -s rr ./ipvsadm -a -t ${VIP}:8081 -r ${RS}:8082 -b
VIP=119.188.210.159 LIP=119.188.210.240 RS=119.188.210.128 ./dpip vlan add dpdk0.100 link dpdk0 id 100 ./dpip addr add ${VIP}/24 dev dpdk0.100 ./ipvsadm -A -t ${VIP}:8083 -s rr ./ipvsadm -a -t ${VIP}:8083 -r ${RS}:8083 -b
VIP 是2个 ,LIP是同一个,这样就只能通一个,可以两个都通的吗