Skip to contentSkip to conversation

Aliases

DISCUSSION Andi Kleen 1 participant 1 message Aug 18, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#1 lore raw
Quoted 6 lines · Ralf Baechle

For various reasons interfaces aliases are deprecated. The recommended way of doing things these days is just adding more addresses to an interface with the ip(8) program from the iproute package. It works like:

ip addr add 192.168.2.0/24 broadcast 192.168.2.255 scope host dev eth0

Newer ifconfig also supports "add" for IPv4 (older supported it only for v6)

The problem of the original poster is also likely to have an too old ifconfig; older ones had some O(n^2) algorithms with hurt with many interfaces.

-Andi