더북(TheBook)

4. /etc/network/interfaces에 eth1이 매뉴얼 IP로 설정되었는지 확인합니다. VM일 때는 eth1이 아닌 enp0s8이 매뉴얼 IP로 설정되었는지 확인합니다.

root@controller:~# 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).

source /etc/network/interfaces.d/*

The loopback network interface

auto lo iface lo inet loopback

The primary network interface

auto eth0 iface eth0 inet static address 192.168.56.101 netmask 255.255.255.0 gateway 192.168.56.1 dns-nameservers 8.8.8.8

auto eth1 iface eth1 inet manual up ip link set dev $IFACE up down ip link set dev $IFACE down

신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.