Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
For some experimental purpose, I like to change the mac address of an interface to multicast mac address. But linux kernel is not allowing. I am using Fedora Core 19.
Quote:
$sudo macchanger --mac=3F:29:8f:70:00:68 enp0s20u4
Current MAC: 34:29:8f:70:00:68 (unknown)
Permanent MAC: 34:29:8f:70:00:69 (unknown)
[ERROR] Could not change MAC: interface up or insufficient permissions: Cannot assign requested address
Please tell some technique to override this. Thanks in advance.
Hi,
For some experimental purpose, I like to change the mac address of an interface to multicast mac address. But linux kernel is not allowing. I am using Fedora Core 19.
Code:
$sudo macchanger --mac=3F:29:8f:70:00:68 enp0s20u4
Current MAC: 34:29:8f:70:00:68 (unknown)
Permanent MAC: 34:29:8f:70:00:69 (unknown)
[ERROR] Could not change MAC: interface up or insufficient permissions: Cannot assign requested address
Please tell some technique to override this. Thanks in advance.
You've been using Linux for eight years now, based on your LQ history. And you've been told about sudo before, too....your error is VERY obvious; you're running that command as a regular user, not root/sudo.
strange, TB0ne, I can see the command starts with "sudo"?
anyhow, the error says "interface up or insufficient permissions" - maybe it's about the first case?
Indeed it does; I replied too quickly. Saw the "$" prompt with an "insufficient permissions" error. Still, though...Fedora 19?? It went EOL four years ago, so not surprised problems are coming up. Or that you can't change the MAC address of an interface that's already up.
Hi,
I tried putting down the interface in root prompt. Other mac addresses work, but not the multicast ones.
Code:
[root@svtstb2end1 network-scripts]# ifconfig enp0s20u4 down
[root@svtstb2end1 network-scripts]# macchanger --mac=3F:29:8f:70:00:68 enp0s20u4
Current MAC: 34:29:8f:70:00:68 (unknown)
Permanent MAC: 34:29:8f:70:00:69 (unknown)
[ERROR] Could not change MAC: interface up or insufficient permissions: Cannot assign requested address
[root@svtstb2end1 network-scripts]# macchanger --mac=32:29:8f:70:00:68 enp0s20u4
Current MAC: 34:29:8f:70:00:68 (unknown)
Permanent MAC: 34:29:8f:70:00:69 (unknown)
New MAC: 32:29:8f:70:00:68 (unknown)
Please suggest some solutions.
Since you say it's for 'some experimental purpose', have you read about what those addresses are, and their limitations?? Or what the components of a MAC address are? https://en.wikipedia.org/wiki/Multic...dress#Ethernet
Feel free to rewrite the kernel portions to remove the multicast limitations.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.