Note: red bits below are changes I've made according to advice so far, in case you've come back to see the post since.
My host is the latest Ubuntu with all updates, and Virtual Box 1.6.2. configuration...
In if-up.d I have a script doing this...
#!/bin/sh
sysctl net.ipv4.ip_forward=1
VBoxTunctl -b -u nev
ip link set tap0 up
ip addr add 192.168.0.1/24 dev tap0
parprouted wlan0 tap0
This gives me...
eth0 Link encap:Ethernet HWaddr 00:19:b9:5d:3e:89
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)
Interrupt:22
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:1167 errors:0 dropped:0 overruns:0 frame:0
TX packets:1167 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:36637 (35.7 KB) TX bytes:36637 (35.7 KB)
tap0 Link encap:Ethernet HWaddr 00:ff:7a:da:49:fc
inet addr:192.168.0.1 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::2ff:7aff:feda:49fc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:128 errors:0 dropped:0 overruns:0 frame:0
TX packets:51 errors:0 dropped:96 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:14010 (13.6 KB) TX bytes:2142 (2.0 KB)
wlan0 Link encap:Ethernet HWaddr 00:1b:77:01:f4:75
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21b:77ff:fe01:f475/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5568 errors:0 dropped:0 overruns:0 frame:0
TX packets:5832 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4188670 (3.9 MB) TX bytes:1297445 (1.2 MB)
wmaster0 Link encap:UNSPEC HWaddr 00-1B-77-01-F4-75-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING 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)
My guest is Windows XP sp3
with this Virtual Machine config...
Enable Network Adaptor
Attached to: Host Interface
Interface Name: tap0
with this static ip config in Windows...
Windows IP Configuration
Host Name . . . . . . . . . . . . : bananaxp
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : AMD PCNET Family PCI Ethernet Adapter
Physical Address. . . . . . . . . : 08-00-27-9C-85-B4
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.0.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
DNS Servers . . . . . . . . . . . : 200.149.55.140 200.165.132.147
With other stuff...
- The wireless router - 192.168.1.1
- Another real machine plugged into the wireless router - 192.168.1.100
- sometimes I can get to everything - the host, the router, the other real machine on the network, and the internet (99, 101, 1, 100, etc).
- mostly I can get to everything except the other real machine on the network (all except 100) - the host and the real machine have full connectivity.
- sometimes I can only get to the host (only 99, 101).
- sometimes I can only get to the default gateway (only 99).
- sometimes I can't even get to that (can only ping 98 - the guest itself).
Thanks in advance for your help,
Nev
To the moderator - I wanted to used code blocks - but that doesn't allow me to highlight the configuration that I want to show because bold etc doesn't work- so I've taken them out again - cheers. BTW, I think it would be more readable if code sections were just indented in a monospace font with bold etc available.