Map non-127.x.x.x address back to own machine?

Ori Idan ori-RdxWQVHs3mjDN57Tih+YPw at public.gmane.org
Wed Sep 14 04:57:53 UTC 2011


On Wed, Sep 14, 2011 at 7:54 AM, Amanda Yilmaz <ayilmaz-e+AXbWqSrlAAvxtiuMwx3w at public.gmane.org> wrote:

> Hi all,
>
> Is there a way to make an IP address outside the 127.x.x.x range (say,
> 192.168.56.101) map back to your own machine when accessed from your own
> machine, as if it were another alias for localhost? I'd like this to happen
> only on my own machine, and not interfere with anyone else's use of said IP
> address on the local network. This is for testing purposes only.
>
> I've been poring over the documentation for route, arp, tun/tap, etc., but
> don't have a deep enough understanding of Linux networking to know where to
> begin.
>
> Thanks,
> Amanda
>

I guess you only have to put a line in /etc/hosts like: 192.168.56.101
localhost

-- 
Ori Idan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/legacy/attachments/20110914/cf1b4cf9/attachment.html>


More information about the Legacy mailing list