bennybobw
December 31st, 2007, 12:10 AM
My guest XP system cannot connect to the outside internet. I just installed Gutsy. The networking worked when I had NAT enabled, but I want to be able to access sites running on localhost as well as the regular internet from guest XP.
I used the VirtualBox manual and this site (http://www.bluetwanger.de/blog/2007/04/30/host-networking-with-virtualbox-on-ubuntu-704-feisty/) to configure.
Here's my /etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user bennybobw
#the virtual network interface
auto tap0
iface tap0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user bennybobw
#The bridge interface
auto br0
iface br0 inet dhcp
bridge_ports eth0 tap0
bridge_maxwait 0
And after I restart networking, ifconfig gives me:
br0 Link encap:Ethernet HWaddr 00:0D:60:78:BB:34
inet addr:192.168.2.102 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::20d:60ff:fe78:bb34/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4140 errors:0 dropped:0 overruns:0 frame:0
TX packets:3424 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4102737 (3.9 MB) TX bytes:577096 (563.5 KB)
eth0 Link encap:Ethernet HWaddr 00:0D:60:78:BB:34
inet6 addr: fe80::20d:60ff:fe78:bb34/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6204 errors:0 dropped:0 overruns:0 frame:0
TX packets:5088 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:6074956 (5.7 MB) TX bytes:833084 (813.5 KB)
Base address:0x8000 Memory:c0220000-c0240000
eth1 Link encap:Ethernet HWaddr 00:0C:F1:34:A6:43
inet6 addr: fe80::20c:f1ff:fe34:a643/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:515 errors:3 dropped:0 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:115321 (112.6 KB) TX bytes:1812 (1.7 KB)
Interrupt:11 Base address:0x8000 Memory:c0210000-c0210fff
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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
tap0 Link encap:Ethernet HWaddr 00:FF:8C:B0:9C:15
inet6 addr: fe80::2ff:8cff:feb0:9c15/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:151 errors:0 dropped:0 overruns:0 frame:0
TX packets:616 errors:0 dropped:52 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:23439 (22.8 KB) TX bytes:195053 (190.4 KB)
In VirtualBox network is attached to Host interface and interface name is tap0.
Thanks for your help!
I used the VirtualBox manual and this site (http://www.bluetwanger.de/blog/2007/04/30/host-networking-with-virtualbox-on-ubuntu-704-feisty/) to configure.
Here's my /etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user bennybobw
#the virtual network interface
auto tap0
iface tap0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user bennybobw
#The bridge interface
auto br0
iface br0 inet dhcp
bridge_ports eth0 tap0
bridge_maxwait 0
And after I restart networking, ifconfig gives me:
br0 Link encap:Ethernet HWaddr 00:0D:60:78:BB:34
inet addr:192.168.2.102 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::20d:60ff:fe78:bb34/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4140 errors:0 dropped:0 overruns:0 frame:0
TX packets:3424 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4102737 (3.9 MB) TX bytes:577096 (563.5 KB)
eth0 Link encap:Ethernet HWaddr 00:0D:60:78:BB:34
inet6 addr: fe80::20d:60ff:fe78:bb34/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6204 errors:0 dropped:0 overruns:0 frame:0
TX packets:5088 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:6074956 (5.7 MB) TX bytes:833084 (813.5 KB)
Base address:0x8000 Memory:c0220000-c0240000
eth1 Link encap:Ethernet HWaddr 00:0C:F1:34:A6:43
inet6 addr: fe80::20c:f1ff:fe34:a643/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:515 errors:3 dropped:0 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:115321 (112.6 KB) TX bytes:1812 (1.7 KB)
Interrupt:11 Base address:0x8000 Memory:c0210000-c0210fff
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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
tap0 Link encap:Ethernet HWaddr 00:FF:8C:B0:9C:15
inet6 addr: fe80::2ff:8cff:feb0:9c15/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:151 errors:0 dropped:0 overruns:0 frame:0
TX packets:616 errors:0 dropped:52 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:23439 (22.8 KB) TX bytes:195053 (190.4 KB)
In VirtualBox network is attached to Host interface and interface name is tap0.
Thanks for your help!