View topic - How to change the MAC address of NIC?

How to change the MAC address of NIC?

For the old QNX2 and QNX4 RTOS

How to change the MAC address of NIC?

Postby emersondelima » Tue Jul 22, 2008 3:47 pm

Hello.
I have a Mesa Electronics 4i29 PC/104 ethernet card and I need to change the MAC address, because this network NEEDS that NIC have the same address (0080BFB0C453).
Recently I change this NIC and the actual had 00601B011260 address.

Somebody knows how to change this?

Please, I need so much.


Thank you. Best regards.


Emerson
emersondelima
New Member
 
Posts: 3
Joined: Tue Jul 22, 2008 3:41 pm

RE: How to change the MAC address of NIC?

Postby ysinitsky » Tue Jul 22, 2008 5:43 pm

Hello Emersondelima,
Please provide -m mac option to your network driver.

-m mac : Specify MAC address. Use this option only if you know what you're doing!

Check description of any network driver, such as Net.tulip
Regards,
Yuriy
ysinitsky
Senior Member
 
Posts: 164
Joined: Wed Dec 14, 2005 8:46 pm

RE: How to change the MAC address of NIC?

Postby mario » Tue Jul 22, 2008 9:44 pm

Not all drivers support -m.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

Postby emersondelima » Wed Jul 23, 2008 11:52 am

What is the specifical line command for -m mac : Specify MAC address.?
emersondelima
New Member
 
Posts: 3
Joined: Tue Jul 22, 2008 3:41 pm

Postby micro » Wed Jul 23, 2008 12:22 pm

This is a driver option, for example with the ne2k driver:

io-net -d ne2000 mac=00ababcdcd01
for starting io-net and right away starting the driver for the NIC
or
mount -T io-net -o mac=12345678 devn-ne2000.so
for activating the driver while io-net is already running.

You need to unmount the NIC (assumed it is already in use) before manually overriding your mac (i think)
ifconfig en0 down
umount /dev/io-net/en0
mount -T io-net -o mac=15852539 devn-ne2000.so


For more help --> Documentation @ io-net
micro
Senior Member
 
Posts: 458
Joined: Thu Jul 22, 2004 8:41 pm

Postby mario » Wed Jul 23, 2008 12:33 pm

Micro this is a QNX4 forum ;-)

That would be Net.xxx -m00ababcdcd01
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

Postby micro » Thu Jul 24, 2008 11:20 am

erks ^^ ok, listen to mario ;P

Is this btw. an undocumented feature, the only -m i found was for memory segment @ Utilities Reference -- N to Z ^^
micro
Senior Member
 
Posts: 458
Joined: Thu Jul 22, 2004 8:41 pm

Postby mario » Thu Jul 24, 2008 11:38 am

On some driver it`s documented on other it`s not.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

Postby emersondelima » Fri Jul 25, 2008 1:27 pm

Thank you for all answers. I resolved changing the software.
emersondelima
New Member
 
Posts: 3
Joined: Tue Jul 22, 2008 3:41 pm


Return to QNX2 and QNX4

Who is online

Users browsing this forum: No registered users and 2 guests