1.初始状态
- [root@ginotest01 src]# ipvsadm -ln
- IP Virtual Server version 1.2.1 (size=4096)
- Prot LocalAddress:Port Scheduler Flags
- -> RemoteAddress:Port Forward Weight ActiveConn InActConn
- TCP 10.130.193.246:80 rr persistent 1800
- -> 172.20.8.61:8089 Masq 1 0 0
2.添加成员
- root@ginotest01 src]# ipvsadm -a -m -t 10.130.193.246:80 -r 172.20.8.62:8098
- [root@ginotest01 src]# ipvsadm -ln
- IP Virtual Server version 1.2.1 (size=4096)
- Prot LocalAddress:Port Scheduler Flags
- -> RemoteAddress:Port Forward Weight ActiveConn InActConn
- TCP 10.130.193.246:80 rr persistent 1800
- -> 172.20.8.62:8098 Masq 1 0 0
- -> 172.20.8.61:8089 Masq 1 0 0
3.禁用成员
- [root@ginotest01 src]# ipvsadm -d -t 10.130.193.246:80 -r 172.20.8.62:8098
- [root@ginotest01 src]# ipvsadm -ln
- IP Virtual Server version 1.2.1 (size=4096)
- Prot LocalAddress:Port Scheduler Flags
- -> RemoteAddress:Port Forward Weight ActiveConn InActConn
- TCP 10.130.193.246:80 rr persistent 1800
- -> 172.20.8.61:8089 Masq 1 0 0