Trying to change MAC on vlan addresses, raspberry pi os · Issue #111 · feross/SpoofMAC · GitHub
Skip to content

Trying to change MAC on vlan addresses, raspberry pi os #111

Open

Description

@lukzard

And fails... apparently eth0 and wlan0 are seen correctly, then all virtual lans on top of eth0 of type VLAN fail...

Should this work? Thanks,

Here's what i see when listing:

pi@raspberrypi:~ $ spoof-mac list
- "ether" on device "eth0" with MAC address 3c:18:a0:53:bc:05 currently set to link/ether 3c:18:a0:53:bc:05
- "" on device "wlan0" currently set to link/ether e4:5f:01:8b:90:47
Traceback (most recent call last):
  File "/home/pi/.local/bin/spoof-mac", line 138, in <module>
    sys.exit(main(arguments, root_or_admin))
  File "/home/pi/.local/bin/spoof-mac", line 76, in main
    list_interfaces(args, spoofer)
  File "/home/pi/.local/bin/spoof-mac", line 56, in list_interfaces
    for port, device, address, current_address in spoofer.find_interfaces(targets=targets):
  File "/home/pi/.local/lib/python3.9/site-packages/spoofmac/interface.py", line 87, in find_interfaces
    current_address = self.get_interface_mac(adapter_name)
  File "/home/pi/.local/lib/python3.9/site-packages/spoofmac/interface.py", line 49, in get_interface_mac
    result = subprocess.check_output(["ip", "link", "show", device], stderr=subprocess.STDOUT, universal_newlines=True)
  File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ip', 'link', 'show', 'eth0.2@eth0']' returned non-zero exit status 1.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions