posts - 68, comments - 19, trackbacks - 0, articles - 1

          導航

          <2018年9月>
          2627282930311
          2345678
          9101112131415
          16171819202122
          23242526272829
          30123456

          留言簿

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          評論排行榜

          keepalived高可用配置

          Posted on 2018-09-16 15:35 viery 閱讀(116) 評論(0)  編輯  收藏
          主機: 1 [root@c01 etc]# cat /etc/keepalived/keepalived.conf 
           2 ! Configuration File for keepalived
           3 
           4 global_defs {
           5    notification_email {
           6     15776275@qq.com
           7    }
           8    notification_email_from Alexandre.Cassen@firewall.loc
           9    smtp_server 127.0.0.1
          10    smtp_connect_timeout 30
          11    router_id c01
          12 }
          13 
          14 vrrp_instance VI_1 {
          15     state MASTER
          16     interface eth0
          17     virtual_router_id 55
          18     priority 150
          19     advert_int 1
          20     authentication {
          21         auth_type PASS
          22         auth_pass 1111
          23     }
          24     virtual_ipaddress {
          25         192.168.38.166/24 dev eth0 label eth0:1
          26     }
          27 }


          備用機:
          [root@c01 etc]# cat /etc/keepalived/keepalived.conf 
          ! Configuration File for keepalived

          global_defs {
             notification_email {
              15776275@qq.com
             }
             notification_email_from Alexandre.Cassen@firewall.loc
             smtp_server 127.0.0.1
             smtp_connect_timeout 30
             router_id c04
          }

          vrrp_instance VI_1 {
              state BACKUP
              interface eth0
              virtual_router_id 55
              priority 100
              advert_int 1
              authentication {
                  auth_type PASS
                  auth_pass 1111
              }
              virtual_ipaddress {
                  192.168.38.166/24 dev eth0 label eth0:1
              }
          }

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 许昌市| 巩义市| 汶川县| 鸡东县| 永清县| 临清市| 伊金霍洛旗| 台湾省| 当雄县| 元氏县| 长沙市| 冕宁县| 肃南| 连南| 阿克| 长顺县| 新晃| 巴楚县| 鹤庆县| 蓝山县| 日喀则市| 东兰县| 中牟县| 临城县| 庆阳市| 武宣县| 辽阳县| 北流市| 武邑县| 梁山县| 石柱| 牡丹江市| 敦煌市| 井陉县| 邓州市| 苍溪县| 开阳县| 永登县| 松桃| 陇川县| 琼结县|