I completely ran out of ideas on how to tackle this issue. And last time I tried to bridge I lost connection to my remote host ...
If you can help that would be great.
What im looking for is using one of the internet ip's that connect to my HOST (e.g 10.10.10.4) as static IP for my VM.
I would like to run a webserver form that VM.
Host: Ubuntu Lucid 10.04 - 64but
Virtualbox: 3.2.8
NO DNS or DHCP on OS
VM network Setup = Bridged and attached to eth0
Host Ifconfig:
inet addr:10.10.9.4 Bcast:10.10.9.31 Mask:255.255.255.224
inet6 addr: fe40::21b
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1069038 errors:0 dropped:0 overruns:0 frame:0
TX packets:583454 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1492756701 (1.4 GB) TX bytes:110675118 (110.6 MB)
eth0:1 Link encap:Ethernet HWaddr 00:1b:34:14:89:b3
inet addr:10.10.19.1 Bcast:10.10.10.5 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth0:2 Link encap:Ethernet HWaddr 00:1b:34:14:89:b3
inet addr:10.10.19.2 Bcast:10.10.10.5 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth0:3 Link encap:Ethernet HWaddr 00:1b:34:14:89:b3
inet addr:10.10.19.3 Bcast:10.10.10.5 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth0:4 Link encap:Ethernet HWaddr 00:1b:34:14:89:b3
inet addr:10.10.19.4 Bcast:10.10.19.5 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:150146 errors:0 dropped:0 overruns:0 frame:0
TX packets:150146 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:50285353 (50.2 MB) TX bytes:50285353 (50.2 MB)
Guest: Ubuntu Lucid 10.04 - 32bit
Guest Ifconfig (static ip configured in /network/interfaces):
inet addr:10.10.9.4 Bcast:10.10.10.31 Mask:255.255.255.224
inet6 addr: fe40::81b:78fr:ft14:9b9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
So far this is what I tried:
On the HOST I removed the orange part from /etc/network/interfaces and restarted ined.d/networking (I read somewhere that you have to release the ip...)
Then in virtualbox I setup the VM in bridge mode and selected eth0 (only option)
After I started the VM and changed /etc/network/interfaces to:
static ip 10.10.10.4
submask 255.255.255.248
network 10.10.19.0
broadcast 10.10.19.5
gateway 10.10.19.1
Restarted ined.d/networking ....
The good thing is that I can ping the HOST form VM and vice versa but VM cannot ping google.com
HOST is connected to the internet and everything works fine.
Your input would be highly appreciated guys! Thanks in advance.