John Andersen wrote:
On Saturday 26 August 2006 06:04, suse@rio.vg wrote:
However, you shouldn't be adding ip addresses to the loopback, unless absolutely necessary. Add it to eth0 instead. Just `ifconfig eth0:1 192.168.2.231`.
Why shouldn't you add ip addresses to loopback?
What would be the point? Nothing else on that network could access it. loopback is specifically for the local machine only, there's no reason to have multiple ip addresses for it, unless you're doing something very strange.
Wouldn't your solution allow access via that IP, as well as potentially leaking martian traffic?
eth0:1 is considered a separate interface, for most purposes. And, yes, you'd be able to access the machine via that IP... why else would you add an IP address to a machine if you didn't want it to be able to access a network?