Stack Exchange Network

Stack Exchange network consists of 181 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Set MAC address fails - RTNETLINK answers: Cannot assign requested address

I am attempting to change the MAC address of eth0 to 3d:dd:c8:88:c2:0d on a linux mint 15 cinnamon machine. Using "ip link set dev eth0 address" fails as seen below and macchanger produces a similar error message("Cannot assign requested address"). As seen another MAC can be set, but I need this specific one.

Any suggestions as to how I can make the change or just why it fails?

kidmose's user avatar

MAC addresses have two special bits in the first byte:

You are trying to set an address that has the multicast bit set, which does not work because any reply to your host would be interpreted as a multicast packet.

Also, when you change a MAC address and do not have an OUI assigned to you, please set the local assignment bit.

Here's a diagram that may help give more detail:

MAC address diagram

Your Answer

Sign up or log in, post as a guest.

Required, but never shown

By clicking “Post Your Answer”, you agree to our terms of service , privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged linux networking mac ethernet or ask your own question .

Hot Network Questions

rtnetlink cannot assign requested address

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy .

IT hands-on

Linux 101 : troubleshooting double ip address assignment - error - rtnetlink answers: cannot assign requested address.

rtnetlink cannot assign requested address

Popular Posts

Image

Network Debugging

Related articles

Merge-arrows-2.png

Link status

In the overview of ip a , the link status will already be displayed. But it can also be displayed by running:

This will provide an output along the lines of:

Bringing up an interface can be done by issuing:

RTNETLINK answers: Cannot assign requested address

If you get this error when trying to set an interface up, its most probably because you have an invalid MAC address. To set a working MAC, see MAC address spoofing .

In the overview provided by ip a , the ip address will already be displayed. But it can also be displayed by running:

Adding a temporary ip address:

Removing an ip address:

Ping & Tracepath/Traceroute

The ping command can help test connectivity towards a specific host.

The first step would be verifying connectivity towards the default gateway (replace the ip address with your own default gateway):

When erasing the "-c4" parameter, the ping will continue endlessly. It can be aborted by hitting "Control-C".

The output above indicated the default gateway is reachable. When instead a " Destination Host Unreachable " message is displayed, doublecheck the ip address, netmask and default gateway config. This message can also be displayed when ICMP traffic is not permitted towards the default gateway (blocked by a firewall, router,...).

The next step is verifying connectivity towards the configured dns server(s). When no reply is received, tracepath or traceroute can be used to verify the routing towards said server and get an idea of where the issue lies.

Traceroute also used ICMP to determine the path and hence there can be "no reply" answers as well when ICMP traffic is blocked.

tcpdump , and its underlying library libpcap , are multi-platform user space interfaces to the packets on the network. It should be emphasized they do see, they can capture, any inbound packets that reach the local NIC. No matter if the local software firewall is blocking those packets, or not. On the other hand, they can only see outbound packets the firewall passes through: [1]

A short, unintimidating introduction to tcpdump, with examples, is at: [2]

Linux Containers Forum

Failed to run: ip link set dev veth7e6c37ce address 11:16:3e:59:b3:71: RTNETLINK answers: Cannot assign requested address

I am having issues changing the MAC address of containers, even when setting what seem to be a valid MAC addreses but the container no longer starts.

For example, take the mac address generated by LXD, and changing the prefix, e.g. 00:16:3e:69:fe:8b → 01:16:3e:69:fe:8b and the container can longer being started.

Mac address seems valid but it fails, why is this?

That MAC address actually is invalid. Generating MAC addresses isn’t as simple as picking a random number. There are reserved bits which control whether they are unicast or multicast and whether they are global or local.

The address you’re showing is a global multicast address whereas you need a global unicast address for this use.

Thank you, I was not aware of that.

Debian Bug report logs - #858070 ifupdown: ifdown puts the interface down before removing the IPv6 addresses

version graph

Package: ifupdown ; Maintainer for ifupdown is Josué Ortega <[email protected]> ; Source for ifupdown is src:ifupdown ( PTS , buildd , popcon ).

Reported by: Daniel Haid <[email protected]>

Date: Fri, 17 Mar 2017 22:51:02 UTC

Severity: normal

Found in versions ifupdown/0.8.19, ifupdown/0.8.36

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder , status mbox , maintainer mbox

Report forwarded to [email protected], Guus Sliepen <[email protected]> : Bug#858070 ; Package ifupdown . (Fri, 17 Mar 2017 22:51:05 GMT) ( full text , mbox , link ).

Acknowledgement sent to Daniel Haid <[email protected]> : New Bug report received and forwarded. Copy sent to Guus Sliepen <[email protected]> . (Fri, 17 Mar 2017 22:51:05 GMT) ( full text , mbox , link ).

Message #5 received at [email protected] ( full text , mbox , reply ):

rtnetlink cannot assign requested address

Information forwarded to [email protected], Josué Ortega <[email protected]> : Bug#858070 ; Package ifupdown . (Sat, 07 Jan 2023 04:45:03 GMT) ( full text , mbox , link ).

Acknowledgement sent to "Conrad T. Pino" <[email protected]> : Extra info received and forwarded to list. Copy sent to Josué Ortega <[email protected]> . (Sat, 07 Jan 2023 04:45:04 GMT) ( full text , mbox , link ).

Message #10 received at [email protected] ( full text , mbox , reply ):

rtnetlink cannot assign requested address

Send a report that this bug log contains spam .

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/ .

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.

RTNETLINK answers: Cannot assign requested address

Cannot remove static address from interface

rtnetlink cannot assign requested address

I am trying to reconfigure one of the ports on my ER POE 5. It is currently set for a static address, but it needs to move to Dynamic as the ISP has changed their network configuration. When attempting to set it back to DHCP, i get a RTNETLINK answers: Cannot assign requested address. This is the only interface that is giving me difficulty. It looks like there is a blank address when viewed from the GUI right above it, making me think there is a random new line in the config pushing it down. the other interface lines in the ui are all on one line. I did look through the config tree and only one address was set for that interface " i had hoped to see a blank entry " Has anyone seen this behavior before and come up with a fix ? Id rather not have to default it, but if thats what it takes, so be it.

Eth0 is bad, Eth1 is fine

https://imgur.com/zsLJPPe

' src=

Looks like a reboot corrected the problem.

About Community

Subreddit Icon

Ranked by Size

IMAGES

  1. Linux 101 : Troubleshooting double IP address assignment

    rtnetlink cannot assign requested address

  2. Linux 101 : Troubleshooting double IP address assignment

    rtnetlink cannot assign requested address

  3. Linux 101 : Troubleshooting double IP address assignment

    rtnetlink cannot assign requested address

  4. Linux 101 : Troubleshooting double IP address assignment

    rtnetlink cannot assign requested address

  5. Linux 101 : Troubleshooting double IP address assignment

    rtnetlink cannot assign requested address

  6. Linux 101 : Troubleshooting double IP address assignment

    rtnetlink cannot assign requested address

VIDEO

  1. 01-IP Routing :: part 5

  2. Caillou For Hire #1: 7-11

  3. Redirecting Telnet / Telnet Proxy Configuration

  4. A letter to the Editor

  5. Ex 23.4 Q 1

  6. Ex 23.4 Q 1-2

COMMENTS

  1. linux

    Using "ip link set dev eth0 address" fails as seen below and macchanger produces a similar error message("Cannot assign requested address"). As

  2. Impossible to remove old IP addresses

    I can add new ones and remove them but not remove older. When I try to do so I just get the message "RTNETLINK answers: Cannot assign requested address".

  3. Linux 101 : Troubleshooting double IP address assignment

    Linux 101 : Troubleshooting double IP address assignment - error - RTNETLINK answers: Cannot assign requested address ... Sometimes, we mistakenly

  4. RTNETLINK answers: Cannot assign ...

    RTNETLINK answers: Cannot assign requested address ... unused ip/subnet just to bring the interface online but not request an ip via dhcp.

  5. Network Debugging

    RTNETLINK answers: Cannot assign requested address ... If you get this error when trying to set an interface up, its most probably because you

  6. Failed to run: ip link set dev veth7e6c37ce address 11:16:3e:59:b3

    Failed to run: ip link set dev veth7e6c37ce address 11:16:3e:59:b3:71: RTNETLINK answers: Cannot assign requested address I am having issues

  7. ifupdown: ifdown puts the interface down before removing the IPv6

    ... and then tries to remove the IPv6 addresses, which results in the error message "RTNETLINK answers: Cannot assign requested address".

  8. RTNETLINK answers: Cannot assign ...

    RTNETLINK answers: Cannot assign requested address ... up I get a failure to assign the allocated ip address, allocated by my dhcp server.

  9. Linux: Set MAC address fails

    Using "ip link set dev eth0 address" fails as seen below and macchanger produces a similar error message("Cannot assign requested address").

  10. Cannot remove static address from interface : r/Ubiquiti

    When attempting to set it back to DHCP, i get a RTNETLINK answers: Cannot assign requested address. This is the only interface that is