Dans un message du 08 oct � 15:47, Stephane Leclerc �crivait :
> > Tu peux cr�er autant d'interface de type eth0:x (x un nombre) que tu
> > veux.
> 
> Ce serait pas limit� � 254 par carte des fois !

Je ne crois pas. En tout cas, pas sur un 2.4.x.

#!/bin/sh
for i in `seq 1 240`;do
        ifconfig eth0:$i 10.0.1.$i
done

for i in `seq 1 240`;do
        ifconfig eth0:`expr 240 + $i` 10.0.2.$i
done

Ce script m'a bien cr�� toutes les interfaces :

[EMAIL PROTECTED]:~$ ifconfig | grep -c 'eth0:'
480
[EMAIL PROTECTED]:~$

A+
-- 
Guillaume Morin <[EMAIL PROTECTED]>

                 People get the operating system they deserve.

Répondre à