Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Configurazione Server DHCP [2gateway]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
kattivo
Guru
Guru


Joined: 28 Jan 2005
Posts: 450
Location: Treviso

PostPosted: Thu Oct 20, 2005 9:05 am    Post subject: Configurazione Server DHCP [2gateway] Reply with quote

Ora che sono riuscito ad avviare il server, ho trovato un'altro problema.
Io devo fare in modo che questo server faccia da server DHCP.
considerando che ha altre 12 schede di rete montate. in poche parole
gl'altri client verranno attaccati direttamente al server..
il server sara' attakkato a 2 gateway, pero' dovra' funzionarne uno alla volta. quando salta un gateway deve partire quell'altro
Il problema è:
come faccio a impostare le schede di rete, per farli fare il dhcp?
come faccio a impostare i gateway?
Se potete aiutarmi in qualche modo ne sarei felice!
Grazie
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Thu Oct 20, 2005 9:52 am    Post subject: Reply with quote

Per quanto riguarda il dhcp:
-devi installare un dhcp server
-devi configurare ogni scheda con un ip/netmask
-configuri il server dhcp

Scusa se le istruzioni sono vaghe ma anche la tua richiesta è vaga ...
Tutte le 12 schede dovranno essere su 12 sotto reti diverse e questo incasina le cose (sempre che tu voglia far comunicare i client tra di loro).
Spiega meglio la tua situazione e magari posso essere più dettagliato nell'aiutarti.


Per quanto riguarda i gateway dovresti metterli in cluster (ma non è una cosa proprio immediata).
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
kattivo
Guru
Guru


Joined: 28 Jan 2005
Posts: 450
Location: Treviso

PostPosted: Thu Oct 20, 2005 10:01 am    Post subject: Reply with quote

Allora cerchero' di spiegare bene il mio obbiettivo..
Questo server va su uno studio medico. il suo scopo è:
archiviare i dati, condividerli, fare da server dhcp, e per scopo di sicurezza deve funzionare con 2 gateway
in modo che se cade la linea c'e quella di backup.
Da quello che ho capito, te intendi installare le schede di rete in modo che appaiano tipo: eth0, eth0:1, eth0:2...ecc. giusto?in questo caso il comando di configurazione sarebbe:
Code:

ifconfig eth0:2 add 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.254 up

Km si devono vedersi tutti i client (se è possibile).
e per il server DNS che programma posso utilizzare?
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Oct 20, 2005 10:17 am    Post subject: Reply with quote

è più semplice fare un bridge, così puoi usare un'unica rete: il dhcp lo metti in ascolto sul bridge e come gateway per i client imposti il server stesso.

suppongo che i gateways siano due routers su altrettante linee adsl con provider diversi.
in questo caso, come guida puoi usare il classico esempio riportato su LARTC

ps
se gli indirizzi privati dei due gateways li metti nella stessa classe dei client, sul server devi disabilitare gli icmp-redirects in /etc/sysctl.conf
Code:
net.ipv4.conf.all.send_redirects = 0
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Thu Oct 20, 2005 10:22 am    Post subject: Reply with quote

kattivo wrote:
Allora cerchero' di spiegare bene il mio obbiettivo..
Questo server va su uno studio medico. il suo scopo è:
archiviare i dati, condividerli, fare da server dhcp, e per scopo di sicurezza deve funzionare con 2 gateway
in modo che se cade la linea c'e quella di backup.

Se posso permettermi il punto nevralgico è il server non il gateway e quindi dovrebbe venir clusterizzato il server.
Cmq se ti interessa ho visto che il numero di questo mese di Linux Magazine ha un interessante articolo sui cluster.
Chiedo scusa per la pubblicità.
kattivo wrote:

Da quello che ho capito, te intendi installare le schede di rete in modo che appaiano tipo: eth0, eth0:1, eth0:2...ecc. giusto?in questo caso il comando di configurazione sarebbe:
Code:

ifconfig eth0:2 add 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.254 up


Non proprio, quello che suggerivo io è ottenere eth0, eth1, eth2 ...
e la mia configurazione per la scheda su cui ho attivato il server dhcp (ho due schede) è la seguente (in /etc/conf.d/net)
Code:
iface_eth1="10.0.0.1 broadcast 10.0.0.255 netmask 255.255.255.0"

ma con più schede sulla stessa macchina mi pare che tu non possa proprio metterle nella stessa rete quindi potresti fare qualcosa di simile
Code:

iface_eth1="10.0.1.1 broadcast 10.0.1.255 netmask 255.255.255.0"
iface_eth2="10.0.2.1 broadcast 10.0.2.255 netmask 255.255.255.0"
iface_eth3="10.0.3.1 broadcast 10.0.3.255 netmask 255.255.255.0"

kattivo wrote:

Km si devono vedersi tutti i client (se è possibile).

possibile è possibile ma dovresti mettere mano alla tabella di routing per instradare i pacchetti da una rete all'altra.
(almeno penso, non ho mai affrontato situazioni simili)
Se posso permettermi ti consiglierei uno switch ma dipende molto dalle richieste della rete.
kattivo wrote:

e per il server DNS che programma posso utilizzare?

Io ne ho installato uno ma non ha mai funzionato molto ma essendo solo un mio esperimento mi ci dedico a tempo perso.

Riflettendo sulla tua situazione mi chiedo quanto possa essere utile un server dhcp per una situazione simile...
Una rete del genere mi pare abbastanza "statica" e quindi il dhcp non dovrebbe servire molto, sarebbe forse preferibile impostare degli ip fissi, tanto se a ogni scheda viene collegato direttamente un client ti troveresti con 12 reti ognuna con 2 macchine (client e server).
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
kattivo
Guru
Guru


Joined: 28 Jan 2005
Posts: 450
Location: Treviso

PostPosted: Thu Oct 20, 2005 10:24 am    Post subject: Reply with quote

mM, mi hai parlato un po arabo...oltre l'esempio LARTC, hai sotto mano qualche link in italiano? l'inglese per me nn è il massimo. o magari se è una configurazione veloce, se mi spieghi dettagliamente come fare con una interfaccia. dopo lo applico alle altre..sempre se hai tempo..
Perchè sinceramente non ho la piu pallida idea di come iniziare.
gRazie

:roll: :roll: :roll: :roll:
Back to top
View user's profile Send private message
kattivo
Guru
Guru


Joined: 28 Jan 2005
Posts: 450
Location: Treviso

PostPosted: Thu Oct 20, 2005 10:34 am    Post subject: Reply with quote

In effeti lo metterei anche io lo switch, il problema è che questo studio è fissato che vuole sto maledetto server DNS..per motivi di sicurezza..
Allora mettiamo che io metta la configurazione a /etc/conf.d/net identica a questa:

Code:


iface_eth1="10.0.1.1 broadcast 10.0.1.255 netmask 255.255.255.0"
iface_eth2="10.0.2.1 broadcast 10.0.2.255 netmask 255.255.255.0"
iface_eth3="10.0.3.1 broadcast 10.0.3.255 netmask 255.255.255.0"


Ok ho capito che è un po un casino unire le rete.
Cambiando programma, mettiamo che a me interessi che tutti i computer (client) possono accedere alla rete del Server (samba), non dovrei far altro? o sbaglio?
piu che altro come faccio a dirli al server di condividere i gateway con tutta la rete?
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Oct 20, 2005 10:42 am    Post subject: Reply with quote

suggerirti una soluzione, non vuol dire implementarla al posto tuo no ?
quello che vuoi ottenere non è eccessivamente complesso, a patto che tu abbia una certa familiarità con il networking.
l'esempio su LARTC è già una base da cui partire, probabilmente dovrai apportare delle modifiche per addattarlo alle tue esigenze specifiche, ma questo presuppone che tu ne abbia compreso il funzionamento.
Se hai difficoltà in questo senso, piuttosto che chiedere un copia&incolla dovresti approfondire la tue conoscenze.
Back to top
View user's profile Send private message
kattivo
Guru
Guru


Joined: 28 Jan 2005
Posts: 450
Location: Treviso

PostPosted: Thu Oct 20, 2005 10:49 am    Post subject: Reply with quote

Quote:

a patto che tu abbia una certa familiarità con il networking.

É quello il problema, se avessi familiarità, non avrei bisogno di scrivere qui..
Ho fatto una prova, per provare ad aggiungere le interfaccie di rete. ma è fallita!

ho provato a modificare /etc/conf.d/net in questo modo :
Code:

config_eth0="( "192.168.0.102 netmask 255.255.255.0" )"
routes_eth0="( "default gw 192.168.0.254" )"
gateway="eth0/192.168.0.254"
iface_eth1="192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0"
iface_eth2="192.168.2.1 broadcast 192.168.2.255 netmask 255.255.255.0"
iface_eth3="192.168.3.1 broadcast 192.168.3.255 netmask 255.255.255.0"
iface_eth4="192.168.4.1 broadcast 192.168.4.255 netmask 255.255.255.0"
iface_eth5="192.168.5.1 broadcast 192.168.5.255 netmask 255.255.255.0"
iface_eth6="192.168.6.1 broadcast 192.168.6.255 netmask 255.255.255.0"
iface_eth7="192.168.7.1 broadcast 192.168.7.255 netmask 255.255.255.0"
iface_eth8="192.168.8.1 broadcast 192.168.8.255 netmask 255.255.255.0"
iface_eth9="192.168.9.1 broadcast 192.168.9.255 netmask 255.255.255.0"
iface_eth10="192.168.10.1 broadcast 192.168.10.255 netmask 255.255.255.0"
iface_eth11="192.168.11.1 broadcast 192.168.11.255 netmask 255.255.255.0"
iface_eth12="192.168.12.1 broadcast 192.168.12.255 netmask 255.255.255.0"
#iface_eth13="192.168.13.1 broadcast 192.168.13.255 netmask 255.255.255.0"

il problema è:
ho pensato che riavviando mi sarei trovato up le interfaccie, invece:

Code:


GenToo ~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:81:31:4E:08
          inet addr:192.168.0.102  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:81ff:fe31:4e08/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:247 errors:0 dropped:0 overruns:0 frame:0
          TX packets:196 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:26841 (26.2 Kb)  TX bytes:28452 (27.7 Kb)
          Base address:0x2800 Memory:dd220000-dd240000

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:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:200 (200.0 b)  TX bytes:200 (200.0 b)



non ho ottenuto niente. è normale?
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Thu Oct 20, 2005 11:09 am    Post subject: Reply with quote

kattivo wrote:
non ho ottenuto niente. è normale?

Si visto che mi sono dimenticato di specificarti che devi avere anche un file /etc/init.d/net.ethX per ogni interfaccia (basta copiare il file /etc/init.d/net.eth0 rinominandolo)
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Oct 20, 2005 11:12 am    Post subject: Reply with quote

kattivo wrote:
É quello il problema, se avessi familiarità, non avrei bisogno di scrivere qui..

manco per niente, cmq è OT e quindi basta.

per tornare IT, la conf corretta sarebbe
Code:
config_eth0=( parametri )
config_eth1=( parametri )
config_eth2=( parametri )

inoltre vanno creati i link a /etc/init.d/net.eth0 in /etc/init.d (net.eth1, net.eth2, etc)

imho, è una complicazione inutile che ti porta ad avere 12 punto-punto, ognuna con classe,gateway diversi.
più semplicemente, puoi creare un bridge specificando
Code:
bridge_br0="eth0 eth1 eth2 etc"
config_eth1=( "null" )
config_eth2=( "null" )
config_eth3=( "null" )
..
config_br0=( "192.168.0.102 netmask 255.255.255.0 broadcast 192.168.0.255" )

Code:
ln -s /etc/init.d/net.eth0 /etc/init.d/net.br0
/etc/init.d/net.br0 start

per tutti client: rete 192.168.0.0/24, gw 192.168.0.102


Last edited by makoomba on Thu Oct 20, 2005 11:15 am; edited 1 time in total
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Thu Oct 20, 2005 11:14 am    Post subject: Reply with quote

Mai provato a fare un bridge ma se insistono ad avere 12 schede direi che il bridge mi pare la soluzione migliore.
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
kattivo
Guru
Guru


Joined: 28 Jan 2005
Posts: 450
Location: Treviso

PostPosted: Thu Oct 20, 2005 1:42 pm    Post subject: Reply with quote

Ok ho provato a fare il bridge. sembra funzionare, almeno se attakko un cavo di rete del router nell'altre porte, me lo vede!
non so se sia una prova sufficente. ora al momento non posso fare altre prove di mia conoscenza. mi viene una domanda, se ora attaccassi un pc al server, e impostassi l'ip eth0 come gateway nel client, riuscirei ad avere la connesione a internet?
Back to top
View user's profile Send private message
kattivo
Guru
Guru


Joined: 28 Jan 2005
Posts: 450
Location: Treviso

PostPosted: Thu Oct 20, 2005 1:50 pm    Post subject: Reply with quote

Ok, sono riuscito a fare una prova piu "certa". ho attaco un pc al server. ho assegnato come gateway 192.168.0.102, e non funziona. se provo a pingare nn mi risponde. e nemmeno gl'altri ip delle altre eth*. cosa posso fare?
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Thu Oct 20, 2005 1:56 pm    Post subject: Reply with quote

Prima di tutto una domanda stupida (mi piace farle): il cavo con cui colleghi il client al server è normale o incrociato ?

Per permettere al client di uscire su internet devi anche abilitare sul server l' ip forwarding e dire al client quale dns interrogare (altrimenti non vedi i nomi dei siti ma solo gli ip).
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Oct 20, 2005 1:58 pm    Post subject: Reply with quote

esegui i comandi e posta il risultato
Code:
1) gzcat /proc/config.gz | grep -i bridge
2) ifconfig
3) dmesg | grep eth
Back to top
View user's profile Send private message
kattivo
Guru
Guru


Joined: 28 Jan 2005
Posts: 450
Location: Treviso

PostPosted: Thu Oct 20, 2005 2:04 pm    Post subject: Reply with quote

Ok é un po lungetto
Code:

gzcat /proc/config.gz | grep -i bridge
# PC-card bridges
# CONFIG_BRIDGE is not set


Code:

GenToo ~ # dmesg | grep eth
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth2: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth3: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth4: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth5: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth6: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth7: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth8: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth9: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth10: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth11: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth12: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth0: e1000_watchdog_task: NIC Link is Up 100 Mbps Full Duplex
e1000: eth11: e1000_watchdog_task: NIC Link is Up 100 Mbps Full Duplex
e1000: eth8: e1000_watchdog_task: NIC Link is Up 100 Mbps Full Duplex
eth1: no IPv6 routers present
eth0: no IPv6 routers present
eth4: no IPv6 routers present
eth5: no IPv6 routers present
eth9: no IPv6 routers present
eth12: no IPv6 routers present
eth3: no IPv6 routers present
eth2: no IPv6 routers present
eth11: no IPv6 routers present
eth10: no IPv6 routers present
eth7: no IPv6 routers present
eth6: no IPv6 routers present
eth8: no IPv6 routers present
GenToo ~ #                                       



e l'ultimo
Code:

GenToo ~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:81:31:4E:08
          inet addr:192.168.0.102  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:81ff:fe31:4e08/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:109 errors:0 dropped:0 overruns:0 frame:0
          TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13553 (13.2 Kb)  TX bytes:8692 (8.4 Kb)
          Base address:0x2800 Memory:dd220000-dd240000

eth1      Link encap:Ethernet  HWaddr 00:E0:81:31:4E:09
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:81ff:fe31:4e09/64 Scope:Link
          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)
          Base address:0x2840 Memory:dd240000-dd260000

eth2      Link encap:Ethernet  HWaddr 00:04:23:45:BA:D0
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::204:23ff:fe45:bad0/64 Scope:Link
          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)
          Base address:0x3000 Memory:dd300000-dd320000

eth3      Link encap:Ethernet  HWaddr 00:04:23:45:BA:D1
          inet addr:192.168.3.1  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::204:23ff:fe45:bad1/64 Scope:Link
          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)
          Base address:0x3040 Memory:dd320000-dd340000

eth4      Link encap:Ethernet  HWaddr 00:04:23:45:BA:D2
          inet addr:192.168.4.1  Bcast:192.168.4.255  Mask:255.255.255.0
          inet6 addr: fe80::204:23ff:fe45:bad2/64 Scope:Link
          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)
          Base address:0x3080 Memory:dd340000-dd360000

eth5      Link encap:Ethernet  HWaddr 00:04:23:45:BA:D3
          inet addr:192.168.5.1  Bcast:192.168.5.255  Mask:255.255.255.0
          inet6 addr: fe80::204:23ff:fe45:bad3/64 Scope:Link
          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)
          Base address:0x30c0 Memory:dd360000-dd380000

eth6      Link encap:Ethernet  HWaddr 00:04:23:45:B8:B4
          inet addr:192.168.6.1  Bcast:192.168.6.255  Mask:255.255.255.0
          inet6 addr: fe80::204:23ff:fe45:b8b4/64 Scope:Link
          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)
          Base address:0x4000 Memory:dd400000-dd420000

eth7      Link encap:Ethernet  HWaddr 00:04:23:45:B8:B5
          inet addr:192.168.7.1  Bcast:192.168.7.255  Mask:255.255.255.0
          inet6 addr: fe80::204:23ff:fe45:b8b5/64 Scope:Link
          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)
          Base address:0x4040 Memory:dd420000-dd440000

eth8      Link encap:Ethernet  HWaddr 00:04:23:45:B8:B6
          inet addr:192.168.8.1  Bcast:192.168.8.255  Mask:255.255.255.0
          inet6 addr: fe80::204:23ff:fe45:b8b6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:508 (508.0 b)  TX bytes:3476 (3.3 Kb)
          Base address:0x4080 Memory:dd440000-dd460000

eth9      Link encap:Ethernet  HWaddr 00:04:23:45:B8:B7
          inet addr:192.168.9.1  Bcast:192.168.9.255  Mask:255.255.255.0
          inet6 addr: fe80::204:23ff:fe45:b8b7/64 Scope:Link
          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)
          Base address:0x40c0 Memory:dd460000-dd480000

eth10     Link encap:Ethernet  HWaddr 00:0E:0C:06:05:A2
          inet addr:192.168.10.1  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::20e:cff:fe06:5a2/64 Scope:Link
          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)
          Base address:0x5000 Memory:dd620000-dd640000

eth11     Link encap:Ethernet  HWaddr 00:04:23:A7:BB:B2
          inet addr:192.168.11.1  Bcast:192.168.11.255  Mask:255.255.255.0
          inet6 addr: fe80::204:23ff:fea7:bbb2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:69 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7982 (7.7 Kb)  TX bytes:3476 (3.3 Kb)
          Base address:0x6000 Memory:dd740000-dd760000

eth12     Link encap:Ethernet  HWaddr 00:04:23:A7:BB:B3
          inet addr:192.168.12.1  Bcast:192.168.12.255  Mask:255.255.255.0
          inet6 addr: fe80::204:23ff:fea7:bbb3/64 Scope:Link
          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)
          Base address:0x6040 Memory:dd760000-dd780000

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:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:200 (200.0 b)  TX bytes:200 (200.0 b)

GenToo ~ #
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Oct 20, 2005 2:24 pm    Post subject: Reply with quote

1) non hai il supporto al bridging nel kernel, lo devi aggiungere
2) i cavi vanno bene
3) hai "residui" delle prove fatte in precedenza, dopo aver aggiornato il kernel, se i file di configurazione sono ok e non hai utilizzato rc-update, dovrebbe bastare
Code:
rc-update del net.eth0 default

e riavvio del server.
Back to top
View user's profile Send private message
kattivo
Guru
Guru


Joined: 28 Jan 2005
Posts: 450
Location: Treviso

PostPosted: Thu Oct 20, 2005 2:26 pm    Post subject: Reply with quote

Ho acceso la macchina attivando un monitor per vedere cosa mi diceva nel caricamento del kernel.. ho notato una cosa molto strana:
Code:

GenToo ~ # /etc/init.d/net.eth0 restart
/etc/conf.d/net: line 7: netmask: command not found
/etc/conf.d/net: line 10: gw: command not found
 * Stopping eth0
 *   Bringing down eth0
 *     Stopping dhcpcd on eth0 ...                                                                                         [ ok ]
 *     Shutting down eth0 ...                                                                                              [ ok ]
 * Starting eth0
 *   Bringing up eth0
 *     Configuration not set for eth0 - assuming dhcp
 *     dhcp
 *       Running dhcpcd ...                                                                                                [ ok ]
 *       eth0 received address 192.168.0.102
 *   Adding routes
 *     default gw 192.168.0.254 ...                                                                                        [ !! ]
GenToo ~ #               


e anche per le altre interfaccie:
Code:

GenToo ~ # /etc/init.d/net.eth3 restart
/etc/conf.d/net: line 7: netmask: command not found
/etc/conf.d/net: line 10: gw: command not found
 * Stopping eth3
 *   Bringing down eth3
 *     Shutting down eth3 ...                                                                                              [ ok ]
 * Starting eth3
 *   Bringing up eth3
 *     192.168.3.1                                                                                                         [ ok ]
GenToo ~ #                       


In poche parole ho notato che non mi prende l'indirizzo statico. ma prende quello del dhcp (non me ne ero reso conto prima xche è lo stesso ip)
Se l'errore puo' essere in /etc/conf.d/net, ve lo posto. io non ho notato errori
Code:

#config_eth0="( "192.168.0.102 netmask 255.255.255.0" )"
config_eth0="( "192.168.0.103 netmask 255.255.255.0" )"
routes_eth0="( "default gw 192.168.0.254" )"
gateway="eth0/192.168.0.254"
##ponte bridge
bridge_br0="eth0 eth1 eth2 eth3 eth4 eth5 eth6 eth7 eth8 eth9 eth10 eth11 eth12"
#config_br0="192.168.0.102 netmask 255.255.255.0 broadcast 192.168.0.255"
#config_br0=( "192.168.0.103 netmask 255.255.255.0 broadcast 192.168.0.255" )
config_br0=( "192.168.0.102" )
config_eth1="192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0"
config_eth2="192.168.2.1 broadcast 192.168.2.255 netmask 255.255.255.0"
config_eth3="192.168.3.1 broadcast 192.168.3.255 netmask 255.255.255.0"
config_eth4="192.168.4.1 broadcast 192.168.4.255 netmask 255.255.255.0"
config_eth5="192.168.5.1 broadcast 192.168.5.255 netmask 255.255.255.0"
config_eth6="192.168.6.1 broadcast 192.168.6.255 netmask 255.255.255.0"
config_eth7="192.168.7.1 broadcast 192.168.7.255 netmask 255.255.255.0"
config_eth8="192.168.8.1 broadcast 192.168.8.255 netmask 255.255.255.0"
config_eth9="192.168.9.1 broadcast 192.168.9.255 netmask 255.255.255.0"
config_eth10="192.168.10.1 broadcast 192.168.10.255 netmask 255.255.255.0"
config_eth11="192.168.11.1 broadcast 192.168.11.255 netmask 255.255.255.0"
config_eth12="192.168.12.1 broadcast 192.168.12.255 netmask 255.255.255.0"
#iface_eth13="192.168.13.1 broadcast 192.168.13.255 netmask 255.255.255.0"
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Thu Oct 20, 2005 2:30 pm    Post subject: Reply with quote

Hai mischiato la configurazione che ti ho proposto io con quella che ti ha proposto makoomba ...
Visto che usi il bridge devi mettere
Code:
config_eth1=( "null" )
non quello che ti avevo proposto io.
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
kattivo
Guru
Guru


Joined: 28 Jan 2005
Posts: 450
Location: Treviso

PostPosted: Thu Oct 20, 2005 2:45 pm    Post subject: Reply with quote

Scusa l'ignoranza. ma non trovo i moduli nel kernel per il bridge. non pensavo neanche esistessero..puoi dirmi sotto che cartella sono?
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Thu Oct 20, 2005 2:49 pm    Post subject: Reply with quote

Piccolo trucco...
quando configuri il kernel con make menuconfig basta premere / per iniziare una ricerca, a quel punto scrivi bridge e premi invio.
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Oct 20, 2005 2:54 pm    Post subject: Reply with quote

kattivo wrote:
Code:
/etc/conf.d/net: line 7: netmask: command not found
/etc/conf.d/net: line 10: gw: command not found

8O ma che versione di baselayout hai ?
Back to top
View user's profile Send private message
kattivo
Guru
Guru


Joined: 28 Jan 2005
Posts: 450
Location: Treviso

PostPosted: Thu Oct 20, 2005 3:32 pm    Post subject: Reply with quote

ok ho ricompilato il kernel con quel supporto.
risultato:
la rete non parte piu. al boot mi dice che non trova i moduli nel kernel della scheda di rete:(
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Oct 20, 2005 3:42 pm    Post subject: Reply with quote

.... cosa hai cambiato nel kernel e come lo hai compilato ?
genkernel ? manualmente ? che comandi hai usato ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum