
Originariamente inviato da
Master85
Hai assegnato al computer client un indirizzo di broadcast (192.68.1.255), è normale che non funziona.
Assegna questo IP 192.68.1.253. Inoltre, sarebbe meglio se ci fornissi indicazioni piu' dettagliate su come hai configurato la rete:
$sudo ifconfig
A presto,
Giuseppe
Allora ho moficato l'ip della eth0 della macchina client come segue:
# ifconfig eth0 192.68.1.253 up
ed ottengo per quanto riguarda la macchina client dando '# ifconfig':
eth0 Link encap:Ethernet HWaddr 00:0C:6E:40:DC:F9
inet addr:192.68.1.253 Bcast:192.68.1.255 Mask:255.255.255.0
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)
Interrupt:11 Base address:0xa000
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:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:480 (480.0 b) TX bytes:480 (480.0 b)
ppp0 Link encap:Point-to-Point Protocol
inet addr:95.74.247.69 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:3305 errors:0 dropped:0 overruns:0 frame:0
TX packets:3381 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2896433 (2.7 MiB) TX bytes:562455 (549.2 KiB)
vado a modificare pure le associazioni tra ip e nomi host dentro a /etc/hosts dopo, associando a 'client 192.68.1.253' e a 'server 192.68.1.252' dopo le modifiche appare cosi:
# hostname fabio.localdomain added to /etc/hosts by anaconda
127.0.0.1 fabio.client localhost.localdomain localhost
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 fabio.client
127.0.0.1 localhost.localdomain localhost
192.68.1.253 client
192.68.1.252 server
Modifico pure l' ip della macchina server con '# ifconfig eth0 192.68.1.252'
dopodiche do ifconfig ed ottengo:
eth0 Link encap:Ethernet HWaddr 00:13:46:2f:0b:95
inet addr:192.68.1.252 Bcast:192.68.1.255 Mask:255.255.255.0
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)
Interrupt:11 Base address:0x3000
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:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1184 (1.1 KB) TX bytes:1184 (1.1 KB)
Ripingando il server con '# ping 192.68.1.252' riottengo
PING 192.68.1.252 (192.68.1.252) 56(84) bytes of data.
From 192.68.1.253 icmp_seq=2 Destination Host Unreachable
From 192.68.1.253 icmp_seq=3 Destination Host Unreachable
From 192.68.1.253 icmp_seq=4 Destination Host Unreachable
From 192.68.1.253 icmp_seq=6 Destination Host Unreachable
From 192.68.1.253 icmp_seq=7 Destination Host Unreachable
From 192.68.1.253 icmp_seq=8 Destination Host Unreachable
From 192.68.1.253 icmp_seq=10 Destination Host Unreachable
From 192.68.1.253 icmp_seq=11 Destination Host Unreachable
From 192.68.1.253 icmp_seq=12 Destination Host Unreachable
From 192.68.1.253 icmp_seq=14 Destination Host Unreachable
From 192.68.1.253 icmp_seq=15 Destination Host Unreachable
From 192.68.1.253 icmp_seq=16 Destination Host Unreachable
^X^X^C
--- 192.68.1.252 ping statistics ---
18 packets transmitted, 0 received, +12 errors, 100% packet loss, time 17278ms
pipe 3
poi tento una sessione ssh con '# ssh 192.68.1.252' ed ottengo
ssh: connect to host 192.68.1.252 port 22: No route to host
A te la sentenza fammi sapere.