Dnia poniedziaƂek, 11 grudnia 2006 18:34, Leandro Melo de Sales napisaƂ:

> config_eth0=( "192.168.1.2 netmask 255.255.255.0"
>               "192.168.1.3 netmask 255.255.255.0"
>               "192.168.1.6 netmask 255.255.255.0"
> )

Well, it is a design flaw to have 3 addresses in overaping networks. From what 
I recall you may use only one non /32 address in a network. If the 
requirement is not met, problems arise:

Problem: You want to broadcast to 192.168.1.255.
Question: From which of these addresses should it origin?

Problem: Someone else broadcasts to 192.168.1.255.
Question: Which of these addresses should catch it? One? All?


I was taught that configurations of multiple-ip-per-net should look like:

 config_eth0=( "192.168.1.2 netmask 255.255.255.0"
               "192.168.1.3 netmask 255.255.255.255"
               "192.168.1.6 netmask 255.255.255.255"
 )

Only the first has a regular mask (and therefore is source and target for 
broadcasts) - the rest has /32 mask and is only valid for unicast 
communication.

AFAIK this is true for both multiple cards on single network and multiple 
aliases on single card.

-- 
 Pawel Kraszewski
 www.kraszewscy.net

-- 
gentoo-user@gentoo.org mailing list

Reply via email to