1 |
Richard Fish: |
2 |
> On 11/26/06, Sergio Polini <sp_rm_it@×××××.it> wrote: |
3 |
> > I can just notice an astonishing difference between metrics: 25 |
4 |
> > under Windows, 2000 (!) under Linux. |
5 |
> |
6 |
> The absolute value of an interface metric is meaningless, they only |
7 |
> matter in relation to other interface metrics active at the time. |
8 |
> They are used to decide between interfaces when a host can be |
9 |
> reached through more than one interface. So for example, if you |
10 |
> have a dialup connection as well as broadband, you would want the |
11 |
> broadband connection to have a lower metric than the dialup so that |
12 |
> it is the 'preferred' interface. |
13 |
|
14 |
Thanks for your answer. |
15 |
My pings (perhaps all DNS lookups) are slow even if connect my PC to |
16 |
both the wireless router and the cable, i.e. when there are both |
17 |
a "fast" (metric 0) and a "slow" (metric 2000) interface. |
18 |
|
19 |
> What do "ifconfig wlan" and "iwconfig wlan" report for the fast and |
20 |
> slow states? |
21 |
|
22 |
Fast (i.e. normal ;-) state happens only when net.wlan0 is stopped. |
23 |
When I start net.wlan0: |
24 |
|
25 |
sergio ~ # ifconfig wlan0 |
26 |
wlan0 Link encap:Ethernet HWaddr 00:14:A5:E1:D2:B9 |
27 |
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0 |
28 |
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1 |
29 |
RX packets:16 errors:0 dropped:0 overruns:0 frame:0 |
30 |
TX packets:93 errors:0 dropped:0 overruns:0 carrier:0 |
31 |
collisions:0 txqueuelen:1000 |
32 |
RX bytes:2742 (2.6 Kb) TX bytes:10200 (9.9 Kb) |
33 |
Interrupt:20 Memory:c3000000-c3004000 |
34 |
|
35 |
sergio ~ # iwconfig wlan0 |
36 |
wlan0 IEEE 802.11g ESSID:"mynet" |
37 |
Mode:Managed Frequency:2.462 GHz Access Point: 00:17:3F:0C:19:12 |
38 |
Bit Rate=54 Mb/s Tx-Power:32 dBm |
39 |
RTS thr:off Fragment thr:off |
40 |
Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX |
41 |
Security mode:restricted |
42 |
Power Management:off |
43 |
Link Quality:100/100 Signal level:-48 dBm Noise level:-256 dBm |
44 |
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 |
45 |
Tx excessive retries:1 Invalid misc:168 Missed beacon:0 |
46 |
|
47 |
> And the host that you are pinging, is a remote |
48 |
> internet host or something local (like 192.168.2.1)? |
49 |
|
50 |
Remote internet hosts (f.i., google) and local. |
51 |
BTW, I can't ping 192.168.2.1, i.e. the wireless router. But I can |
52 |
under Windows! |
53 |
|
54 |
Thanks |
55 |
Sergio |
56 |
-- |
57 |
gentoo-user@g.o mailing list |