[Fwd: Changing MAC address with 'ip' command.]

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

 



Looks like the mail demon ate the first one...

Some additional notes:  I had the same bad results trying to set
the mac on a tulip based NIC with kernel 2.2.17.  Using the tulip-diag
tool, I was able to see that the original MAC was still reported by
the NIC, but ifconfig showed the one I had tried to set.

Hopefully I'm missing some simple detail/command??


Ben Greear wrote:
> 
> I've been trying to change the MAC address of my RTL8139 NIC.
> 
> I don't want the change to last through a reboot, and it does
> not seem to.
> 
> However, the NIC will not accept packets destined for it's new
> MAC unless I put it into promiscious mode.  Packets sent from it
> have the new MAC in it, however.
> 
> Here are the commands I'm using to change the MAC
> 
> /sbin/ip link set eth1 down
> /sbin/ip link set eth1 address 00:11:22:33:44:55
> /sbin/ip link set eth1 up
> 
> (IP routing information is then set back up...)
> 
> tcpdump shows eth1 to have the new MAC, and packets sent
> from it have the new MAC in it.
> 
> Is there something else I need to do to get the NIC to
> start thinking it's the new MAC?
> 
> I'm using kernel 2.4.prerelease.
> 
> Thanks,
> Ben


-- 
Ben Greear (greearb@candelatech.com)  http://www.candelatech.com
Author of ScryMUD:  scry.wanfear.com 4444        (Released under GPL)
http://scry.wanfear.com               http://scry.wanfear.com/~greear
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux