[CentOS] Trying to override MAC addr

Thu Aug 21 14:56:08 UTC 2014
GKH <xaos at darksmile.net>

I just did it like this:

ifconfig enp3s0

enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.241.27.154  netmask 255.255.255.0  broadcast 10.241.27.255
        inet6 fe80::210:18ff:fe04:4d0  prefixlen 64  scopeid 0x20<link>
        ether 00:10:18:04:04:d0  txqueuelen 1000  (Ethernet)
        RX packets 429591  bytes 41991957 (40.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 249536  bytes 19108398 (18.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 18

ifconfig enp3s0 hw ether 00:10:18:04:04:d7

ifconfig enp3s0
enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.241.27.154  netmask 255.255.255.0  broadcast 10.241.27.255
        inet6 fe80::210:18ff:fe04:4d0  prefixlen 64  scopeid 0x20<link>
        ether 00:10:18:04:04:d7  txqueuelen 1000  (Ethernet)
        RX packets 429615  bytes 41994383 (40.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 249549  bytes 19109350 (18.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 18
Done!

-GKH












>
> On 08/21/2014 10:32 AM, m.roth at 5-cent.us wrote:
>> Keith Keller wrote:
>>> On 2014-08-21, John R Pierce <pierce at hogranch.com> wrote:
>>>> On 8/21/2014 7:09 AM, Robert Moskowitz wrote:
>>>>> I am trying to override the mac addr.
>>>> pretty sure you need to use NIC model specific utilities to do this,
>>>> ifcfg-ethN won't do it.   the hwaddr= in there is for finding the nic,
>>>> not for reprogramming it.
>>> ifconfig claims to support it:
>>>
>>>         hw class address
>> <snip>
>> Also, don't forget /etc/udev/rules.d/70-persistant-net.rules
>
> I can't forget what I don't know.  please point me to description of
> these rules?
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>