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.
Hello,
I'm using CentOS 8. when I set a manual IP to my NIC and back it to DHCP then the NIC IP doesn't change. I restarted "networking" service and used "ifdown" and "ifup" commands too, but problem exist.
How can I clear NIC cache or Flush it?
Is the manual IP in the range of dynamic addresses provided by the dhcp server? If so, changing the type from static to dynamic may not cause the IP address to change.
There isn’t a “NIC cache” afaik
Is the manual IP in the range of dynamic addresses provided by the dhcp server? If so, changing the type from static to dynamic may not cause the IP address to change.
There isn’t a “NIC cache” afaik
Yes, it is.
As I said, after changed the IP address, I restarted networking service and I used "ifdown" and "ifup" to bring NIC Down and UP.
How did you set a manual IP address? Did you manually edit the ifcfg configuration file or use the Network Manager applet?
If you manually edited the ifcfg file then without seeing those changes it is difficult to determine what is not working. ifdown and ifup actually use Network Manager's cli interface i.e. nmcli to stop/start networking.
If you installed the legacy network-scripts package make sure you stop network manager.
Yes, it is.
As I said, after changed the IP address, I restarted networking service and I used "ifdown" and "ifup" to bring NIC Down and UP.
You should never set a static IP that’s in the range of dynamic IPs...you run the risk of having duplicate IPs on your network.
As I said, if that’s what you did, there’s no reason for the computer to reassign/change the IP address because you changed the type.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.