linux user group brescia

immagine del castello

Archivio della mailing list

Rete domestica

Osvaldo Frassine ofrassine a NOSPAMinwind.it
Mer 11 Ott 2000 20:42:43 UTC
So' che su questo argomento di trovano centinaia di scritti e magari 
sara' anche gia' stato trattato su questa ml, pero' io non riesco
a venirne a capo. Abbiate pazienza.
Sto' cercano di mettere in rete i miei due pc: alfa e bravo.
Mi sono procurato un cavo incrociato e l'ho' provato su due coppie di pc
in ufficio: w98-w98 e rh62-w98 tutto bene.
A casa l'ho collegato ai miei due pc i leds delle schede si accendono.
alfa: rh62 - 2.2.16 - 192.168.1.1 - Realtek 8129
bravo: debian2.2 - 2.2.17 - 192.168.1.2 - EtherExpressPro 100

Ecco /etc/hosts che sono uguali per entrambe:
127.0.0.1 localhost.localdomain localhost
192.168.1.1  alfa.home alfa
192.168.1.2  bravo.home bravo

Ecco /etc/reslov.conf di alfa
search home
nameserver 212.245.255.2

Ecco /etc/resolv.conf di bravo
nameserver 212.245.255.2

Entrambe hanno /etc/host.allow e /etc/host.deny vuoti

alfa# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:00:E8:9E:9B:53  
          inet addr:192.168.1.1  Bcast:192.168.1.254  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          Interrupt:10 Base address:0xec00 

bravo# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:90:27:5F:59:57  
          inet addr:192.168.1.2  Bcast:192.168.1.254  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:1
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          Interrupt:10 Base address:0xd000 

alfa# route -e
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
alfa.home       *               255.255.255.255 UH        0 0          0 eth0
localnet        *               255.255.255.0   U         0 0          0 eth0
127.0.0.0       *               255.0.0.0       U         0 0          0 lo

bravo# route -e
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
localnet        *               255.255.255.0   U         0 0          0 eth0
default         alfa.home       0.0.0.0         UG        0 0          0 eth0

alfa# ping -c5 alfa
PING alfa.home (192.168.1.1) from 192.168.1.1 : 56(84) bytes of data.
64 bytes from alfa.home (192.168.1.1): icmp_seq=0 ttl=255 time=0.1 ms
64 bytes from alfa.home (192.168.1.1): icmp_seq=1 ttl=255 time=0.0 ms
64 bytes from alfa.home (192.168.1.1): icmp_seq=2 ttl=255 time=0.0 ms
64 bytes from alfa.home (192.168.1.1): icmp_seq=3 ttl=255 time=0.0 ms
64 bytes from alfa.home (192.168.1.1): icmp_seq=4 ttl=255 time=0.0 ms
--- alfa.home ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0.0/0.0/0.1 ms

bravo# ping -c5 bravo
PING bravo.home (192.168.1.2): 56 data bytes
64 bytes from 192.168.1.2: icmp_seq=0 ttl=255 time=0.2 ms
64 bytes from 192.168.1.2: icmp_seq=1 ttl=255 time=0.1 ms
64 bytes from 192.168.1.2: icmp_seq=2 ttl=255 time=0.1 ms
64 bytes from 192.168.1.2: icmp_seq=3 ttl=255 time=0.1 ms
64 bytes from 192.168.1.2: icmp_seq=4 ttl=255 time=0.1 ms
--- bravo.home ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0.1/0.1/0.2 ms

alfa# ping -c5 bravo
PING bravo.home (192.168.1.2) from 192.168.1.1 : 56(84) bytes of data.
>From alfa.home (192.168.1.1): Destination Host Unreachable
>From alfa.home (192.168.1.1): Destination Host Unreachable
>From alfa.home (192.168.1.1): Destination Host Unreachable
>From alfa.home (192.168.1.1): Destination Host Unreachable
>From alfa.home (192.168.1.1): Destination Host Unreachable
--- bravo.home ping statistics ---
5 packets transmitted, 0 packets received, +5 errors, 100% packet loss

bravo# ping -c5 alfa
PING alfa.home (192.168.1.1): 56 data bytes
--- alfa.home ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss

Cosa ho tralasciato ? Grazie.

-- 
Osvaldo Frassine 

My Supernova proudly rides the Linux



Maggiori informazioni sulla lista Lug