what to do after an IP change
James Wilkinson
james at westexe.demon.co.uk
Wed Aug 4 17:25:09 UTC 2004
Robert wrote:
> ... let's say you have a hosts file that looks like this:
> 127.0.0.1 localhost localhost.localdomain fred fred.localdomain
>
> When you ping fred, you get something like this:
> [root at fred rj]# ping fred
> PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
> 64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=0 ttl=64
> time=0.047 ms
>
> If you leave the ping running and run ifconfig a couple of times, you
> can see that the counters for the loopback interface, lo, is incrementing.
>
> Now if you clean up the hosts file:
> 127.0.0.1 localhost.localdomain localhost
> 192.168.1.8 fred.localdomain fred
>
> ...and again ping fred, you get different results:
>
> [root at fred rj]# ping fred
> PING fred.localdomain (192.168.1.8) 56(84) bytes of data.
> 64 bytes from fred.localdomain (192.168.1.8): icmp_seq=0 ttl=64
> time=0.058 ms
> 64 bytes from fred.localdomain (192.168.1.8): icmp_seq=1 ttl=64
> time=0.045 ms
>
> This time, the ethX interface at 192.168.1.8 is being hit and the
> counters for the ethX interface are incrementing.
Well, given those hosts files, that's what's supposed to happen. You
ping the interface, and lo and behold, traffic goes to that interface!
> This is the result I expect when I ping myself.
^^^^^^^^
Maybe that's the bug...
> Besides that, it's MY machine and that's how EYE want it to be! ;-)
Well, you go and change your machine.
James.
--
E-mail address: james@ | So what would happen if an Enterprise security team,
westexe.demon.co.uk | who always get killed soon after appearing, fought a
| squad of Imperial Stormtroopers, who can't hit the
| broad side of a planet?
More information about the fedora-list
mailing list