1 |
On Fri, 23 Nov 2007 17:55:39 -0600 |
2 |
reader@×××××××.com wrote: |
3 |
|
4 |
> You won't need to stipulate brdcast address in my own experience. |
5 |
> I'm not sure you even need to list the netmask but I always do. |
6 |
> I've never listed broadcast address and have'nt had any problems. |
7 |
|
8 |
you don't have to list the broadcast or netmask, if they can be guessed |
9 |
from context. In the case of using a 192.168.x/24 network they can |
10 |
generally both be guessed properly, because that's a Class C private |
11 |
address . |
12 |
|
13 |
However, in the case of 10.0.0/24, this may not be true. that is |
14 |
defined as class A private address space, and the networking utilities |
15 |
would probably assume it was 10.0.0/8, a netmask of 255.0.0.0 and a |
16 |
broadcast of 10.255.255.255. That is what ifconfig does at least: |
17 |
|
18 |
pascal ~ # ifconfig eth0:1 10.0.0.1 |
19 |
pascal ~ # ifconfig eth0:1 |
20 |
eth0:1 Link encap:Ethernet HWaddr 00:50:70:56:2E:CA |
21 |
inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0 |
22 |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 |
23 |
Interrupt:225 Base address:0xc000 |
24 |
|
25 |
ifconfig is probably being used to configure your interfaces, unless |
26 |
you switched to iproute2. |
27 |
-- |
28 |
gentoo-user@g.o mailing list |