[RISOLTO] Slackware e scheda di rete lan!

Se avete problemi con l'installazione e la configurazione di Slackware postate qui. Non usate questo forum per argomenti generali... per quelli usate Gnu/Linux in genere.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware, se l'argomento è generale usate il forum Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute.
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
flashman
Linux 1.x
Linux 1.x
Messaggi: 109
Iscritto il: mar 16 set 2008, 17:32
Slackware: 12.1
Kernel: 2.6.24.5
Desktop: fluxbox

[RISOLTO] Slackware e scheda di rete lan!

Messaggio da flashman »

Salve a tutti ragazzi,

brevemente mi complimento per il forum e premetto che sono migrato da Ubuntu ( installata solo per il perl ) a Slackware per cercare di capirci qualche cosa. Quindi ne so meno che zero!

Ovviamente sono partito anche io dalla bibbia S4D per installare Slackware sul portatile. Tutto ok fino alla configurazione della rete lan!

Come da guida lspci mi restituisce :

06:08.0 Ethernet controller: Broadcom Corporation BCM4401 100Base-T (rev 02)
Subsystem: Acer Incorporated [ALI] Unknown device 0066
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort+ <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 32
Interrupt: pin A routed to IRQ 17
Region 0: Memory at b0106000 (32-bit, non-prefetchable) [size=8K]
[virtual] Expansion ROM at b0120000 [disabled] [size=128K]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-
Kernel driver in use: b44
Kernel modules: b44


e ifconfig :

eth0 Link encap:Ethernet HWaddr 00:12:f0:e8:9e:4c
inet addr:192.168.1.200 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::212:f0ff:fee8:9e4c/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:722 errors:0 dropped:0 overruns:0 frame:0
TX packets:203 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:1730 (1.6 KiB) TX bytes:756 (756.0 B)
Interrupt:16 Base address:0xc000 Memory:b010b000-b010bfff

eth1 Link encap:Ethernet HWaddr 00:c0:9f:c4:c5:72
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:17

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:35 errors:0 dropped:0 overruns:0 frame:0
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3630 (3.5 KiB) TX bytes:3630 (3.5 KiB)


Come potete vedere il sistema mi vede due schede eth ( Come mai ? )!!! :-k
Poco male, penso, configuro la eth0 ( come potete vedere da ifconfig ). Imposto un IP statico ( 192.168.1.200 ) avendo a casa una rete interna con vari computer.

Infine con route imposto il routing :

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 1 0 0 eth0


Poichè il mio router include la funzionalità di server DHCP ( lo deduco dal fatto che l'IP del PC varia in base al numero di PC connessi alla rete, correggetemi se sbaglio) connetto direttamente il cavo di rete.

Alla connessione noto che entrambe le luci della scheda di rete sono accese. Mi allarmo!

Riguardando la guida utilizzo dmesg, ed eccone il risultato :

eth1: Broadcom 44xx/47xx 10/100BaseT Ethernet 00:c0:9f:c4:c5:72
eth0: no IPv6 routers present


In conclusione il sistema mi vede due schede di rete ma sembra riconoscerne soltanto una ed è la 1.

A questo punto mi chiedo :

1) Perchè 2 schede di rete ?
2) Come devo configurare il tutto ? Mi sposto sulla 1 editando a mano rc.inet1.conf ?
3) Per verificarne il corretto funzionamento devo solo attaccare il cavo e aprire il browser, dato che il routing dovrebbe essere configurato ?

Ovviamente non vorrei utilizzare tool grafici ma vorrei "capire".

Se avete qualche dritta ve ne sarei molto grato o in alternativa qualche documento aggiuntivo.

Grazie, flashman
Ultima modifica di flashman il mer 17 set 2008, 17:40, modificato 1 volta in totale.

Avatar utente
urka58
Linux 3.x
Linux 3.x
Messaggi: 543
Iscritto il: mer 7 dic 2005, 23:29

Re: Slackware e scheda di rete lan!

Messaggio da urka58 »

1) Perchè 2 schede di rete ?
2) Come devo configurare il tutto ? Mi sposto sulla 1 editando a mano rc.inet1.conf ?
3) Per verificarne il corretto funzionamento devo solo attaccare il cavo e aprire il browser, dato che il routing dovrebbe essere configurato ?
1) Probabilmente c'è qualche altra periferica (scheda TV digitale?) che viene riconosciuta come scheda di rete o veramente hai una seconda scheda (diversi portatili recenti hanno questa possibilità)
2) Escludendo una seconda scheda di rete, direi di assicurarsi che l'assegnazione del nodo venga fatta in modo permanente modificando /etc/udev/rules.d/70-persistent-net.rules come segue

Codice: Seleziona tutto

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:12:f0:e8:9e:4c", ATTR{type}=="1", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:c0:9f:c4:c5:72 ", ATTR{type}=="1", NAME="eth1"
Dovresti poi decidere se intendi usare la rete con l'assegnazione dell'indirizzo IP agli hosts in modo statico o dinamico, dal tuo post non è molto chiaro cosa vuoi fare.
In funzione di ciò devi configurare /etc/rc.d/rc.inet1.conf. Verosimilmente il nodo della scheda di rete è eth0, andrebbe però verificato.
3) Con l'attuale configurazione riesci a pingare il router (verosimilmente 192.168.1.1)? Il server DHCP sul router è attivo? Il router ha un servizio di DNS relay attivo? Se non è attivo o non esiste non puoi usare il router come server DNS. Insomma dovresti fornire qualche elemento in più...
Ciao

Avatar utente
targzeta
Iper Master
Iper Master
Messaggi: 6643
Iscritto il: gio 3 nov 2005, 14:05
Nome Cognome: Emanuele Tomasi
Slackware: 64-current
Kernel: latest stable
Desktop: IceWM
Località: Carpignano Sal. (LE) <-> Pisa

Re: Slackware e scheda di rete lan!

Messaggio da targzeta »

Benvenuto nel forum :). Se ifconfig vede due schede di rete, è perchè hai due schede di rete :D, semplice. Ora la domanda te la pongo a te, qual'è l'altra scheda di rete (una schedina wireless, bluetooth)?
L'iterfaccia che dovresti configurare è la eth1, dagli output che hai postato. In pratica dovresti rifare i passi che hai descritto, solo che devi cambiare l'interfaccia sul quale li fai.

Per collegarti ad internet, attraverso un interfaccia di rete, devi fondamentalmente impostare 3 cose:
  • indirizzo ip (con ifconfig)
  • la tabella di routing (con route)
  • e il DNS (attraverso il file /etc/resolv.conf)
Questi tre passi bisogna eseguirli dopo aver caricato in memoria il driver del kernel che gestisce la scheda di rete, ma questo non è un tuo problema, visto che il modulo b44, quello che manipola la tua scheda broadcom, è già in memoria, altrimenti ifconfig non mostrerebbe nulla.
Le impostazioni possono essere fatte in due modi:
  • 1) facendo tutto a manina, con i programmi che ti ho consigliato nelle parentesi. Per quanto riguarda i DNS vedi qui
    2) facendo fare tutto in maniera automatica ad un programma che supporta, lato client, il protocollo DHCP. Se il router fa da server DHCP, come dici tu, puoi lanciare il comando

    Codice: Seleziona tutto

    dhcpcd eth1
    il quale esegue una richiesta in broadcast sul cavo di rete (e quindi PC e router devono essere fisicamente collegati da un cavo), individua l'indirizzo fisico (il MAC address e non quello IP) del router, e poi, attraverso il protocollo DHCP, si fa dare un indirizzo IP e dei DNS.
Una volta aver impostato tutto, il modo più facile per provare se la connessione va è quella di fare un ping al router, attraverso il comando

Codice: Seleziona tutto

ping 192.168.1.1 (visto il tuo output)
Dato che però, a volte, il protocollo su cui si basa ping (l'ICMP) può essere ignorato, basta aprire un browser web e provare a navigare (puoi anche andare sull'indirizzo del router, generalmente fungono da piccolo server web per la configurazione).

Per quanto rigurda il nome dell'interfaccia della scheda di rete, ricorda che potresti avere dei problemi, non sempre sarà la eth1, a volte la scheda potrebbe essere vista come eth0. Si può far si che venga identificata in maniera univoca, seguendo il consiglio di urka58, che vedo solo ora che mi ha preceduto

Spina
Se pensi di essere troppo piccolo per fare la differenza, prova a dormire con una zanzara -- Dalai Lama

flashman
Linux 1.x
Linux 1.x
Messaggi: 109
Iscritto il: mar 16 set 2008, 17:32
Slackware: 12.1
Kernel: 2.6.24.5
Desktop: fluxbox

Re: Slackware e scheda di rete lan!

Messaggio da flashman »

Salve ragazzi e grazie per il vostro supporto.

Scusate se sono un "lento", ma vorrei capire.

Con dmesg ho :

eth1: Broadcom 44xx/47xx 10/100BaseT Ethernet 00:c0:9f:c4:c5:72
eth0: no IPv6 routers present


ed effettivamente come dice spina ho una scheda di rete wireless ipw2200 che in questo momento non vorrei utilizzare essendo poco esperto con Linux.

Mi indicate che la scheda lan è la eth1. OK!
Cosa vuol dire no IPv6 routers present ? Perchè non riconosce il modello come la scheda lan ?

Il mio obbiettivo è quello di assegnare al portatile un ip fisso pari a 192.168.1.200 ed è quello che ho cercato di fare.

Il metodo suggerito da spina con dhcpcd, preclude la possibilità di avere un ip statico all'interno della rete lan, al contrario l'ip potrebbe cambiare.
E' quello che mi accadeva con il fisso, dove con windows ogni volta che mi ricollegavo avevo un ip diverso. Correggetemi se sbaglio. Ho capito bene ?

Come faccio a resettare le impostazioni ritornano al punto di partenza ?
Mi basta editare i file di configurazione ?

flashman

Avatar utente
conraid
Staff
Staff
Messaggi: 13631
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: Slackware e scheda di rete lan!

Messaggio da conraid »

Prova ad usare netconfig

altrimenti devi agire sul file /etc/rc.d/rc.inet1.conf che nel tuo caso avrà queste impostazioni

Codice: Seleziona tutto

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]="192.168.1.200"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Default gateway IP address:
GATEWAY="192.168.1.1"
le altre voci devono essere "vuote"

come gateway ho messo 192.168.1.1 perché dal tuo primo messaggio ho capito che quello è l'indirizzo del router

flashman
Linux 1.x
Linux 1.x
Messaggi: 109
Iscritto il: mar 16 set 2008, 17:32
Slackware: 12.1
Kernel: 2.6.24.5
Desktop: fluxbox

Re: Slackware e scheda di rete lan!

Messaggio da flashman »

Fatto!

Ma con ifconfig mi vede sempre la eth0 come configurata! Come faccio a rendere effetive le modifiche al file etc senza riavviare il sistema ?

Dovrei anche cambiare la tabella di routing. Come faccio a eliminare le righe aggiunte ? Seguendo la guida mi dice "route del nomerete". Il nome della rete nel mio caso

è 192.168.1.0 ?

Avatar utente
conraid
Staff
Staff
Messaggi: 13631
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: Slackware e scheda di rete lan!

Messaggio da conraid »

flashman ha scritto: Ma con ifconfig mi vede sempre la eth0 come configurata! Come faccio a rendere effetive le modifiche al file etc senza riavviare il sistema ?

Codice: Seleziona tutto

# /etc/rc.d/rc.inet1 restart
flashman ha scritto: Dovrei anche cambiare la tabella di routing. Come faccio a eliminare le righe aggiunte ? Seguendo la guida mi dice "route del nomerete". Il nome della rete nel mio caso

è 192.168.1.0 ?
No, no, la tabella di routing si adegua in base a quel file, riavvia come ti ho detto e dicci come va

flashman
Linux 1.x
Linux 1.x
Messaggi: 109
Iscritto il: mar 16 set 2008, 17:32
Slackware: 12.1
Kernel: 2.6.24.5
Desktop: fluxbox

Re: Slackware e scheda di rete lan!

Messaggio da flashman »

Ho "restartato" come mi hai suggerito :

Sulla console :

/etc/rc.d/rc.inet1: eth0 information: 'Any ESSID'

Su ifconfig :

eth0 Link encap:Ethernet HWaddr 00:12:f0:e8:9e:4c
inet addr:192.168.1.200 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::212:f0ff:fee8:9e4c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:5231 (5.1 KiB) TX bytes:1086 (1.0 KiB)
Interrupt:16 Base address:0x4000 Memory:b010b000-b010bfff

eth1 Link encap:Ethernet HWaddr 00:c0:9f:c4:c5:72
inet addr:192.168.1.200 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:17

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:13 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:698 (698.0 B) TX bytes:698 (698.0 B)


Entrambe hanno lo stesso ip. Come mai ? in rc.inet1.conf ho configurato solo la eth1.

Ovviamente, come hai anticipato, nella tabella di routing è comparsa la riga per l'eth1, identica alla prima riga.

Avatar utente
conraid
Staff
Staff
Messaggi: 13631
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: Slackware e scheda di rete lan!

Messaggio da conraid »

Codice: Seleziona tutto

# ifconfig eth0 down
# /etc/rc.d/rc.inet1 restart
si vede che mantiene le impostazioni di prima.

comunque mostra un po' l'output di questi comandi (mettili tra i tag code altrimenti non ci si capisce niente)

Codice: Seleziona tutto

# cat /etc/rc.d/rc.inet1.conf
# cat /etc/rc.d/rc.wireless.conf
# cat /etc/udev/rules.d/70-persistent-net.rules

flashman
Linux 1.x
Linux 1.x
Messaggi: 109
Iscritto il: mar 16 set 2008, 17:32
Slackware: 12.1
Kernel: 2.6.24.5
Desktop: fluxbox

Re: Slackware e scheda di rete lan!

Messaggio da flashman »

Il primo file :

Codice: Seleziona tutto

 /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.

# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.

# =============================================================================

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]="192.168.1.200"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY="192.168.1.1"

# Change this to "yes" for debugging output to stdout.  Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

## Example config information for wlan0.  Uncomment the lines you need and fill
## in your info.  (You may not need all of these for your wireless network)
#IFNAME[4]="wlan0"
#IPADDR[4]=""
#NETMASK[4]=""
#USE_DHCP[4]="yes"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=BARRIER05
#WLAN_MODE[4]=Managed
##WLAN_RATE[4]="54M auto"
##WLAN_CHANNEL[4]="auto"
##WLAN_KEY[4]="D5AD1F04ACF048EC2D0B1C80C7"
##WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
#WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="ndiswrapper"

## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0"              # Use a different interface name nstead of
                                # the default 'eth4'
#HWADDR[4]="00:01:23:45:67:89"  # Overrule the card's hardware MAC address
#MTU[4]=""                      # The default MTU is 1500, but you might need
                                # 1360 when you use NAT'ed IPSec traffic.
#DHCP_KEEPRESOLV[4]="yes"       # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes"          # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes"           # If you don't want the DHCP server to change
                                # your default gateway
#DHCP_IPADDR[4]=""              # Request a specific IP address from the DHCP
                                # server
#WLAN_ESSID[4]=DARKSTAR         # Here, you can override _any_ parameter
                                # defined in rc.wireless.conf, by prepending
                                # 'WLAN_' to the parameter's name. Useful for
                                # those with multiple wireless interfaces.
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=thekey"
                                # Some drivers require a private ioctl to be
                                # set through the iwpriv command. If more than
                                # one is required, you can place them in the
                                # IWPRIV parameter (separated with the pipe (|)
                                # character, see the example).
Il secondo file :

Codice: Seleziona tutto

# Wireless LAN adapter configuration
#
# Theory of operation : 
#
# The script attempts to match a block of settings to the specific wireless
# card inserted, the *first* block matching the card is used.
# The address format is "hwaddr", with * as a wildcard.
# 'hwaddr' is the unique MAC address identifier of the wireless card.
# The MAC address is usually printed on the card, or can be found via ifconfig.
# Some examples here use only half of the MAC address with a wildcard to
# match a whole family of cards...
#
# All the Wireless specific configuration is done through the Wireless
# Extensions, so we will just call 'iwconfig' with the right parameters
# defined below.
# Of course, you need to have iwconfig installled on your system.
# To download iwconfig, or for more info on Wireless Extensions :
#	http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
#
# Note : you don't need to fill all parameters, leave them blank, in most
# cases the driver will initialise itself with sane defaults values or
# automatically figure out the value... And no drivers do support all
# possible settings...
#
# -- This is a modified '/etc/pcmcia/wireless.opts' script --
# -- I added sections for Prism/GT and Atheros based cards --
# --    (supported by the prism54 and madwifi drivers)     --
# --              16/sep/2004 * Eric Hameleers             --
#

VERBOSE=1

case "$HWADDR" in

## NOTE : Comment out the following five lines to activate the samples below ...
## --------- START SECTION TO REMOVE -----------
## Pick up any Access Point, should work on most 802.11 cards
*)
    INFO="Any ESSID"
    ESSID="any"
    ;;
## ---------- END SECTION TO REMOVE ------------


# Here are a few examples with a few Wireless LANs supported...
# The matching is done on the first 3 bytes of the MAC address

# SMC2835W EZ Connect g 2.4GHz 54 Mbps Wireless Cardbus Adapter 
00:04:E2:*)
    INFO="SMC2835W EZ Connect g 2.4GHz 54 Mbps Wireless Cardbus Adapter"
    # ESSID (extended network name) : My Network, any
    ESSID="any"
    # NWID/Domain (cell identifier) : 89AB, 100, off
    NWID=""
    # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
    MODE="Managed"
    # Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
    FREQ=""
    CHANNEL="7"
    # Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
    SENS=""
    # Bit rate : auto, 1M, 11M,54M
    RATE="auto"
    # Encryption key : 4567-89AB-CD, s:password
    # Example for 40-bit encryption:
    #KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
    # Example for 104-bit encryption (aka 128-bit WEP):
    #KEY="d5ad2f05abd048ecf10b1c80c7"
    KEY=""
    # RTS threshold : off, 500
    RTS=""
    # Fragmentation threshold : off, 1000
    FRAG=""
    # Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
    IWCONFIG=""
    # iwspy parameters : + 01:23:45:67:89:AB
    IWSPY=""
    # iwpriv parameters : set_port 2, set_histo 50 60
    IWPRIV=""
;;

# Multiband Atheros based 802.11a/b/g universal NIC cards
00:05:4E:*)
    INFO="Multiband Atheros based 802.11a/b/g universal NIC"
    # ESSID (extended network name) : My Network, any
    ESSID=""
    # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
    MODE="Managed"
    # Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
    FREQ=""
    CHANNEL="7"
    # Bit rate : auto, 1M, 11M,54M
    RATE="auto"
    # Encryption key : 4567-89AB-CD, s:password
    # Example for 40-bit encryption:
    #KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
    # Example for 104-bit encryption (aka 128-bit WEP):
    #KEY="d5ad2f05abd048ecf10b1c80c7"
    KEY=""
    # Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
    IWCONFIG=""
    # iwspy parameters : + 01:23:45:67:89:AB
    IWSPY=""
    # iwpriv parameters : set_port 2, set_histo 50 60
    IWPRIV=""
    ;;

# Lucent Wavelan IEEE (+ Orinoco, RoamAbout and ELSA)
# Note : wvlan_cs driver only, and version 1.0.4+ for encryption support
00:60:1D:*|00:02:2D:*)
    INFO="Wavelan IEEE example (Lucent default settings)"
    ESSID="Wavelan Network"
    MODE="Managed"
    #RATE="auto"
    KEY="s:secu1"
    # To set all four keys, use :
    #KEY="s:secu1 [1] key s:secu2 [2] key s:secu3 [3] key s:secu4 [4] key [1]"
    # For the RG 1000 Residential Gateway: The ESSID is the identifier on
    # the unit, and the default key is the last 5 digits of the same.
    #ESSID="084d70"
    #KEY="s:84d70"
    ;;

# Cisco/Aironet 4800/3x0
# Note : MPL driver only (airo/airo_cs), version 1.3 or later
00:40:96:*|00:02:8A:*)
    INFO="Cisco/Aironet example (Cisco default settings)"
    ESSID="any"
    # To set all four ESSID, use iwconfig v21 and the same trick as above
    MODE="Managed"
    #RATE="11M auto"
    #KEY="d5ad2f05abd048ecf10b1c80c7"
    KEY="off"
    ;;

# Samsung MagicLan (+ some other PrismII cards)
# Note : Samsung binary library driver, version 1.20 or later
00:00:F0:*|00:02:78:*)
    INFO="Samsung MagicLan example (Samsung default settings)"
    ESSID="any"
    MODE="Managed"
    CHANNEL="4"
    RATE="auto"
    #KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
    #IWCONFIG="power on"
    ;;

# Raytheon Raylink/WebGear Aviator2.4
# Note : doesn't work yet, please use for debugging only :-(
00:00:8F:*|00:00:F1:*)
    INFO="Raylink/Aviator2.4 example (Aviator default ad-hoc setting)"
    ESSID="ADHOC_ESSID"
    MODE="Ad-Hoc"
    RATE="auto"
    IWPRIV="set_framing 1"
    ;;

# Old Lucent Wavelan
08:00:0E:*)
    INFO="Wavelan example (Lucent default settings)"
    NWID="0100"
    MODE="Ad-Hoc"
    FREQ="2.425G"
    KEY="off"
    ;;

# Netwave (Xircom Netwave/Netwave Airsurfer)
00:80:C7:*)
    INFO="Netwave example (Netwave default settings)"
    NWID="100"
    KEY="00"
    ;;

# Proxim RangeLan2/Symphony (what is the MAC address ???)
XX:XX:XX:*)
    INFO="Proxim RangeLan2/Symphony example"
    NWID="0"
    MODE="Master"
    CHANNEL="15"
    IWPRIV="setsubchan 1"
    ;;

# No Wires Needed Swallow 550 and 1100 setting (what is the MAC address ???)
XX:XX:XX:*)
    INFO="NWN Swallow example"
    ESSID="session"
    KEY="0000-0000-00 open"
    ;;

# Symbol Spectrum24 setting (what is the MAC address ???)
XX:XX:XX:*)
    INFO="Symbol Spectrum24 example"
    ESSID="Essid string"
    ;;

# Generic example (decribe all possible settings)
*)
    INFO="Fill with your own settings..."
    # ESSID (extended network name) : My Network, any
    ESSID=""
    # NWID/Domain (cell identifier) : 89AB, 100, off
    NWID=""
    # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
    MODE=""
    # Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
    FREQ=""
    CHANNEL=""
    # Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
    SENS=""
    # Bit rate : auto, 1M, 11M
    RATE=""
    # Encryption key : 4567-89AB-CD, s:password
    KEY=""
    # RTS threshold : off, 500
    RTS=""
    # Fragmentation threshold : off, 1000
    FRAG=""
    # Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
    IWCONFIG=""
    # iwspy parameters : + 01:23:45:67:89:AB
    IWSPY=""
    # iwpriv parameters : set_port 2, set_histo 50 60
    IWPRIV=""
    ;;
esac

Infine il terzo :

Codice: Seleziona tutto

# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.

# PCI device 0x8086:0x4220 (ipw2200)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:12:f0:e8:9e:4c", ATTR{type}=="1", NAME="eth0"

# PCI device 0x14e4:0x4401 (b44)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:c0:9f:c4:c5:72", ATTR{type}=="1", NAME="eth1"

Avatar utente
conraid
Staff
Staff
Messaggi: 13631
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: Slackware e scheda di rete lan!

Messaggio da conraid »

Sembra tutto ok
hai provato a fare come ti ho detto?

Codice: Seleziona tutto

# ifconfig eth0 down
# /etc/rc.d/rc.inet1 restart
controlla anche se hai dhpcd attivo, non si sa mai
al limite riavvia (lo so non devo dirlo)

comunque, io se fossi in te cambierei i file così

rc.inet1.conf

Codice: Seleziona tutto

IPADDR[0]="192.168.1.200"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

IPADDR[1]="
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
il resto uguale

/etc/udev/rules.d/70-persistent-net.rules

Codice: Seleziona tutto

# PCI device 0x8086:0x4220 (ipw2200)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:12:f0:e8:9e:4c", ATTR{type}=="1", NAME="wlan0"

# PCI device 0x14e4:0x4401 (b44)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:c0:9f:c4:c5:72", ATTR{type}=="1", NAME="eth0"
Così da avere sempre eth0 come "wired" e wlan0 come "wireless"

Se fai questo devi riavviare hal, udev, inet1, etc...

flashman
Linux 1.x
Linux 1.x
Messaggi: 109
Iscritto il: mar 16 set 2008, 17:32
Slackware: 12.1
Kernel: 2.6.24.5
Desktop: fluxbox

Re: Slackware e scheda di rete lan!

Messaggio da flashman »

OK!

Ho fatto le modifiche che mi hai suggerito e ho riavviato.

Sembra tutto OK!

ifconfig :

Codice: Seleziona tutto

eth0      Link encap:Ethernet  HWaddr 00:c0:9f:c4:c5:72  
          inet addr:192.168.1.200  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:17 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:12:f0:e8:9e:4c  
          inet6 addr: fe80::212:f0ff:fee8:9e4c/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:26 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:16 Base address:0xe000 Memory:b010b000-b010bfff 

e route :

Codice: Seleziona tutto

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         192.168.1.1     0.0.0.0         UG    1      0        0 eth0
Adesso attacco provo a collegare il cavo di rete ? Dovrei riuscire a pingare ?

Provo e ti faccio sapere!

Avatar utente
conraid
Staff
Staff
Messaggi: 13631
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: Slackware e scheda di rete lan!

Messaggio da conraid »

flashman ha scritto: Adesso attacco provo a collegare il cavo di rete ? Dovrei riuscire a pingare ?
Se il router ha quell'IP certo che dovresti riuscirci.
Per navigare è un'altra cosa, ti mancano i dns, ma lo sai vero? ;-)

flashman
Linux 1.x
Linux 1.x
Messaggi: 109
Iscritto il: mar 16 set 2008, 17:32
Slackware: 12.1
Kernel: 2.6.24.5
Desktop: fluxbox

Re: Slackware e scheda di rete lan!

Messaggio da flashman »

Dunque riesco a pingare. Tutto OK!

Ti confesso che ho aperto anche firefox e non so come ma riesco navigare anche se in maniera lentissima. ( look up for www.XXXXXX.com sta un pezzo, poi scatta all'improvviso)

Ho letto la parte di S4D per navigare. Ma non so spiegarmi come funziona. DNS ? :-k

Puoi darmi qualche chiarimento ? O qualche documento ?

Ti ringrazio per l'aiuto e per il tempo che mi hai dedicato. A proposito : Devo rieditare il titolo per scrivere risolto o c'è qualche altro modo ?

Grazie di tutto, flashman!

Avatar utente
conraid
Staff
Staff
Messaggi: 13631
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: Slackware e scheda di rete lan!

Messaggio da conraid »

Devi rieditare il titolo

Per i dns, inserisci quelli del tuo provider in /etc/resolv.conf, altrimenti leggi qui
http://www.slackers.it/2008/09/15/cachi ... -con-bind/

Rispondi