Avec beaucoup de retard :^)

Je n'ai pas encore rencontr� de carte r�seau qui refuse
sous linux :


ifconfig  eth0 hw ether 00:12:83:22:B5:74




donc comme ca existe ca doit etre utilise :


>cd /etc/sysconfig/network-scripts
>grep 'hw ether' *
ifup:   ifconfig ${DEVICE} hw ether ${MACADDR}
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OOOO-P'tain la meme syntaxe que pour fixer le device a la amc adress !




grep MACADDR *
ifup:    FOUNDMACADDR=`LC_ALL= LANG= ip -o link show ${REALDEVICE} | \
ifup:    if [ "${FOUNDMACADDR}" != "${HWADDR}" ]; then
ifup:        NEWCONFIG=`fgrep -l "HWADDR=${FOUNDMACADDR}"
/etc/sysconfig/network-scripts/ifcfg-*|head -1`
ifup:        NEWCONFIG=`fgrep -l "HWADDR=${FOUNDMACADDR}"
/etc/sysconfig/networking/default/ifcfg-*|head -1`
ifup:if [ -n "${MACADDR}" ]; then
ifup:   ifconfig ${DEVICE} hw ether ${MACADDR}


Donc il existe une variable MACADDR qui est testee et qui doit servir a
ca ; alors hop vi


sur ifcfg-eth0
MACADDR="08:00:46:02:A4:60"


sur ifcfg-eth1
MACADDR="00:10:4B:F9:2E:F0"


sur ifcfg-eth2
MACADDR="00:00:86:53:71:FE"



et voil�, le device est accroche a la mac adresse


evidemment le clickdrome ne l'a pas prevu, mais globalement le
clickodrome ne peut pas prevoir tou les cas de figure !


>Ifconfig
eth0      Lien encap:Ethernet  HWaddr 08:00:46:02:A4:60
          inet adr:192.168.128.170  Bcast:192.168.128.255
Masque:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1514  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:100
          RX bytes:60 (60.0 b)  TX bytes:168 (168.0 b)


eth1      Lien encap:Ethernet  HWaddr 00:10:4B:F9:2E:F0
          inet adr:192.168.226.170  Bcast:192.168.226.255
Masque:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:334 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:100
          RX bytes:23912 (23.3 Kb)  TX bytes:240 (240.0 b)
          Interruption:9 Adresse de base:0x4000


eth2      Lien encap:Ethernet  HWaddr 00:00:86:53:71:FE
          inet adr:192.168.50.170  Bcast:192.168.50.255
Masque:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1946693 errors:22 dropped:0 overruns:22 frame:22
          TX packets:1437349 errors:0 dropped:0 overruns:0 carrier:4
          collisions:2529 lg file transmission:100
          RX bytes:225933667 (215.4 Mb)  TX bytes:179656950 (171.3 Mb)
          Interruption:3 Adresse de base:0xa00


lo        Lien encap:Boucle locale
          inet adr:127.0.0.1  Masque:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2427231 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2427231 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0
          RX bytes:642775829 (612.9 Mb)  TX bytes:642775829 (612.9 Mb)


ppp0      Lien encap:Protocole Point-�-Point
          inet adr:80.11.132.55  P-t-P:80.11.132.1
Masque:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:2810 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3026 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:3
          RX bytes:142695 (139.3 Kb)  TX bytes:288816 (282.0 Kb)



et voil� 3 cartes reseau et une connexion pppOatm adsl ... qui roulent


Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com";

Répondre à