25 Jul
2011
25 Jul
'11
6:19 p.m.
On 25 July 2011 17:56, <steve-ALUG@hst.me.uk> wrote:
I was trying to add a extra IP address to my server's localhost because I wanted to run a apache virtual host on a separate IP address.
I used sudo ip addr add 127.0.0.5/32 dev lo
and then I could ping 127.0.0.5 successfully.
Your "lo" interface should have a mask of 255.0.0.0 which means 127.*.*.*, so you don't need to explicitly add any more local addresses. Just use them! Tim.