Prerequisiti:

  • due pc collegati tra loro con un cavo crossover (nel mio caso pc desktop e laptop);
  • pc desktop con due schede ethernet (eth0 collegata ad internet e eth1 per la rete locale);
  • linux su entrambi i pc (per me hardy heron sul desktop e gutsy gibbon su laptop).

Configurazione della scheda esterna (eth0):

  1. Configurazione dinamica tramite dhcp;
  2. Oppure settare un indirizzo statico; questa la mia configurazione:
  • Indirizzo IP: 10.0.1.20
  • Netmask: 255.255.255.0
  • Gateway: 10.0.1.1
  • DNS primario: 208.67.220.220
  • DNS secondario: 208.67.222.222.

Configurazione scheda interna (eth1)

  • Indirizzo IP: 192.168.0.1
  • Netmask: 255.255.255.0
  • Gateway: 10.0.1.1
  • DNS primario: 208.67.220.220
  • DNS secondario: 208.67.222.222.


Configurazione scheda del client (nel mio caso il laptop)

  • Indirizzo IP: 192.168.0.2
  • Netmask: 255.255.255.0
  • Gateway: 192.168.0.1
  • DNS primario: 208.67.220.220
  • DNS secondario: 208.67.222.222.

Controllo del setup

ping 192.168.0.2
PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=0.168 ms
64 bytes from 192.168.0.2: icmp_seq=2 ttl=64 time=0.139 ms
……………………………………………………………………………….

Installazione e configurazione di Firestarter

  • sudo apt-get install firestarter;
  • seguire il wizard di configurazione e abilitare “Enable internet connection sharing”
firestarter.jpg

Et voilà!

  One Response to “Condividere la connessione ad internet tra due pc linux”

  1. Find desk pads…

    [...] TwitterBerry – Twitter from you BlackBerry Phone. EmailTwitter – Twitter from your mobile device. Twhirl – The BEST desktop Twitter application, allows multiple accounts. Snitter – Desktop Twitter application for Mac and PC. [...]…

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2011 Tuxmind: Suffusion theme by Sayontan Sinha