Re: Due schede di rete (eth0: ip statico + wlan0: dhcp)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Federico Di Gregorio ha scritto:
> Sinceramente non ho capito bene il tuo "interfaces" ma controlla di non
> avere dues gateway predefiniti. Devi avere solo *una* default route che
> punta alla wlan0, la rete locale su eth0 deve avere solo la route "di
> rete" (ovvero quella riferita a 192.168.2.0).
Grazie per la risposta Federico. Però non ho capito bene a cosa alludi.
Ti riporto i due risultati di "route" così puoi dirmi se ho sbagliato
qualcosa:
1. pc che naviga correttamente anche con il cavo locale attaccato:
> # route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
> 192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
> link-local * 255.255.0.0 U 1000 0 0 wlan0
> default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
2. pc che (di solito) si blocca con il cavo locale attaccato (non si
riesce a navigare su internet):
> # route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> localnet * 255.255.255.0 U 0 0 0 eth0
> 192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
> default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
Ecco, forse perchè nel secondo manca la seguente linea? Come faccio ad
aggiungerla (che comando devo dare)?
> 192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
> Ciao,
> federico
Grazie a te, ciao.
giopas
- --
"The paradigm of competition is a race: by
rewarding the winner, we encourage everyone
to run faster. When capitalism really works
this way, it does a good job; but its defenders
are wrong in assuming it always works this way.
If the runners forget why the reward is offered
and become intent on winning, no matter how, they
may find other strategies--such as, attacking
other runners. If the runners get into a fist
fight, they will all finish late."
(GNU manifesto/R. Stallman)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkieJaIACgkQWHJhI1G5/3rZ4wCeLxJfCCi31BqB1+2l+6Rwtvnk
AbMAoI4+gt+gPI6gtZ1sxbZ5qS93gCFf
=deL1
-----END PGP SIGNATURE-----
Reply to: