https://wiki.openmamba.org/en/index.php?title=Network_configuration&feed=atom&action=historyNetwork configuration - Revision history2024-03-29T10:32:57ZRevision history for this page on the wikiMediaWiki 1.34.2https://wiki.openmamba.org/en/index.php?title=Network_configuration&diff=29648&oldid=prevSilvan at 11:27, 6 July 20202020-07-06T11:27:28Z<p></p>
<a href="https://wiki.openmamba.org/en/index.php?title=Network_configuration&diff=29648&oldid=28161">Show changes</a>Silvanhttps://wiki.openmamba.org/en/index.php?title=Network_configuration&diff=28161&oldid=prev69.167.27.130 at 06:25, 3 August 20182018-08-03T06:25:11Z<p></p>
<a href="https://wiki.openmamba.org/en/index.php?title=Network_configuration&diff=28161&oldid=27131">Show changes</a>69.167.27.130https://wiki.openmamba.org/en/index.php?title=Network_configuration&diff=27131&oldid=prev209.160.123.249 at 02:37, 3 July 20182018-07-03T02:37:28Z<p></p>
<a href="https://wiki.openmamba.org/en/index.php?title=Network_configuration&diff=27131&oldid=24">Show changes</a>209.160.123.249https://wiki.openmamba.org/en/index.php?title=Network_configuration&diff=24&oldid=prevErcolinux at 21:22, 3 June 20082008-06-03T21:22:03Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 21:22, 3 June 2008</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l24" >Line 24:</td>
<td colspan="2" class="diff-lineno">Line 24:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Note: the WPA and WPA2 autentication mode is not actually supported by the system, but with the [[wpa_supplicant]] tool is possible to activate a connection of that type via [[command line]].</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Note: the WPA and WPA2 autentication mode is not actually supported by the system, but with the [[wpa_supplicant]] tool is possible to activate a connection of that type via [[command line]].</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>At the moment is advised to configure the Wireless card to do a WEP autentication and wait that the PSK and PSK2 support become available in openmamba</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>At the moment is advised to configure the Wireless card to do a WEP</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>autentication and wait that the PSK and PSK2 support become available in </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>openmamba</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></pre></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>Ercolinuxhttps://wiki.openmamba.org/en/index.php?title=Network_configuration&diff=23&oldid=prevErcolinux at 21:20, 3 June 20082008-06-03T21:20:54Z<p></p>
<a href="https://wiki.openmamba.org/en/index.php?title=Network_configuration&diff=23&oldid=22">Show changes</a>Ercolinuxhttps://wiki.openmamba.org/en/index.php?title=Network_configuration&diff=22&oldid=prevErcolinux: New page: To configure the network connection, after you've verified that is not already activated automatically, is relevant to know the type of network yo're using, due to the variety of mode of c...2008-06-03T20:06:19Z<p>New page: To configure the network connection, after you've verified that is not already activated automatically, is relevant to know the type of network yo're using, due to the variety of mode of c...</p>
<p><b>New page</b></p><div>To configure the network connection, after you've verified that is not already activated automatically, is relevant to know the type of network yo're using, due to the variety of mode of connection offered by the ISPs.(Internet Service Providers).<br />
<br />
== LAN Connection ==<br />
In that type the computer is connected to a [[local net]] regardless of the fact that in that network there is or not an internet access point.<br />
<br />
Under that category there are:<br />
* Network access via [[Ethernet]] cable or [[Wireless]] to a local network where there is a [[DHCP server]] that provide a [[default gateway]] to exit on the Internet (for example FastWeb);<br />
* A connection to a ADSL router that provide a [[Ethernet]] o [[Wireless]] interface and that provide internally the support to the protocoll [[PPP over Ethernet]];<br />
* A generic connection to a local network una qualunque connessione ad una rete locale di computer isolate from other networks.<br />
<br />
=== Ethernet ===<br />
The network interfaces detected by the system are preconfigured to obtain an [[IP address]] from a DHCP server. That configuration is enough as often as not of the situation.<br />
To configure a static IP address, the default gateway, the routing table and other network settings, click on '''openmamba control center''', the choose '''network''', and '''Configure'''. On the window that shows up you can choose every network interface and configure it. (tipically the network interface is called '''eth0''')<br />
<br />
=== Wireless ===<br />
To configure the Wireless network the system has to know:<br />
<br />
* The network identify code (ESSID)<br />
* A pre-shared key (PSK)<br />
<br />
To input that information click on '''Openmamba control center''', choose '''Network''', then click on '''Configure'''.<br />
Select the Wireless interface (tipically '''wlan0''', '''wifi0''' or '''ath0''') and input the correct ESSID and WEP Key values.<br />
<br />
Note: the WPA and WPA2 autentication mode is not actually supported by the system, but with the [[wpa_supplicant]] tool is possible to activate a connection of that type via [[command line]].<br />
<pre><br />
At the moment is advised to configure the Wireless card to do a WEP autentication and wait that the PSK and PSK2 support become available in openmamba<br />
</pre><br />
<br />
Due to the big variety of devices available, is possible that the wireless device is not recognized by the system. In that case is possible to use the [[ndiswrapper]] and the Microsoft Windows driver; the configuration il possible via the '''Openmamba menu''' -> '''Settings''' -> '''Windows wireless drivers'''.<br />
Major info are available looking the [http://ndiswrapper.sourceforge.net/joomla/index.php?/component/option,com_openwiki/Itemid,33/id,list/ list] available on the ''ndiswrapper'' site.<br />
<br />
==== Configure the WPA-PSK with static IP on openmamba ====<br />
<br />
<br />
Partiamo già dal presupposto che la vostra scheda pci wi-fi o pennino usb siano già attivi e funzionanti su Linux, sia con driver nativi sia con [[ndiswrapper]].<br />
Per ulteriori info su come configurare ndiswrapper si veda la pagina dedicata sul wiki.<br />
<br />
Come prima cosa occorre avere il '''wpa_supplicant''' installato sul sistema. Per fare questo installare il pacchetto omonimo utilizzando [[synaptic]] oppure con il comando:<br />
<br />
sudo apt-get install wpa_supplicant<br />
<br />
Ora con il comando <br />
<br />
wpa_passphrase "Tuoessid" "chiave_del_router"<br />
<br />
otteniamo la chiave psk da inserire nel file ''/etc/wpa_supplicant.conf''.<br />
<br />
Creiamo con un editor di testo, sempre da root, il file ''/etc/wpa_supplicant.conf'' e configuriamolo così:<br />
<br />
ctrl_interface=/var/run/wpa_supplicant<br />
ap_scan=1<br />
<br />
network={<br />
ssid="Tuoessid"<br />
#psk="chiave_nel_router"<br />
psk=chiave_psk_ottenuta_dal_comando_wpa_passphrase<br />
key_mgmt=WPA-PSK<br />
pairwise=TKIP<br />
group=TKIP<br />
proto=WPA<br />
}<br />
<br />
ora sempre da terminale, da root, completiamo la configurazione della scheda wlan0, nell'esempio il router ha come indirizzo ip 192.168.1.1, per prima cosa assegniamo un indirizzo IP alla scheda di rete, quindi:<br />
<br />
ifconfig wlan0 192.168.1.2 netmask 255.255.255.0<br />
<br />
ora agganciamo il router alla wlan0, quindi:<br />
<br />
route add default gw 192.168.1.1<br />
<br />
infine lanciamo il wpa_supplicant e quindi di rimando il wpa con il comando:<br />
<br />
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd -B<br />
<br />
se tutto è andato bene, ora dovreste poter pingare il router con il comando: <br />
ping 192.168.1.1 <br />
<br />
e a questo punto dovreste anche poter navigare, inoltre il comando: <br />
iwlist wlan0 scan <br />
<br />
dovrebbe restituirvi l'output completo con i parametri della connessione.<br />
<br />
Per bloccare la connessione: <br />
<br />
ifconfig wlan0 down<br />
<br />
per riattivarla: <br />
<br />
ifconfig wlan0 up<br />
<br />
Infine opzionale, per evitare di dover scrivere nel terminale ogni volta i comandi citati, si può creare uno script che in auto lancerà la connessione, questo è il semplice script che uso io che ho chiamato ''wpa_start.sh'', per lanciarlo basta scrivere nel terminale, sempre da root:<br />
<br />
sh wpa_start.sh<br />
<br />
Ricordarsi di renderlo eseguibile (io lo faccio con chmod a+x).<br />
Questo lo script:<br />
<br />
#!/bin/sh<br />
<br />
ifconfig wlan0 192.168.1.2 netmask 255.255.255.0<br />
route add default gw 192.168.1.1<br />
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd -B <br />
<br />
<br />
<br />
P.S.: attenti anche che i DNS del vostro provider siano stati scritti nel file /etc/resolv.conf, altrimenti in mancanza, riuscirete a pingare il router ma non ad entrare in internet.<br />
<br />
== Connessioni WAN ==<br />
Rientrano in questa categoria le connessioni di rete tra due o più punti geograficamente distanti, quali:<br />
<br />
* collegamento ADSL attraverso un [[modem ADSL]] (con interfaccia USB o Ethernet verso il computer);<br />
* collegamento Dial-Up attraverso una linea telefonica analogica utilizzando un [[modem analogico]] (velocità massima 56 Kbps);<br />
* collegamento Dial-Up attraverso una linea ISDN utilizzando un [[modem ISDN]] (velocità massima 64 Kbps).<br />
<br />
Queste tipologie di connessioni normalmente richiedono la configurazione, sul computer a cui è collegato il dispositivo WAN, del protocollo [[PPP]] (Point to Point Protocol). Questo protocollo dev'essere configurato in maniera diversa a seconda del tipo di collegamento.<br />
<br />
=== PPP attraverso linea telefonica ===<br />
Questo tipo di collegamento può avvenire:<br />
<br />
* collegando il portatile dotato di modem interno alla linea telefonica attraverso apposito connettore RJ-11;<br />
* collegando il modem analogico o ISDN al computer attraverso un cavo seriale RS-232 ed alla linea telefonica attraverso cavo con connettore RJ-11.<br />
<br />
Istruzioni per la configurazione:<br />
# avvia il programma '''KPPP''' che si trova in '''Menù openmamba''' -> '''Internet'''<br />
# fai click su '''Configura'''<br />
# fai click sul tab '''Modem'''<br />
# se non è disponibile un modem crealo utilizzando il pulsante '''Nuovo...''' altrimenti salta il prossimo punto<br />
# seleziona il ''Dispositivo del modem'': tipicamente un modem interno viene identificato dal device '''/dev/modem''', mentre un modem seriale da '''/dev/ttyS0'''<br />
# fai click sul tab '''Modem'''<br />
# disattiva la casella corrispondente a ''Attendi il segnale di linea prima di comporre il numero''<br />
# effettua il test del modem facendo click su '''Interroga Modem'''<br />
# se il test ha avuto successo premi OK per uscire dalla finestra di configurazione del modem, altrimenti prova con altri dispositivi o verifica che il driver per il modem interno sia disponibile e funzionante attraverso [[slmodemd]] o [[hsfmodem]]<br />
# fai click sul tab '''Account''' e su '''Nuovo...''', seleziona '''Configurazione manuale''', assegna il nome del tuo provider alla connessione ed inserisci il numero di telefono<br />
# la configurazione è stata completata. Premi OK per uscire dalla finestra di configurazione<br />
# inserisci ''nome utente'' e ''password'' che ti sono stati assegnati dal provider e premi il pulsante '''Connetti''' per avviare la connessione.<br />
<br />
=== PPP over Ethernet ===<br />
Per questo tipo di collegamento occorre utilizzare il programma '''tkpppoe''' disponibile su '''Menù openmamba''' -> '''Internet''' -> '''ADSL'''.<br />
Creare una nuova connessione specificando in particolare ''nome utente'' e ''password'' ed utilizzare i pulsanti '''Start''' e '''Stop''' per attivare e disattivare la connessione.<br />
<br />
=== PPP over ATM ===<br />
Questo protocollo viene normalmente utilizzato quando ci si connette attraverso un '''modem ADSL''' con porta '''USB'''.<br />
In questo caso occorre aprire il file <br />
/etc/ppp/options-atm<br />
<br />
ed inserire il proprio utente, esempio:<br />
<br />
<pre><br />
user "silvan@myprovider.it"<br />
plugin pppoatm.so 8.35<br />
logfile /var/log/pppd.log<br />
noipdefault<br />
usepeerdns<br />
defaultroute<br />
persist<br />
noauth<br />
nopcomp<br />
noccp<br />
novj<br />
holdoff 5<br />
maxfail 25<br />
</pre><br />
<br />
Inoltre occorre aggiungere le informazioni di autenticazione nei files<br />
<br />
/etc/ppp/pap-secrets<br />
<br />
e<br />
<br />
/etc/ppp/chap-secrets<br />
<br />
ad esempio:<br />
<br />
<pre><br />
# Secrets for authentication using PAP<br />
# client server secret IP addresses<br />
"silvan@myprovider.it" * "mypassword" *<br />
</pre><br />
<br />
Per attivare la connessione andare su '''Menù openmamba''' -> '''Internet''' -> '''ADSL''' -> '''pppoatm start'''; per disattivarla selezionare invece '''pppoatm stop'''.<br />
<br />
== Diagnostica dei problemi di rete ==<br />
Se dopo aver seguito le istruzioni non riesci ad accedere alla rete, ad esempio utilizzando il browser '''konqueror''' e/o '''firefox''', consulta la pagina di [[Problemi di rete dopo configurazione|diagnostica dei problemi di rete dopo la configurazione]].</div>Ercolinux