Add an IP alias to ethernet interface

Sebastian Faulborn sfaulborn at web.de
Wed Jun 13 01:01:15 PDT 2007


Andy wrote:

>I was incorrect, it does work. However:
>
>1. It uses the old style aliasing scheme as used by ifconfig.
>
>2. It only works because the ip command just ignores the :n on the
>interface name.

You are correct! "ip addr show" only shows the interfaces as eth0
ignoring the ":0" etc. and ifconfig doesn't show the other ip's
at all. So your solutions is better.

Regards,

Sebastian
Homepage: http://www.secure-slinux.org





More information about the lfs-dev mailing list