Cluster's ipvsadm command

Source: Internet
Author: User

Ipvsadm: defines the command line tool for managing LVS clusters.

Ipvsadm-A | E-t | u | f service-address [-s scheduler] [-p [timeout] [-M netmask]

-:Add a new virtual server record

-E: Edit virtual server records

-D: delete virtual server records

-C: Clear all virtual server records

-R: Restores virtual server rules.

-S: Save virtual server rules

-T: tcp Cluster

-U: udp Cluster

-P: Session persistence time

-M: Specify the LVS working mode as NAT

-G: Specify the LVS working mode as direct routing.

-I: Specify the LVS working mode as tunnel mode.

[Root @ zhu1 ~] # Ipvsadm-A-t 192.168.70.70: 80-s rr # create a vip [root @ zhu1 ~] # Ipvsadm-a-t 192.168.70.70: 80-r 192.168.70.136-m # specify the actual server and the mode to nat [root @ zhu1 ~] # Ipvsadm-a-t 192.168.70.70: 80-r 192.168.70.20.- m [root @ zhu1 ~] # Ipvsadm-L-n # view cluster configuration information IP Virtual Server version 1.2.1 (size = 4096) Prot LocalAddress: Port Scheduler Flags-> RemoteAddress: Port Forward Weight ActiveConn InActConnTCP 192.168.70.70: 80 rr-> 192.168.70.133: 80 Masq 1 0 0-> 192.168.70.136: 80 Masq 1 0 0

-R rip: Specifies the IP address of the Real Server.

 

[root@zhu1 ~]# ipvsadm --helpipvsadm v1.24 2005/12/10 (compiled with popt and IPVS v1.2.1)Usage:ipvsadm -A|E -t|u|f service-address [-s scheduler] [-p [timeout]] [-M netmask]ipvsadm -D -t|u|f service-addressipvsadm -Cipvsadm -Ripvsadm -S [-n]ipvsadm -a|e -t|u|f service-address -r server-address [options]ipvsadm -d -t|u|f service-address -r server-addressipvsadm -L|l [options]ipvsadm -Z [-t|u|f service-address]ipvsadm --set tcp tcpfin udpipvsadm --start-daemon state [--mcast-interface interface] [--syncid sid]ipvsadm --stop-daemon stateipvsadm -hCommands:Either long or short options are allowed.--add-service     -A        add virtual service with options--edit-service    -E        edit virtual service with options--delete-service  -D        delete virtual service--clear           -C        clear the whole table--restore         -R        restore rules from stdin--save            -S        save rules to stdout--add-server      -a        add real server with options--edit-server     -e        edit real server with options--delete-server   -d        delete real server--list            -L|-l     list the table--zero            -Z        zero counters in a service or all services--set tcp tcpfin udp        set connection timeout values--start-daemon              start connection sync daemon--stop-daemon               stop connection sync daemon--help            -h        display this help messageOptions:--tcp-service  -t service-address   service-address is host[:port]--udp-service  -u service-address   service-address is host[:port]--fwmark-service  -f fwmark         fwmark is an integer greater than zero--scheduler    -s scheduler         one of rr|wrr|lc|wlc|lblc|lblcr|dh|sh|sed|nq,the default scheduler is wlc.--persistent   -p [timeout]         persistent service--netmask      -M netmask           persistent granularity mask--real-server  -r server-address    server-address is host (and port)--gatewaying   -g                   gatewaying (direct routing) (default)--ipip         -i                   ipip encapsulation (tunneling)--masquerading -m                   masquerading (NAT)--weight       -w weight            capacity of real server--u-threshold  -x uthreshold        upper threshold of connections--l-threshold  -y lthreshold        lower threshold of connections--mcast-interface interface         multicast interface for connection sync--syncid sid                        syncid for connection sync (default=255)--connection   -c                   output of current IPVS connections--timeout                           output of timeout (tcp tcpfin udp)--daemon                            output of daemon information--stats                             output of statistics information--rate                              output of rate information--exact                             expand numbers (display exact values)--thresholds                        output of thresholds information--persistent-conn                   output of persistent connection info--sort                              sorting output of service/server entries--numeric      -n                   numeric output of addresses and ports

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Common formats:

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.