Ipvsadm Command Reference

Source: Internet
Author: User
The ipvsadm command reference was submitted by wensong on Thursday, 2006-02-1619: 05 for the command reference of ipvsadm, and a simple translation was made based on your own experience, we hope to help ipvsadm users. To help you better understand this command manual, let's take a look at the several terminologies used in the manual to briefly refer to the ipvsadm command.
Submitted by wensong on Thursday
For the Command Reference of ipvsadm, and based on your own experience, a simple translation is provided.
It helps ipvsadm users.
In order to better understand this command manual, we will briefly introduce several terms used in this manual.
Below:
1. virtual-service-address: indicates the ip address of the virtual server.
2. real-service-address: the ip address of the real server.
3. sched: scheduling method
(Lna@networksbase.com translation ipvsadm v1.21 April 2004)
The usage and format of ipvsadm are as follows:
Ipvsadm-A | E-t | u | f virutal-service-address: port [-s scheduler] [-p
[Timeout] [-M netmask]
Ipvsadm-D-t | u | f virtual-service-address
Ipvsadm-C
Ipvsadm-R
Ipvsadm-S [-n]
Ipvsadm-a | e-t | u | f service-address: port-r real-server-address: port
[-G | I | m] [-w weight]
Ipvsadm-d-t | u | f service-address-r server-address
Ipvsadm-L | l [options]
Ipvsadm-Z [-t | u | f service-address]
Ipvsadm -- set tcp tcpfin udp
Ipvsadm -- start-daemon state [-- mcast-interface]
Ipvsadm -- stop-daemon
Ipvsadm-h
Command option explanation:
There are two command option formats, long and short, with the same meaning. In actual use, either of them can be
.
-A -- add-service adds A new virtual server record in the virtual server table of the kernel. Also
Is to add a new virtual server.
-E -- edit-service: edit a virtual server record in the kernel virtual server table.
-D -- delete-service: delete a virtual server record in the kernel virtual server table.
-C -- clear clears all records in the kernel virtual server table.
-R -- restore virtual server rules
-S -- save saves the virtual server rule and outputs the readable format of the-R option
-A -- add-server: add a new real server to a record in the kernel virtual server table
Record. That is, add a new real server to a virtual server.
-E -- edit-server: edit a real server record in a virtual server record
-D -- delete-server: delete a real server record in a virtual server record.
-L |-l -- list displays the kernel virtual server table
-Z -- zero virtual service table counters are cleared (the current number of connections is cleared, etc)
-- Set tcp tcpfin udp sets the connection timeout value
-- Start-daemon: start the synchronization daemon. It can be followed by a master or backup.
Ming LVS Router is a master or backup. You can also use the keepalived
VRRP function.
-- Stop-daemon: stop synchronization daemon
-H -- help: displays help information.
Other options:
-T -- tcp-service-address indicates that the virtual server provides the tcp service.
[Vip: port] or [real-server-ip: port]
-U -- udp-service-address indicates that the virtual server provides udp services.
[Vip: port] or [real-server-ip: port]
-F -- fwmark-service fwmark indicates the service type marked by iptables.
-S -- the scheduling algorithm used by scheduler, which has the following options:
Rr | wrr | lc | wlc | lblc | lblcr | dh | sh | sed | nq,
The default scheduling algorithm is: wlc.
-P -- persistent [timeout] persistent and stable service. This option means that it is from the same customer.
Multiple requests from the same real server will be processed. The default timeout value is 300 seconds.
-M -- netmask persistent granularity mask
-R -- real-server-address Real Server [real-server: port]
-G -- gatewaying specifies that the LVS working mode is the direct routing mode (also the default LVS mode)
-I -- ipip: specify the LVS working mode as tunnel mode.
-M -- masquerading: specify the LVS working mode as NAT
-W -- weight actual server weight
-- Mcast-interface: specifies the multicast synchronization interface.
-C -- connection displays the current connection of LVS, for example, ipvsadm-L-c.
-- Timeout: Display the timeout value of tcp tcpfin udp, for example, ipvsadm-L -- timeout.
-- Daemon: displays the synchronization daemon status.
-- Stats display statistics
-- Rate: Display rate Information
-- Sort sorts and outputs virtual servers and real servers
-- Numeric-n: number of output IP addresses and ports
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.