Keepalived가 내 인터페이스 중 하나를 찾을 수 없습니다.

Keepalived가 내 인터페이스 중 하나를 찾을 수 없습니다.

Keepalived 구성 테스트를 시작하기 위해 방금 새 서버(Ubuntu 14.04)를 설치했습니다. 이는 정상적으로 작동합니다(Ubuntu 12.04).

우리는 eth1 인터페이스에 공용 IP를 할당하지 않으며 환경에서 공용 IP를 보존하기 위해 연결 유지를 허용합니다.

이것은 12.04 서버에서 작동합니다.

/etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    address x.x.x.x
    netmask x.x.x.x

auto eth1
iface eth1 inet static

/etc/keepalived/keepalived.conf

vrrp_script chk_haproxy {
  script    "/usr/bin/killall -0 haproxy"
  interval  2
  weight    
}

vrrp_script chk_stunnel {
  script    "/usr/bin/killall -s 0 -r 'stunnel[4]?'"
  interval  2
  weight    
}

global_defs {
  notification_email {
    [email protected]
  }
  notification_email_from [email protected]
  smtp_server x.x.x.x
  smtp_connect_timeout 30
  router_id somehost
}

vrrp_instance VI_01 {
  interface                 eth0
  state                     MASTER
  virtual_router_id         1
  priority                  150
  advert_int                1
  garp_master_delay         5
  smtp_alert



  # notify scripts and alerts are optional
  #
  # filenames of scripts to run on transitions
  # can be unquoted (if just filename)
  # or quoted (if has parameters)
  # to MASTER transition
  notify_master "/sbin/route del default gw x.x.x.x"
  # to BACKUP transition
  notify_backup "/sbin/route add default gw x.x.x.x"




  authentication {
    auth_type PASS
    auth_pass somepas
  }

  track_script {
    chk_stunnel
    chk_haproxy
  }


  virtual_ipaddress {
    x.x.x.x/x dev eth1
  }


  virtual_routes {
    default via x.x.x.x dev eth1  
  }



}

그러나 14.04 시스템에서 복사하여 붙여넣기(새 서브넷의 IP만 수정)를 수행하면 keepalived는 인터페이스 대기열이 비어 있다고 말하고 eth1을 누락된 인터페이스로 선언합니다.

Ubuntu 14.04에서 ipv의 동작이 변경되었습니까? IP가 없는 인터페이스는 사용할 수 없게 됩니까?

관련 정보