1 |
Scenario: |
2 |
- I have a HAG (Home Access Gateway, which embodies an ADSL modem) |
3 |
installed by my provider; |
4 |
- the HAG has three RJ45 ports; when a PC is connected to one of |
5 |
theese ports, it gets an IP address via DHCP; |
6 |
- I have connected a Belkin wireless rooter to one of theese ports; |
7 |
- I connect my PC to another port, and/or to the wireless router (by |
8 |
running modprobe ndiswrapper; then /etc/init.d/net.wlan0 is ran by |
9 |
ifplugs - at least, this is what I can guess ;-). |
10 |
|
11 |
When I run Windows, my wireless connection is "normal", but when I run |
12 |
Gentoo there are strange delays. For example, a simple ping is fast |
13 |
under Windows, very slow under Gentoo. I have to stop net.wlan0 to |
14 |
get "normal" pings again. |
15 |
|
16 |
As far as I can understand, it is a matter of metric. |
17 |
When I only connect my PC to the wireless router, I can see: |
18 |
|
19 |
a) under Windows (the output is in Italian, but I'm sure you can read |
20 |
it - using a fixed font may help ;-): |
21 |
|
22 |
> route PRINT |
23 |
============================================================ |
24 |
Elenco interfacce |
25 |
0x1 ........................... MS TCP Loopback interface |
26 |
0x2 ...00 16 d3 09 2d 17 ...... NVIDIA nForce Networking |
27 |
0x3 ...00 14 a5 e1 d2 b9 ...... WLAN Broadcom 802.11a/b/g |
28 |
============================================================ |
29 |
============================================================ |
30 |
Route attive: |
31 |
Indirizzo rete Mask Gateway Interfac. Metric |
32 |
0.0.0.0 0.0.0.0 192.168.2.1 192.168.2.2 25 |
33 |
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 |
34 |
192.168.2.0 255.255.255.0 192.168.2.2 192.168.2.2 25 |
35 |
192.168.2.2 255.255.255.255 127.0.0.1 127.0.0.1 25 |
36 |
192.168.2.255 255.255.255.255 192.168.2.2 192.168.2.2 25 |
37 |
224.0.0.0 240.0.0.0 192.168.2.2 192.168.2.2 25 |
38 |
255.255.255.255 255.255.255.255 192.168.2.2 2 1 |
39 |
255.255.255.255 255.255.255.255 192.168.2.2 192.168.2.2 1 |
40 |
Gateway predefinito: 192.168.2.1 |
41 |
============================================================ |
42 |
Route permanenti: |
43 |
Nessuno |
44 |
|
45 |
b) under Gentoo: |
46 |
|
47 |
b.1) fast: |
48 |
|
49 |
sergio ~ # route -n |
50 |
Kernel IP routing table |
51 |
Destination Gateway Genmask Flags Metric Ref Use Iface |
52 |
192.168.2.0 0.0.0.0 255.255.255.0 U 2000 0 0 wlan0 |
53 |
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo |
54 |
0.0.0.0 192.168.2.1 0.0.0.0 UG 2000 0 0 wlan0 |
55 |
|
56 |
b.1) very slow: |
57 |
|
58 |
sergio ~ # route |
59 |
Kernel IP routing table |
60 |
Destination Gateway Genmask Flags Metric Ref Use Iface |
61 |
192.168.2.0 * 255.255.255.0 U 2000 0 0 wlan0 |
62 |
loopback * 255.0.0.0 U 0 0 0 lo |
63 |
default 192.168.2.1 0.0.0.0 UG 2000 0 0 wlan0 |
64 |
|
65 |
I can just notice an astonishing difference between metrics: 25 under |
66 |
Windows, 2000 (!) under Linux. |
67 |
|
68 |
I've tried "route del default" and then "route add default gw |
69 |
192.168.2.1 metric 0", but the wireless connection was still slow. |
70 |
"Slow" means, for example, that if I use my browser and go |
71 |
to "www.google.com", "Looking for www.google.com" lasts too mach. |
72 |
|
73 |
Any hints? |
74 |
Thanks |
75 |
Sergio |
76 |
-- |
77 |
gentoo-user@g.o mailing list |