2014. 4. 11. 00:45

Set Network

- first of all, you should check mac address

  - Adaptor 1 :  NAT

  - Adaptor 2 :  Host Dedicated Adaptor


[Install Ubuntu]

- set static IP

$ sudo vi /etc/network/interfaces

  auto lo

  iface lo inet loopback


  auto eth0 # NAT 

  iface eth0 inet dhcp


  auto eth1 # Host Dedicated Adaptor

  iface eth1 inet static

        address 192.168.56.102   # you can find the basic IP(192.168.56.1) in network tab, VirtualBox preference

        netmask 255.255.255.0


$ sudo /etc/init.d/networking restart

#새로 추가된 IP에 매칭된 이더넷카드 실행을 해준다.

$ sudo ifdown eth0

$ sudo ifdown eth1

$ sudo ifup eth0

sudo ifup eth1


$ nslookup www.daum.net

  ※ if you can't well, please see this link

     (http://forum.falinux.com/zbxe/index.php?document_srl=532721&mid=lecture_tip)

     $ vi /etc/udev/rules.d/70-persistent-net.rules

     $ sudo rm /etc/udev/rules.d/70-persistent-net.rules




더 설명이 좋은 링크: https://gist.github.com/wacko/5577187

Posted by CoolDragon