[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mac address



Hola.

Bueno, he estato probando con el paquete nictools-pci

apt-get install nictools-pci

este paquete contiene lo siguiente



Diagnostic tools for many PCI ethernet cards

These tools can help you to diagnostic problems with your ethernet cards or - in some cases - give those cards the final hint, to work in your network.

   alta-diag     : Diagnostic and setup for the Sundance "Alta" NIC
eepro100-diag : Diagnostic and setup for the Intel EEPro100 Ethernet cards
epic-diag : Diagnostics and EEPROM setup for the SMC EPIC-100
myson-diag : Diagnostic and setup for the Myson mtd803 Ethernet chip
natsemi-diag : Diagnostic and setup for the NatSemi DP83815 Ethernet chip
ne2k-pci-diag : Diagnostics and EEPROM setup for PCI NE2000 clones
ns820-diag : Diagnostic and setup for the NatSemi DP83820 Ethernet chip
pcnet-diag : Diagnostic and setup for the AMD PCnet/PCI Ethernet chip
rtl8139-diag : Diagnostics and EEPROM setup for RealTek RTL8129/8139 chips
starfire-diag : Diagnostic and setup for the Adaptec Starfire DuraLAN
tulip-diag : Diagnostic and setup for the Digital DC21x4* Ethernet chips
via-diag : Diagnostic and setup for the VIA Rhine vt86c100 and vt3043
Ethernet chips
vortex-diag : Diagnostics and EEPROM setup for the 3Com Vortex series
winbond-diag : Diagnostic and setup for the Winbond w89c840 Ethernet cards
yellowfin-diag: Diagnostic and setup for the Packet Engines Yellowfin chips

La información que hay en la tarjeta es la siguiente

 eepro100-diag -ameef

eepro100-diag.c:v2.12 4/15/2003 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a Intel i82562 Pro/100 V adapter at 0x1000.
i82557 chip registers at 0x1000:
  01000000 00000000 00000000 00080002 1821782d 00000000
  No interrupt sources are pending.
   The transmit unit state is 'Idle'.
   The receive unit state is 'Idle'.
  This status is unusual for an activated interface.
 The Command register has an unprocessed command 0100(?!).
EEPROM contents, size 256x16:
    00: 0800 0002 08bd 0b13 0000 0201 4701 0000  _____________G__
  0x08: 0113 4501 40a0 0012 0e11 0000 0000 0000  ___E_@__________
      ...
  0x30: 00ec 4000 4013 0000 0000 0000 0000 0000  ___@_@__________
      ...
  0x40: 0044 0000 0000 0000 0000 0000 0000 0000  D_______________
      ...
  0xf8: 0000 0000 0000 0000 0000 0000 0000 3fcc  _______________?
 The EEPROM checksum is correct.
Intel EtherExpress Pro 10/100 EEPROM contents:
  Station address 00:08:02:XX:XX:XX. //cambie la salida
  Board assembly 011345-001, Physical connectors present: RJ45
  Primary interface chip i82555 PHY #1.
Primary transceiver is MII PHY #1. MII PHY #1 transceiver registers:
   3100 782d 02a8 0320 05e1 40a1 0001 0000
   0000 0000 0000 0000 0000 0000 0000 0000
   2a06 0000 0000 148a 0000 0000 156c 0000
   0000 0000 0000 0000 0010 0000 0000 0000.
 Basic mode control register 0x3100: Auto-negotiation enabled.
 Basic mode status register 0x782d ... 782d.
   Link status: established.
   Capable of  100baseTx-FD 100baseTx 10baseT-FD 10baseT.
   Able to perform Auto-negotiation, negotiation complete.
 Vendor ID is 00:aa:00:--:--:--, model 50 rev. 0.
   No specific information is known about this transceiver type.
 I'm advertising 05e1: Flow-control 100baseTx-FD 100baseTx 10baseT-FD 10baseT
   Advertising no additional info pages.
   IEEE 802.3 CSMA/CD protocol.
 Link partner capability is 40a1: 100baseTx 10baseT.
   Negotiation  completed.

ahora, la información que me arroja el ifconfig y otras aplicaciones es
una info fake, como podemos ver eeprom100-diag muestra la
verdadera MAC osea la información de la EEPROM

eepro100-diag --help
Usage: eepro100-diag [-aDfrRvVw] [-AF <speed+duplex>] [-#<BoardNum>]

   Show the internal state of a network adapter.

   The common usage is
      eepro100-diag -aem

 Frequently used options are
   -a  --show_all_registers     Print all registers.
   -e  --show-eeprom    Dump EEPROM contents, "-ee" shows the details.
   -m  --show_mii               Print the MII transceiver state
                                        Using -mm monitors the link.
   -f  --force          Perform operation, even on a running NIC.

 To operate on a single NIC, or one that hasn't been automatically found:
   -#  --card_num       INDEX   Operate on the specified card index.
   -p  --port-base      IOADDR  Assume an adapter at the specified I/O address.
   -t  --chip-type      TYPE    Specify adapter type (with '-p'), use '-1' to list.

 To change the persistent EEPROM settings
   -G  --parameters PARMS       Set adapter-specific parameters.
   -H  --new-hwaddr 01:23:45:67:89:ab
        Set a new hardware station address.  Typically disabled for safety.
   -w  --write-EEPROM    Actually write the new settings into the EEPROM.

   -D  --debug
   -v  --verbose        Report each action taken.
   -V  --version        Emit version information.

   -A  --advertise <speed|setting>  (See the mii-diag manual page.)


ahora bajamos la tarjeta

ifdown eth0

eepro100-diag -H 00:05:03:00:BD:30
eepro100-diag.c:v2.12 4/15/2003 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a Intel i82562 Pro/100 V adapter at 0x1000.
Modifying the station (MAC) address has been disabled in this release of the diagnostic.
 Use '-a' or '-aa' to show device registers,
     '-e' to show EEPROM contents, -ee for parsed contents,
  or '-m' or '-mm' to show MII management registers.


y pues bueno, aqui me encuentro, sigo buscando en internet.

PD: disculpen por el formato html, pero necesitaba las negritas <b></b>

Reply to: