
eth0과 eth1이라는 두 개의 인터페이스가 있는 장치가 있습니다. 하나는 DHCP 서버에서 IP를 가져와야 하고 다른 하나는 정적으로 IP를 가져와야 합니다.
내 /etc/network/interfaces
파일이 다음과 같이 구성된 경우:
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet dhcp
iface eth1 inet6 auto
auto eth0
iface eth0 inet static
address 10.10.10.10
netmask 255.255.255.0
모든 것이 훌륭하게 작동합니다. eth1은 DHCP 서버에서 IP를 가져오고 eth0은 제공된 정보에서 정적으로 IP를 설정하지만 다음과 같이 파일의 순서를 변경하려고 하면
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.10.10.10
netmask 255.255.255.0
auto eth1
iface eth1 inet dhcp
iface eth1 inet6 auto
이 경우 eth1은 IP를 얻지 못합니다.
/etc/network/interface는 관리자가 DHCP를 통해 IP를 얻는 인터페이스를 먼저 배치한 다음 정적 인터페이스를 배치해야 하는 등 각 인터페이스의 순서에 관심이 있습니까? 아니면 제가 만든 구성에 다른 오류가 있습니까?