Page 1 of 1

10.04 Slow Bridged networking [SOLVED]

Posted: 7. May 2010, 10:27
by tesno2
Hello,

I have VB 3.1.6 installed on Ubuntu 10.04 64-bit with 32-bit WinXP and Ubuntu guests.

Guests get IP's and can access the network OK. Ping and UDP work as expected. TCP connections to other machines on the network are VERY slow (often 10k/s).

I tried installing the VB 3.2.0 beta - same problem.

Finally found this post on VMWare on Ubuntu:
http://scottbarnham.com/blog/2007/08/23 ... ork-to-xp/

And the solution worked for me (eth1 is my bridge interface):
ethtool -K eth1 sg off rx off tx off tso off

add this line to /etc/rc.local and Bob's your Uncle.

Everything works as it should and life is good :D

Cheers,

Jerry.

Re: 10.04 Bridged networking WinXP guest problem

Posted: 7. May 2010, 16:29
by Perryg
While the guest is set to Bridged mode run ipconfig /all in a command window and post the results here.

Re: 10.04 Bridged networking WinXP guest problem

Posted: 7. May 2010, 17:12
by tesno2
Hi Perry,

C:\Documents and Settings\user>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : s4b
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : rks.local

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : rks.local
Description . . . . . . . . . . . : AMD PCNET Family PCI Ethernet Adapt
r
Physical Address. . . . . . . . . : 08-00-27-8D-97-A8
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 38.168.90.172
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 38.168.90.1
DHCP Server . . . . . . . . . . . : 38.168.90.1
DNS Servers . . . . . . . . . . . : 38.168.90.20
205.171.3.65
205.171.2.65

The 38.168.90.x network is not reserved for internal use but is a legacy problem that is not causing any problems.

Thanks,

Jerry.

Re: 10.04 Bridged networking WinXP guest problem

Posted: 7. May 2010, 17:25
by tesno2
While copying a folder from an Apple OS X 10.4 server running Windows sharing (Samba), it is extremely slow and eventually errors out.
Here is the error message from WinXP:

Cannot copy binder: The I/O operation has been aborted because of either a thread exit or an application request.


If I switch the WinXP guest to NAT networking, the folder copies no problem.

Re: 10.04 Bridged networking WinXP guest problem

Posted: 7. May 2010, 17:28
by Perryg
The 38.168.90.x network is not reserved for internal use but is a legacy problem that is not causing any problems
Not sure I understand what you mean here. Is this not the subnet of your router? Can you explain it a little more?
The information that you have should work.

Re: 10.04 Bridged networking WinXP guest problem

Posted: 7. May 2010, 17:33
by tesno2
Perry,

The subnet is fine. It's just a valid subnet on the Net that we don't own. At some stage, we did and were using real IP's.
Now we are NAT'd behind some other (valid) IP but we have kept the old IP's because it's too much hassle to change them.

I have seen some posts about MTU issues with Vbox host networking. Could this be the problem?

Jerry.

Re: 10.04 Bridged networking WinXP guest problem

Posted: 7. May 2010, 17:41
by Perryg
I have seen the same posts about the MTU but to be honest all that would do is slow you down slightly. From what you are describing it sounds more like a routing issue.
You can however manually set the MTU to 1500 and see if it helps, but most OSes these days with auto MTU know what to do and do it well.

Re: 10.04 Bridged networking WinXP guest problem

Posted: 7. May 2010, 18:08
by tesno2
Perry,

The hosts I am accessing are on the same subnet as my VM so they shouldn't have to go through a router - I hope!

I can copy OK from the host to the guest - i.e. packets are not getting out on the network.

On the host, I can copy data from a different machine on the network.

On the guest, can't copy from a different machine on the network.
SCP to a machine on the same network doesn't work either - times out. tcpdump shows packets on each side but the guest stops after a while.
Strangely enough, SCP to a host on the Net (via the router) works fine (albeit slower than over the LAN - if it worked ;-)

Change to NAT and it works fine.

Here's my 'ifconfig -a' on the host:

br0 Link encap:Ethernet HWaddr 00:30:48:f3:18:c4
inet addr:38.168.90.30 Bcast:38.168.90.255 Mask:255.255.255.0
inet6 addr: fe80::230:48ff:fef3:18c4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:65678592 errors:0 dropped:0 overruns:0 frame:0
TX packets:45264483 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9815822633 (9.8 GB) TX bytes:716459425864 (716.4 GB)

eth0 Link encap:Ethernet HWaddr 00:30:48:f3:18:c4
inet6 addr: fe80::230:48ff:fef3:18c4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:69871246 errors:4 dropped:0 overruns:1 frame:2
TX packets:494102809 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11048409217 (11.0 GB) TX bytes:746268088421 (746.2 GB)
Memory:fbe60000-fbe80000

(disconnected)
eth1 Link encap:Ethernet HWaddr 00:30:48:f3:18:c5
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:49652 errors:0 dropped:0 overruns:1 frame:0
TX packets:23468 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:44843553 (44.8 MB) TX bytes:2251617 (2.2 MB)
Memory:fbee0000-fbf00000

Jerry.

Re: 10.04 Bridged networking WinXP guest problem

Posted: 7. May 2010, 18:16
by Perryg
Well there you are. Bridged mode in VirtualBox requires a router.
That explains why the NAT mode works for you and Bridged does not.