1 |
On Tue, 11 Jun 2002 18:05:29 +0200 |
2 |
MadCoder <pierre.habouzit@×××.org> wrote: |
3 |
|
4 |
> Le Mardi 11 Juin 2002 18:02, Adam Voigt a écrit : |
5 |
> > Dirty workaround, add a line where you configure the interface with it's |
6 |
> > alias (using ifconfig) to your rc.local, that way you can specifiy |
7 |
> > whatever you want as if you were using the ifconfig command. |
8 |
> that's allready what I'm doing with a |
9 |
> |
10 |
> ifconfig eth0:1 129.104.221.100 netmask 255.255.255.0 |
11 |
> |
12 |
> but on my Debian, when I create an alias, it always takes the same netmask |
13 |
> than the main adress. So I was a little surprised. |
14 |
> -- |
15 |
> MadCoder (53 53) |
16 |
|
17 |
You could always use the iproute2 commands if you have them installed -- eg: |
18 |
|
19 |
ip addr add dev eth0 129.104.221.100/24 |
20 |
|
21 |
The above adds the address 129.104.221.100 netmask 255.255.255.0 to eth0 (I think this is equivalent to an alias when using ifconfig). |
22 |
|
23 |
-- |
24 |
Z |