configurazione seconda scheda ethernet

Riconoscimento, installazione e configurazione delle periferiche.
veru
Prode Principiante
Messaggi: 5
Iscrizione: domenica 16 dicembre 2007, 19:41

configurazione seconda scheda ethernet

Messaggio da veru »

Salve e GRAZIE a tutti!
E' da pochissimo che ho installato sul mio server Ubuntu 6.06 e finora sono riuscita ad andare avanti solo grazie ad infinite letture sul wiki e forum.. ma adesso mi sono bloccata!  >:(

Vorrei configurare il mio server come gatway di riferimento, in modo da avere solo lui collegato verso l'esterno che condivide la connessione tramite LAN.

Attraverso la eth0 riesco ad uscire in rete senza nessun problema
Vorrei configurare la eth1 come gatway per la rete lan locale

ho impostato il mio /etc/network/interfaces così

Codice: Seleziona tutto

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 212.4.7.254
netmask 255.255.255.248
network 212.4.7.248
broadcast 212.4.7.255
gateway 212.4.7.249

auto eth1
iface eth1 inet static
address 212.4.7.253
netmask 255.255.255.248
network 212.4.7.248
broadcast 212.4.7.255
gateway 212.4.7.249
ma se lancio l'ifconfig la scheda eth1 non viene citata

Codice: Seleziona tutto

eth0      Link encap:Ethernet  HWaddr 00:1A:4B:A8:50:5C
          inet addr:212.4.7.254  Bcast:212.4.7.255  Mask:255.255.255.248
          inet6 addr: fe80::21a:4bff:fea8:505c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1914 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1888 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1479351 (1.4 MiB)  TX bytes:443730 (433.3 KiB)
          Interrupt:169 Memory:fa000000-fa011100

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:569 errors:0 dropped:0 overruns:0 frame:0
          TX packets:569 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:28472 (27.8 KiB)  TX bytes:28472 (27.8 KiB)
Vi posto anche il risultato di

Codice: Seleziona tutto

sudo /etc/init.d/networking restart

Codice: Seleziona tutto

* Reconfiguring network interfaces... SIOCSIFADDR: No such device
eth1: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
eth1: ERROR while getting interface flags: No such device
eth1: ERROR while getting interface flags: No such device
Failed to bring up eth1.
                                                                         [ ok ]
Forse vi serve anche "lspci"

Codice: Seleziona tutto

0000:00:00.0 Host bridge: Intel Corporation 5000Z Chipset Memory Controller Hub (rev b1)
0000:00:02.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 2-3 (rev b1)
0000:00:03.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 3 (rev b1)
0000:00:04.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 4 (rev b1)
0000:00:05.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 5 (rev b1)
0000:00:10.0 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1)
0000:00:10.1 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1)
0000:00:10.2 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1)
0000:00:11.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev b1)
0000:00:13.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev b1)
0000:00:15.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev b1)
0000:00:16.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev b1)
0000:00:1c.0 PCI bridge: Intel Corporation 631xESB/632xESB/3100 Chipset PCI Express Root Port 1 (rev 09)
0000:00:1d.0 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #1 (rev 09)
0000:00:1d.1 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #2 (rev 09)
0000:00:1d.2 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #3 (rev 09)
0000:00:1d.3 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #4 (rev 09)
0000:00:1d.7 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset EHCI USB2 Controller (rev 09)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d9)
0000:00:1f.0 ISA bridge: Intel Corporation 631xESB/632xESB/3100 Chipset LPC Interface Controller (rev 09)
0000:00:1f.1 IDE interface: Intel Corporation 631xESB/632xESB IDE Controller (rev 09)
0000:01:03.0 VGA compatible controller: ATI Technologies Inc ES1000 (rev 02)
0000:01:04.0 System peripheral: Compaq Computer Corporation Integrated Lights Out Controller (rev 03)
0000:01:04.2 System peripheral: Compaq Computer Corporation Integrated Lights Out  Processor (rev 03)
0000:01:04.4 USB Controller: Hewlett-Packard Company Proliant iLO2 virtual USB controller
0000:01:04.6 IPMI SMIC interface: Hewlett-Packard Company Proliant iLO2 virtual UART
0000:02:00.0 PCI bridge: Broadcom EPB PCI-Express to PCI-X Bridge (rev c3)
0000:03:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)
0000:04:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Upstream Port (rev 01)
0000:04:00.3 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express to PCI-X Bridge (rev 01)
0000:05:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E1 (rev 01)
0000:05:01.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E2 (rev 01)
0000:12:00.0 PCI bridge: Broadcom EPB PCI-Express to PCI-X Bridge (rev b4)
0000:13:04.0 PCI bridge: Broadcom BCM5785 [HT1000] PCI/PCI-X Bridge (rev b2)
0000:13:08.0 RAID bus controller: Hewlett-Packard Company Smart Array E200i (SAS Controller)
administrator@asterisc:~$ sudo lspci
0000:00:00.0 Host bridge: Intel Corporation 5000Z Chipset Memory Controller Hub (rev b1)
0000:00:02.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 2-3 (rev b1)
0000:00:03.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 3 (rev b1)
0000:00:04.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 4 (rev b1)
0000:00:05.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 5 (rev b1)
0000:00:10.0 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1)
0000:00:10.1 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1)
0000:00:10.2 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1)
0000:00:11.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev b1)
0000:00:13.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev b1)
0000:00:15.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev b1)
0000:00:16.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev b1)
0000:00:1c.0 PCI bridge: Intel Corporation 631xESB/632xESB/3100 Chipset PCI Express Root Port 1 (rev 09)
0000:00:1d.0 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #1 (rev 09)
0000:00:1d.1 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #2 (rev 09)
0000:00:1d.2 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #3 (rev 09)
0000:00:1d.3 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #4 (rev 09)
0000:00:1d.7 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset EHCI USB2 Controller (rev 09)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d9)
0000:00:1f.0 ISA bridge: Intel Corporation 631xESB/632xESB/3100 Chipset LPC Interface Controller (rev 09)
0000:00:1f.1 IDE interface: Intel Corporation 631xESB/632xESB IDE Controller (rev 09)
0000:01:03.0 VGA compatible controller: ATI Technologies Inc ES1000 (rev 02)
0000:01:04.0 System peripheral: Compaq Computer Corporation Integrated Lights Out Controller (rev 03)
0000:01:04.2 System peripheral: Compaq Computer Corporation Integrated Lights Out  Processor (rev 03)
0000:01:04.4 USB Controller: Hewlett-Packard Company Proliant iLO2 virtual USB controller
0000:01:04.6 IPMI SMIC interface: Hewlett-Packard Company Proliant iLO2 virtual UART
0000:02:00.0 PCI bridge: Broadcom EPB PCI-Express to PCI-X Bridge (rev c3)
0000:03:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)
0000:04:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Upstream Port (rev 01)
0000:04:00.3 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express to PCI-X Bridge (rev 01)
0000:05:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E1 (rev 01)
0000:05:01.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E2 (rev 01)
0000:12:00.0 PCI bridge: Broadcom EPB PCI-Express to PCI-X Bridge (rev b4)
0000:13:04.0 PCI bridge: Broadcom BCM5785 [HT1000] PCI/PCI-X Bridge (rev b2)
0000:13:08.0 RAID bus controller: Hewlett-Packard Company Smart Array E200i (SAS Controller)
Mi sfugge qualche cosa?  :-[
Ultima modifica di veru il lunedì 18 febbraio 2008, 11:51, modificato 1 volta in totale.
veru
Prode Principiante
Messaggi: 5
Iscrizione: domenica 16 dicembre 2007, 19:41

Re: configurazione seconda scheda ethernet

Messaggio da veru »

Ho pensato potesse essere un problema di driver, allora ho scaricato dal sito della Broadcom il driver per la NetXtreme II, nel formato rpm.

Credo di averlo installato correttamente

Codice: Seleziona tutto

 sudo rpm -ivh bnx2-1.7.1c-1.src.rpm
1:bnx2                   ########################################### [100%] 
Ho riavviato tutto il sistema ma se riavvio il networking, stesso errore: Failed to bring up eth1.

:'(
Avatar utente
Flexo87
Prode Principiante
Messaggi: 18
Iscrizione: domenica 29 ottobre 2006, 15:54

Re: configurazione seconda scheda ethernet

Messaggio da Flexo87 »

E' strano che ifconfig non ti riconosca la scheda...hai provato a lanciare ifconfig -a (mostra anche le interfacce disattivate)?
Cmq il file interfaces sembra apposto....solo che la eth1 nel tuo caso non dovrebbe avere un gateway. Te lo dico per esperienza xsonale xke' anke io uso ubuntu 6.06 server e praticamente ho fatto la stessa cosa che vuoi fare tu... qui c'e il mio file interfaces... e cosi' funziona!!

flexo@FlexServer:~$ cat /etc/network/interfaces_backup
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
      address 192.168.1.100

      netmask 255.255.255.0
      gateway 192.168.1.254


auto eth2
iface eth2 inet static
address 192.168.0.1
netmask 255.255.255.0

cosi' e' minimale ma ti posso assicurare che funziona (previa configurazione di firestarter). cmq controlla prima che ifconfig -a ti mostri la eth1 se no e' inutile andare avanti!
veru
Prode Principiante
Messaggi: 5
Iscrizione: domenica 16 dicembre 2007, 19:41

[Risolto] Re: configurazione seconda scheda ethernet

Messaggio da veru »

ifconfig -a non mi vede la eth1.. perchè non esiste nessuna eht1  ;D
Andando a vedere le caratteristiche del mio server ho letto "2 connettori di rete RJ-45 (1 dedicato a iLO)"
Sarei curiosa di sapere a cosa serve.. se qualcuno potesse illuminarmi, ne sarei grata!

Nel mentre ho montato una seconda scheda di rete PCI e tutto funziona a meraviglia  (good)
Ho levato il gateway dalla eth1: non andava proprio con i parametri completi (Grazie a Flexo87)
Scrivi risposta

Ritorna a “Driver e periferiche”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 14 ospiti