Linux 101 : Troubleshooting double IP address assignment - error - RTNETLINK answers: Cannot assign requested address
We get the below results when we check the interface:
When we try to delete one of IP addresses using:
RTNETLINK answers: Cannot assign requested address
One solution is to flush all the IP addresses from the interface, then reassign a new address to it.
We can flush the IP addresses using the below command:
If we want the IP address to persist beyond a reboot, we need to put the configuration in the "/etc/network/interfaces" file:
For a dynamic IP address, we use:
Comments