Change IP and MAC address

Dec 10, 2007 1 Replies

Dear all,



I want to change the MAC address and IP of an ethernet device dynamically in the network which the device is made by myself.



I want to ask whether I change the IP firstly or the MAC address firstly if I cannot change them in the same time.



Thanks!


cell wrote in part:

Well, whether you can change the MAC depends on the etherchip in use. Most can be reprogrammed.

Whether the network passes traffic depends on what the hubs, switches and routers expect and are programmed to support. Some can be very restrictive for security reasons.

The general order on an "open" network is to release the IP, change the MAC, then request a new IP via DHCP. If you are using static IPs, then you have to make sure the router's ARP cache is reset to the new MAC.

-- Robert

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required