[Linux-Biella] Ancora sulla scheda di rete

Luca Bertoncello linux@ml.bilug.linux.it
Wed, 03 Mar 2004 17:57:55 +0000


Ciao a tutti!

Stiamo sconfinando nel ridicolo...

Ho cancellato la configurazione della scheda di rete da control-panel e l'ho
creata ex-novo a manina con il comando:

/sbin/ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up

Con ifconfig vedo:
[lucabert@bilbo lucabert]$ /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:C0:DF:62:08:E9
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:11 Base address:0xd800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:20761 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20761 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

e con route -n vedo:
[lucabert@bilbo lucabert]$ /sbin/route -n
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

Tutto continua come prima...
Il fatto strano e' che, se disattivo eth0 e rimango solo con lo, facendo un ping
a 192.168.1.1 RISPONDE!!!
Tcpdump, in questo caso mi ritorna:

18:49:44.294426 > 192.168.1.1 > 192.168.1.1: icmp: echo request
18:49:44.294426 < 192.168.1.1 > 192.168.1.1: icmp: echo request
18:49:44.294503 > 192.168.1.1 > 192.168.1.1: icmp: echo reply
18:49:44.294503 < 192.168.1.1 > 192.168.1.1: icmp: echo reply
18:49:44.299749 > localhost.1093 > localhost.domain: 52549+ PTR?
1.1.168.192.in-addr.arpa. (42)
18:49:44.299749 < localhost.1093 > localhost.domain: 52549+ PTR?
1.1.168.192.in-addr.arpa. (42)
18:49:44.299816 > localhost > localhost: icmp: localhost udp port domain
unreachable [tos 0xc0]
18:49:44.299816 < localhost > localhost: icmp: localhost udp port domain
unreachable [tos 0xc0]

E' normale?!?
Con tutte e due le interfaccie, un tcpdump -i lo ritorna, per un semplice ping a
192.168.1.1:

18:55:42.017075 > localhost.1094 > localhost.domain: 18465+ A?
bilbo.lucabert.intra. (38)
18:55:42.017075 < localhost.1094 > localhost.domain: 18465+ A?
bilbo.lucabert.intra. (38)
18:55:42.017438 > localhost.domain > localhost.1094: 18465 2/0/0 CNAME
lucabert.intra., A bilbo.lucabert.intra (82)
18:55:42.017438 < localhost.domain > localhost.1094: 18465 2/0/0 CNAME
lucabert.intra., A bilbo.lucabert.intra (82)
18:55:42.021783 > bilbo.lucabert.intra > bilbo.lucabert.intra: icmp: echo
request
18:55:42.021783 < bilbo.lucabert.intra > bilbo.lucabert.intra: icmp: echo
request
18:55:42.021850 > bilbo.lucabert.intra > bilbo.lucabert.intra: icmp: echo reply
18:55:42.021850 < bilbo.lucabert.intra > bilbo.lucabert.intra: icmp: echo reply
18:55:42.023731 > localhost.1094 > localhost.domain: 18466+ PTR?
1.1.168.192.in-addr.arpa. (42)
18:55:42.023731 < localhost.1094 > localhost.domain: 18466+ PTR?
1.1.168.192.in-addr.arpa. (42)
18:55:42.024044 > localhost.domain > localhost.1094: 18466* 1/1/1 PTR
bilbo.lucabert.intra. (131)
18:55:42.024044 < localhost.domain > localhost.1094: 18466* 1/1/1 PTR
bilbo.lucabert.intra. (131)

Inutile dire che su eth0 non passa nulla...
La cosa che pero' mi incuriosisce e' che la scheda pare fare qualcosa, in quanto
le lucette sulla scheda e sull'Hub sono accese (per segnalare il collegamento).
Quindi non e' totalmente morta...

Se pero' pingo un'altro indirizzo, per esempio il 192.168.1.2 (che non e' ancora
collegato), vedo con un tcpdump -i eth0:

18:57:00.896242 > arp who-has 192.168.1.2 tell bilbo.lucabert.intra
(0:c0:df:62:8:e9)
18:57:01.890032 > arp who-has 192.168.1.2 tell bilbo.lucabert.intra
(0:c0:df:62:8:e9)
18:57:02.890034 > arp who-has 192.168.1.2 tell bilbo.lucabert.intra
(0:c0:df:62:8:e9)

E non succede niente su lo...

Che cosa devo pensare?!?

Ciao
Luca