네트워크 인터페이스 사후 규칙이 항상 트리거되는 것은 아닙니다.

네트워크 인터페이스 사후 규칙이 항상 트리거되는 것은 아닙니다.

VMware ESXi Server 5.5.0에서 Ubuntu Server 14.04.5 64비트를 실행하고 있으며 다음 구성을 사용할 때 업 및 포스트업 규칙이 항상 트리거되지는 않습니다.

root@tb60C:~# cat /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

# The primary network interface
auto eth0
iface eth0 inet static
address 10.254.4.169
netmask 255.255.254.0
gateway 10.254.4.1
iface eth0 inet6 static
address 2001:x:x:x
netmask 64
gateway 2001:x:x:X
pre-up echo pre:`date` >> /root/log
up echo up:`date` >> /root/log
post-up echo post:`date` >> /root/log
up service ypbind restart
up iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

재부팅 후 모든 이벤트가 트리거되는 경우도 있고 사전 부팅 이벤트만 트리거되는 경우도 있습니다. 업과 포스트업이 실행되지 않을 때 로그 파일은 다음과 같습니다.

root@tb60C:~# cat /root/log
pre:Sun Nov 12 15:46:56 EET 2017

이벤트가 항상 발생하는 것은 아니지만 인터페이스는 재부팅 후 항상 작동되고 구성됩니다.

디버깅하려면 어디로 가야 하나요?

관련 정보