Skip to content

Unable to Communicate with Internet After Changing Virtual NIC's MAC Address #4454

Closed

Description

Windows 10 Build Version: 18956.1000

jihong@MINMO-COM1:/mnt/c/Users/jihong$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.17.150.15  netmask 255.255.0.0  broadcast 172.17.255.255
        inet6 fe80::215:5dff:fe83:8613  prefixlen 64  scopeid 0x20<link>
        ether 00:15:5d:83:86:13  txqueuelen 1000  (Ethernet)
        RX packets 12  bytes 2568 (2.5 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 12  bytes 936 (936.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 8  bytes 400 (400.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8  bytes 400 (400.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

jihong@MINMO-COM1:/mnt/c/Users/jihong$ sudo macchanger -r eth0 --mac=00:15:5d:83:84:18
Current MAC:   00:15:5d:83:86:13 (Microsoft Corporation)
Permanent MAC: 00:15:5d:83:86:13 (Microsoft Corporation)
[ERROR] Could not change MAC: interface up or insufficient permissions: Device or resource busy

Same with Windows-side administrator privilege.

Activity

  1. therealkenc commented on Aug 29, 2019

    @therealkenc

    [ERROR] Could not change MAC: interface up or [...reasons]

    # sudo ifconfig eth0 down
    

    image

  2. Biswa96 commented on Aug 29, 2019

    @Biswa96

    Or,

    sudo ip link set dev eth0 down
    
  3. ghost closed this as completedon Aug 29, 2019
  4. ghost reopened this on Aug 30, 2019
  5. ghost changed the title [-]Unable to Change Virtual NIC's MAC Address[/-] [+]Unable to Communicate with Internet After Changing Virtual NIC's MAC Address[/+] on Aug 30, 2019
  6. Biswa96 commented on Aug 30, 2019

    @Biswa96

    That's why do not change it ;-}

  7. therealkenc commented on Aug 30, 2019

    @therealkenc

    jihong@MINMO-COM1:/mnt/c/Users/jihong$ sudo ifconfig eth0 inet6 fe80::215:5dff:fe83:872a
    Don't know how to set addresses for family 10.

    That is Linux behavior.

    image

    In any event, you've already got an address. You need to add back your default route if you want to access "The Internet". For the subnet you had above:

    $ sudo route add default gw 172.17.144.1 eth0
    

    These are all questions where you'll get better answers on serverfault.

    Everytime WSL reboots, MAC address changes

    Yes this remains most problematic. Open issue #4199 (message)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions