My Ubuntu computer is connected to ISP via eth0
. There's another subnet which is accessible via br0
. This subnet is used to connect VirtualBox virtual Ubuntu to my host. IPs in this subnet are static.
In order to set this up I use on the host:
tunctl -t tap1 -u root ip link set up dev tap1 brctl addbr br0 brctl addif br0 tap1 ip link set up dev br0 ip addr add 10.1.1.1/24 dev br0 ip route append 10.1.1.0/24 dev br0
... and on the virtual machine client: IP: 10.1.1.15; Netmask: 255.255.255.0; Default gateway: 10.1.1.1; Name server: 10.1.1.1
.
But ping http://google.com
on the client says:
ping: unknown host http://google.com
Changing client's nameserver to the IP I looked up in host's /etc/resolv.conf
didn't work for me either.
How to set up the client Ubuntu to use ISP's name servers?
UPD: The problem came out to be routing, discussed here.