Talk:IP Aliasing

From Gentoo Linux Wiki

(Redirected from Talk:HOWTO IP Aliasing)
Jump to: navigation, search

[edit] broadcast adress

The broadcast address here;

# ifconfig eth0 192.168.0.2 broadcast 192.255.255.255 netmask 255.255.255.0

... should actually be 192.168.0.255


regards

.sam --norway-oslo--

[edit] alias netmask

Shouldn't the alias's netmask be /32 or 255.255.255.255?

# ifconfig eth0 192.168.0.2 netmask 255.255.255.0
# ifconfig eth0:1 192.168.0.3 netmask 255.255.255.255
# ifconfig eth0:2 192.168.0.4 netmask 255.255.255.255
# ifconfig eth0:3 192.168.0.5 netmask 255.255.255.255
# ifconfig eth0:4 192.168.0.6 netmask 255.255.255.255

If the alias is different from the primary, then a different netmask can be applied.

# ifconfig eth0 192.168.0.2 netmask 255.255.255.0
# ifconfig eth0:1 192.168.1.1 netmask 255.255.255.0
# ifconfig eth0:2 192.168.1.2 netmask 255.255.255.255

grimwell

Personal tools