Results 1 to 2 of 2

Thread: Why is my MAC address not being set when interface is up?

  1. #1
    Join Date

    Why is my MAC address not being set when interface is up?

    Hi & thanks in advance,
    I have a kali guest in a vmware vm. And I'm using a USB ethernet dongle that is passed directly to the guest machine.

    So I have a wired connection on 'eth1' and I want its MAC to be 'aa:aa:aa:aa:aa:aa'.

    sudo ip link set eth1 down
    sudo iplink set dev eth1 address aa:aa:aa:aa:aa:aa
    sudo ip link set eth1 up
    However when the interface is up I find that the MAC is set as 'bb:bb:bb:bb:bb:bb'.

    If I check the MAC while the interface is down the MAC is 'aa:aa:aa:aa:aa:aa'.
    If the interface is up but the ethernet cable is disconnected the MAC is 'aa:aa:aa:aa:aa:aa'

    Unplugging and plugging the usb dongle appears to increment some kind of interface counter but it keeps the interface name as 'eth1'.

    Changing the 'cloned-mac-address' in "/etc/NetworkManager/system-connections/Wired\ connection\ 1 " also doesn't seem to affect my results.

  2. #2
    Join Date
    Dear Supawin ,

    if you are wants to change the mac address of you interface follow the following instruction .

    ifconfig < interface_name > down

    sudo macchanger -m xx:xx:xx:xx:xx:xx < interface_name >
    ifconfig < interface_name > up

    and now you can confirm the same by using following command

    macchanger -s < interface name >

    Thanks & Regards

Similar Threads

  1. Replies: 3
    Last Post: 2020-05-13, 01:04
  2. Replies: 0
    Last Post: 2020-03-13, 17:04

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts