[Linuxtrent] Problemi di rete

  • From: Danilo.Paissan@xxxxxxxxxxx
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Wed, 16 Oct 2002 09:14:13 +0200

Salve a tutti,
come al solito mi sono incasinato ! Ho una macchina con 4 schede di rete 
con IP fisso e Woody kernel 2.4.19, il file /etc/network/interfaces e` 
questo qui sotto:

macchinina:/etc/network# more interfaces
### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE 
IT.
auto lo eth0 eth1 eth3

iface lo inet loopback

iface eth0 inet static
        address xxx.xxx.xxx.19
        netmask xxx.xxx.xxx.0
        gateway xxx.xxx.xxx.254

iface eth1 inet static
        address xxx.xxx.xxx.20
        netmask xxx.xxx.xxx.0
        gateway xxx.xxx.xxx.254

iface eth2 inet static
        address xxx.xxx.xxx.21
        netmask xxx.xxx.xxx.0
        gateway xxx.xxx.xxx.254

iface eth3 inet static
        address xxx.xxx.xxx.22
        netmask xxx.xxx.xxx.0
        gateway xxx.xxx.xxx.254


### END OF DEBCONF AREA.  PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.

Il mio problema e` che quando cerco di collegarmi in qualsiasi modo alla 
macchina la cosa e` lentissima, ad esempio per il telnet ci metto anche un 
minuto e piu`. Inoltre pingando alcuni indirizzi non li vedo proprio. 
La Routing table e` questa qui sotto:

macchinina:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
xxx.xxx.xxx.0   *               xxx.xxx.xxx.0   U     0      0        0 
eth0
xxx.xxx.xxx.0   *               xxx.xxx.xxx.0   U     0      0        0 
eth1
xxx.xxx.xxx.0   *               xxx.xxx.xxx.0   U     0      0        0 
eth2
xxx.xxx.xxx.0   *               xxx.xxx.xxx.0   U     0      0        0 
eth3
default         xxx.xxx.xxx.254 0.0.0.0         UG    0      0        0 
eth0
default         xxx.xxx.xxx.254 0.0.0.0         UG    0      0        0 
eth1
default         xxx.xxx.xxx.254 0.0.0.0         UG    0      0        0 
eth2
default         xxx.xxx.xxx.254 0.0.0.0         UG    0      0        0 
eth3

Da notare che le ultime 4 righe compaiono molto dopo le prime 4.

Se pero` tiro giu` tutte le schede tranne eth0, al cui indirizzo e` legato 
anche il nome della macchina nel DNS, tutto funziona abbastanza bene. 
Funziona un po' meglio anche se setto Metric a 0,1,2,3, almeno le ultime 4 
righe compaiono istantaneamente.

Ora io ho letto un po` di documenti qui e la` ma credo di aver fatto un 
po' di confusione, qualcuno mi puo` dare una mano ?
Inoltre ho visto che su un'altra macchina con Woody esiste sotto /etc il 
file networks che invece in questa macchina non esiste, e` un problema ? A 
cosa serve ?
Il file /etc/nsswitch.conf e` il seguente:

macchinina:/etc# more nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

Qualcuno mi puo` chiarire un po' tutto il discorso su come configurare la 
rete su questa macchina ? Grazie.

-- 
Per iscriversi  (o disiscriversi), basta spedire un  messaggio con SOGGETTO
"subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx


Other related posts: