더북(TheBook)

1. VirtualBox로 우분투 서버를 생성했으니 이제 SSH 클라이언트로 생성한 우분투 서버에 접속합니다. vi 에디터를 이용해 /etc/network/interfaces를 다음과 같이 변경합니다. 이때 사용되는 IP는 네트워크 구성도에서 미리 가정한 IP를 입력합니다. enp0s8의 address와 gateway 항목 외에는 다음 코드와 똑같이 입력하면 됩니다.

nalee@ubuntu:~$ sudo su —-
root@ubuntu:/home/nalee# cd
root@ubuntu:~#
root@ubuntu:~# vi /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 enp0s3 iface enp0s3 inet static address 192.168.56.103—- netmask 255.255.255.0
gateway 192.168.56.1

auto enp0s8 iface enp0s8 inet static address 192.168.0.22 —- netmask 255.255.255.0 gateway 192.168.0.1 —-

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