Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510094 - "Failed to set MAC address" if set mac_${IFACE}="random-*" in /etc/conf.d/net
Summary: "Failed to set MAC address" if set mac_${IFACE}="random-*" in /etc/conf.d/net
Status: RESOLVED DUPLICATE of bug 504458
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: netifrc (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: netifrc Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-11 20:08 UTC by no-person
Modified: 2021-07-11 07:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description no-person 2014-05-11 20:08:42 UTC
net-analyzer/macchanger-1.6.0
net-misc/netifrc-0.2.2

mac_${IFACE}="random-ending"
mac_${IFACE}="random-samekind"
mac_${IFACE}="random-anykind"
mac_${IFACE}="random-full"

Any of this values in /etc/conf.d/net cause "Failed to set MAC address" when /etc/init.d/net.$[IFACE} starting. Found problem in /lib64/netifrc/net/macchanger.sh, sed trying to parse different output from macchanger (probably output from previous stable version of macchanger).
Comment 1 no-person 2014-05-11 20:54:56 UTC
Output examples:

mac_${IFACE}="random-ending"
macchanger -e eth0
Current MAC:   11:11:11:11:11:11 (unknown)
Permanent MAC: 22:22:22:22:22:22 (Some Corporation)
New MAC:       11:11:11:33:33:33 (unknown)

mac_${IFACE}="random-samekind"
macchanger -a eth0
Current MAC:   11:11:11:11:11:11 (unknown)
Permanent MAC: 22:22:22:22:22:22 (Some Corporation)
New MAC:       33:33:33:33:33:33 (unknown)

mac_${IFACE}="random-anykind"
macchanger -A eth0
Current MAC:   11:11:11:11:11:11 (unknown)
Permanent MAC: 22:22:22:22:22:22 (Some Corporation)
New MAC:       33:33:33:33:33:33 (unknown)

mac_${IFACE}="random-full"
macchanger -r eth0
Current MAC:   11:11:11:11:11:11 (unknown)
Permanent MAC: 22:22:22:22:22:22 (Some Corporation)
New MAC:       33:33:33:33:33:33 (unknown)
Comment 3 kfm 2021-07-11 07:24:21 UTC

*** This bug has been marked as a duplicate of bug 504458 ***