Thursday, September 15, 2016

VirtualBox Static ip

Virtualbox network in BridgeMode

sudo vi /etc/network/interfaces

auto eth0
iface eth0 inet static
   address 192.168.Y.X
   netmask 255.255.255.0
   network 192.168.Y.0
   gateway 192.168.Y.1
   #dns-nameservers 8.8.8.8



sudo service networking restart

sudo vim /etc/resolvconf/resolv.conf.d/base

search  (domain name)
#nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4
Post a Comment

How to get the IP address of the docker host from inside a docker container

/sbin/ip route|awk '/default/ { print $3 }'