<div dir="ltr"><br><br><div class="gmail_quote">On Wed, Sep 14, 2011 at 8:12 AM, Scott Sullivan <span dir="ltr"><<a href="mailto:scott@ss.org">scott-lxSQFCZeNF4@public.gmane.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">On 09/14/2011 01:07 AM, Scott Sullivan wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On 09/14/2011 12:57 AM, Ori Idan wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
<br>
On Wed, Sep 14, 2011 at 7:54 AM, Amanda Yilmaz <<a href="mailto:ayilmaz@pobox.com" target="_blank">ayilmaz-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org</a> <mailto:<a href="mailto:ayilmaz-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org" target="_blank">ayilmaz-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org</a>>> wrote:<br>


<br>
    Hi all,<br>
<br>
    Is there a way to make an IP address outside the 127.x.x.x range<br>
    (say, 192.168.56.101) map back to your own machine when accessed<br>
    from your own machine, as if it were another alias for localhost?<br>
    I'd like this to happen only on my own machine, and not interfere<br>
    with anyone else's use of said IP address on the local network.<br>
    This is for testing purposes only.<br>
<br>
    I've been poring over the documentation for route, arp, tun/tap,<br>
    etc., but don't have a deep enough understanding of Linux<br>
    networking to know where to begin.<br>
<br>
    Thanks,<br>
    Amanda<br>
<br>
<br>
I guess you only have to put a line in /etc/hosts like: 192.168.56.101  localhost<br>
<br>
-- <br>
Ori Idan<br>
<br>
</blockquote>
<br>
Alternatively you can actually add mulitple IPs to the loopback interface.<br>
I'm not sure the correct terminology for this is, but sure someone on list can explain it. (I could find a meaningful answer quickly in the man page.<br>
<br>
ifconfig lo:1 192.168.56.101<br>
<br>
<br>
I've tested this on my machine and it works.<br>
<br>
</blockquote>
<br>
<br></div>
Okay, no more answer questions when it's time to sleep. s/could/could not/<br>
<br>
Anyways, the correct term seems to be Aliasing.<br>
<a href="http://www.g-loaded.eu/2005/11/05/assign-virtual-ips-to-your-nic/" target="_blank">http://www.g-loaded.eu/2005/<u></u>11/05/assign-virtual-ips-to-<u></u>your-nic/</a><br>
<br>
I wanted to say vlan, but that's the eth0.1 (dot) notation.<br>
<br>
All the above does is create and alias on the loopback network device instead of on say eth0 as would more likely happen.<div><div></div><div class="h5"><br></div></div></blockquote><div>I thought it was strange to see someone from Canada answering at such an hour...<br>

I am now in Israel and for me it is 8:00 am :-)<br><br>-- <br>Ori Idan<br></div></div><br></div>