At Wed, 20 Mar 2002 08:52:35 +1100,
Alan Vink wrote:
> > Setting up IP Aliasing on A Linux Machine Mini-HOWTO
> > http://www.linuxdoc.org/HOWTO/mini/IP-Alias/
> "IP Alias has been deprecated in 2.4.x and replaced by a more powerful
> firewalling mechanism"
with iproute there is no need for interface alia. each additional
address is "as important" as the first one. a device can have no
address or a device can have several addresses in several address
families (eg: ethernet, IPX, IPv6, Appletalk, etc)
for help on the ip command:
ip help
for help on manipulating addresses with ip:
ip address help
to see current addresses:
ip address show
to add an additional address:
ip address add 192.168.12.99/24 broadcast + dev eth0
will add an address 192.168.12.99, with netmask 255.255.255.0 and
broadcast 192.168.12.255 ('+' means replace host part with all
ones, '-' means replace with zeros, or you can use an actual address)
to device eth0. note that this address is invisible to normal
ifconfig(8).
if you want something that shows up in ifconfig (similar to a 2.[02].x
ip alias) or can be accessed by name in other programs, add a label:
ip addr add 192.168.12.99/24 brd + dev eth0 label eth0:1
if the broadcast is the same as another address on that interface, you
probably won't want to add it again (just don't give the "broadcast
xx" argument).
iproute(8) removes a whole lot of unnecessary restrictions in the
"old" way of setting up networking (with ifconfig and route).
its good, use it.
--
- Gus
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug