programming/os

[LINUX]VirtualBox Ubuntu 다중 Network 설정

superrmoon 2017. 3. 17. 11:22

1. 환경

- Local : windows 7 x64

- VirtualBox : ubuntu server 64bit

- 로컬 영역 : 내부망

- 무선 영역 : 외부망


2. VirtualBox Network 설정

- 어댑터1 : 브리지 어댑터 (Wireless)



- 어댑터2 : 호스트 전용 어댑터 (모뎀 : VitualBox Host-Only Ethernet Adapter)



3. 로컬 네트워크 설정

- VirtualBox Host-Only Network



3. ubuntu network interface 설정

~# 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 dhcp


auto enp0s8

iface enp0s8 inet static

address 192.168.100.100

netmask 255.255.255.0

#gateway 192.168.100.1


~# /etc/init.d/networking restart


enp0s8 에 gateway를 설정하면 외부망 연결이 안됨.