linux notes -20080605

来源:互联网 发布:淘宝迪奥香水代购 编辑:程序博客网 时间:2024/05/17 02:21
    1, enable forwarding:
       usage: Turn on IP forwarding to allow Linux computer to act as a gateway or router.
       howto: echo "1" > /proc/sys/net/ipv4/ip_forward

  2, enable virtual server:
    usage:
    howto:
                (1), Create virtual service and choose scheduler for http (80) and ftp (21)
                        ipvsadm -A -t 172.16.91.88:80 -s wlc                        
                        ipvsadm -A -t 172.16.91.88:21 -s wrr     
                (2), Configure load balancing cluser:                        
                        ipvsadm -a -t 172.16.91.88:80 -r 176.168.1.1:80 -i
                        ipvsadm -a -t 172.16.91.88:80 -r 176.168.1.2:80 -i -w 2
                        ipvsadm -a -t 172.16.91.88:21 -r 176.168.1.3:21 -i
原创粉丝点击