> For the complete documentation index, see [llms.txt](https://pshizhsysu.gitbook.io/linux/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pshizhsysu.gitbook.io/linux/lvs/ipvsadmming-ling.md).

# Ipvsadm命令

```
ipvsadm -L     # 列举所有规则
ipvsadm -A -t 192.168.10.10:80 -s rr -p 600     #添加地址为192.168.10.10:80的虚拟服务，指定调度算法为轮转
ipvsadm -a -t 192.168.10.10:80 -r 192.168.10.1:80 -g     #添加真实服务器，指定传输模式为DR
ipvsadm -a -t 192.168.10.10:80 -r 192.168.10.2:80 -m     #添加真实服务器，指定传输模式为NAT
ipvsadm -A -t 192.168.10.188:21 -s wlc
```
