hi.
done that now.
Progress is made. My host (ubuntu) has a working network and internet.
However, the guest not.
Looking at a ifconfig, I can see that the script made the tap0 ok,
but there are still these errors at the RX and TX packets (see below).
I will start reading about all this now, and see if it all makes sense to me. However, If you can see what potential problems may be, please let me know.
p.s. I didn't really understand what you meant by this paragraph:
Code:
2) DHCP server
You have a dhcp server serving on the 192.168.1.0 range
either locally (laptop):
make sure the gateway given by dhcp is the ip of your bridge br0
or on your ethernet LAN connection:
nothing to do (in that case, your access to the internet will occur thru ethernet most certainly and not thru WIFI)
I have DHCP enabled in my router. What do you mean by "make sure the gateway given by dhcp is the ip of your bridge br0"
not only that, but the script doesn't work in the VirtualBox settings.
It always comes back with error (see below). To test anyway, I enter the name of the created tap 'tap0' in the host interface name of the settings for my vm, and start.
Then the vm starts, but it does not get a network.
error
Code:
Failed to initialize Host Interface Networking.
VBox status code: -3100 (VERR_HOSTIF_INIT_FAILED).
Result Code:
0x80004005
Component:
Console
Interface:
IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}
although it still makes the tap0 interface, and when I run it from the command line, i can see that it prints to standard out the name of the tap interface it just created.
This is my exact create script, just as yours i think.
Code:
#!/bin/bash
echo "Setting up a new TAP interface for the user 'sean'"
interface=`VBoxTunctl -b -u sean`
if [ -z "$interface" ]; then
exit 1
fi
echo $interface
ifconfig $interface up
# And add it to the bridge.
brctl addif br0 $interface
thanks again for your patience.
ifconfig
Code:
br0 Link encap:Ethernet HWaddr 00:08:0d:9e:52:12
inet addr:192.168.0.20 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::208:dff:fe9e:5212/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:120 errors:0 dropped:0 overruns:0 frame:0
TX packets:94 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:28556 (27.8 KB) TX bytes:15332 (14.9 KB)
eth0 Link encap:Ethernet HWaddr 00:08:0d:9e:52:12
UP BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth1 Link encap:Ethernet HWaddr 00:02:2d:81:93:eb
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::202:2dff:fe81:93eb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6451 errors:0 dropped:0 overruns:0 frame:0
TX packets:7014 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3049792 (2.9 MB) TX bytes:1462947 (1.3 MB)
Interrupt:11 Base address:0xd100
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:817 errors:0 dropped:0 overruns:0 frame:0
TX packets:817 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:42882 (41.8 KB) TX bytes:42882 (41.8 KB)
tap0 Link encap:Ethernet HWaddr 00:ff:c5:40:47:10
inet6 addr: fe80::2ff:c5ff:fe40:4710/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:120 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:6 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:30248 (29.5 KB) TX bytes:8402 (8.2 KB)
Bookmarks