mwa misschien dat het in OSX en windows niet altijd standaard werkt, maar in de linux kernel (vanaf 2.2) zijn de routering regels voor loopback altijd (impliciet) aanwezig! Dus ze staan niet in de route tabel maar het werkt wel
bij mij werkt het wel:
code:
1
2
3
4
5
6
7
8
9
10
| $ uname -a Linux desktop 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009 x86_64 GNU/Linux $ ping -c1 127.34.178.12 PING 127.34.178.12 (127.34.178.12) 56(84) bytes of data. 64 bytes from 127.34.178.12: icmp_seq=1 ttl=64 time=0.027 ms --- 127.34.178.12 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.027/0.027/0.027/0.000 ms |
best nog een hoge ping voor zo'n korte afstand
ik heb de officiele RFC 3330 er maar even bijgepakt:
daar staat dus: "This is ordinarily implemented using only 127.0.0.1/32 for loopback" dus dat betekend dat vaak enkel 127.0.0.1 word gebruikt (want /32 is maar 1 adres) en dat is bij jou ook het geval, maar "but no addresses within this block should ever appear on any network anywhere" geeft aan dat je de rule veilig zelf kan toevoegen aan je route tabel127.0.0.0/8 - This block is assigned for use as the Internet host
loopback address. A datagram sent by a higher level protocol to an
address anywhere within this block should loop back inside the host.
This is ordinarily implemented using only 127.0.0.1/32 for loopback,
but no addresses within this block should ever appear on any network
anywhere [RFC1700, page 5].
Computers ain't that smart, Whatever man built could be taken apart