Package: macchanger
Version: 1.7.0-5.3+b1
Severity: normal
Tags: upstream

Hi,

# ip link add link eth0 name test type vlan id 42

# macchanger -r test
Current MAC:   54:ee:75:49:b1:ae (Wistron InfoComm(Kunshan)Co.,Ltd.)
Permanent MAC: 00:00:00:00:00:00 (XEROX CORPORATION)
New MAC:       ee:a1:b2:41:01:d6 (unknown)

# macchanger -p test
Current MAC:   ee:a1:b2:41:01:d6 (unknown)
Permanent MAC: 00:00:00:00:00:00 (XEROX CORPORATION)
[ERROR] Could not change MAC: interface up or insufficient permissions: Cannot 
assign requested address

I think this should work; macchanger should detect that it's dealing with a
VLAN interface, get the permanent MAC from the parent interface, and use
that when -p is given.

AndrĂ¡s

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (350, 'unstable'), (350, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.1.48-vs2.3.8.5.3+zfs20171219-caeeng (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages macchanger depends on:
ii  debconf [debconf-2.0]  1.5.66
ii  dpkg                   1.19.0.5
ii  install-info           6.5.0.dfsg.1-2
ii  libc6                  2.27-3

macchanger recommends no packages.

macchanger suggests no packages.

-- 
A picture is worth a thousand words, but it uses ten thousand times the memory.

Reply via email to