1 |
Dnia poniedzia³ek, 11 grudnia 2006 18:34, Leandro Melo de Sales napisa³: |
2 |
|
3 |
> config_eth0=( "192.168.1.2 netmask 255.255.255.0" |
4 |
> "192.168.1.3 netmask 255.255.255.0" |
5 |
> "192.168.1.6 netmask 255.255.255.0" |
6 |
> ) |
7 |
|
8 |
Well, it is a design flaw to have 3 addresses in overaping networks. From what |
9 |
I recall you may use only one non /32 address in a network. If the |
10 |
requirement is not met, problems arise: |
11 |
|
12 |
Problem: You want to broadcast to 192.168.1.255. |
13 |
Question: From which of these addresses should it origin? |
14 |
|
15 |
Problem: Someone else broadcasts to 192.168.1.255. |
16 |
Question: Which of these addresses should catch it? One? All? |
17 |
|
18 |
|
19 |
I was taught that configurations of multiple-ip-per-net should look like: |
20 |
|
21 |
config_eth0=( "192.168.1.2 netmask 255.255.255.0" |
22 |
"192.168.1.3 netmask 255.255.255.255" |
23 |
"192.168.1.6 netmask 255.255.255.255" |
24 |
) |
25 |
|
26 |
Only the first has a regular mask (and therefore is source and target for |
27 |
broadcasts) - the rest has /32 mask and is only valid for unicast |
28 |
communication. |
29 |
|
30 |
AFAIK this is true for both multiple cards on single network and multiple |
31 |
aliases on single card. |
32 |
|
33 |
-- |
34 |
Pawel Kraszewski |
35 |
www.kraszewscy.net |
36 |
|
37 |
-- |
38 |
gentoo-user@g.o mailing list |