[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problema con LAN



Premesso che sono su Fast Web e quindi il mio collegamento a Internet passa dalla LAN, nel mio nuovo PC di pochi giorni di vita si verifica la stranezza che all'avvio non si ripristina il collegamento locale, ma solo quello verso l'esterno. Il collegamento tuttavia si apre senza problemi col comando manuale e dura fino al successivo riavvio. Sperando che qualcuno sia in grado di suggerirmi dove sbaglio incollo qui appresso i dettagli tecnici.

il file /etc/network/interfaces così recita:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth1
iface eth1 inet dhcp

#Indirizzo statico di rete locale
auto eth1:1
iface eth1:1 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0

la risposta a ifconfig è la seguente:
pc-studio:~# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:1B:FC:AF:A8:12
         inet addr:23.10.67.82  Bcast:23.10.67.255  Mask:255.255.255.0
         inet6 addr: fe80::21b:fcff:feaf:a812/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:3999 errors:0 dropped:0 overruns:0 frame:0
         TX packets:3069 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:3553400 (3.3 MiB)  TX bytes:483338 (472.0 KiB)
         Interrupt:225 Base address:0x2000

eth1:1    Link encap:Ethernet  HWaddr 00:1B:FC:AF:A8:12
         inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         Interrupt:225 Base address:0x2000

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:206 errors:0 dropped:0 overruns:0 frame:0
         TX packets:206 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:71513 (69.8 KiB)  TX bytes:71513 (69.8 KiB)

Dopo il riavvio del PC la parte
eth1:1    Link encap:Ethernet  HWaddr 00:1B:FC:AF:A8:12
         inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         Interrupt:225 Base address:0x2000
manca completamente.

al comando ifup il sistema risponde così:
pc-studio:~# ifup eth1:1
ifup: interface eth1:1 already configured

allora segue:
pc-studio:~# ifdown eth1:1
SIOCSIFFLAGS: Cannot assign requested address
pc-studio:~# ifup eth1:1
pc-studio:~# ifconfig

e, per fortuna tutto è tornato a posto.
La mia ipotesi è che ci sia qualche dettaglio sbagliato in /etc/network/interfaces

Grazie della pazienza.

--
Giorgio Bompiani

Lo scaffale dei miei libri: http://stores.lulu.com/spino
Linux User # 454514 http://counter.li.org/



Reply to: