Redhat where is ifconfig
The ip commands can be used to add and remove addresses and routes to interfaces in parallel with NetworkManager , which will preserve them and recognize them in nmcli , nmtui , control-center , and the D-Bus API. To bring an interface down: ip link set ifname down Note. This is different from the ifup ifname command for initscripts or NetworkManager 's activation state of a device.
In fact, NetworkManager always sets an interface up even if it is currently disconnected. Note that these are not persistent, and you must take additional steps to ensure that the routes created actually survive a reboot. Something like this:. This article is not so much a fight between the two as it is an exploration of old and new.
The decision has already been made, as ifconfig is being deprecated. The ip command suite is the way forward. However, just because something is new doesn't mean it is superior for every purpose. At the same time, however, "we've always done it this way" is not an excuse to stop improving. What are your thoughts? My honest takeaway is that ifconfig meets most of my needs at this point in my career.
However, the ip command is a more powerful tool and will be a staple for networking experts for years to come. Download a free ebook on network automation with Ansible. Tyler is a community manager at Enable Sysadmin, a submarine veteran, and an all-round tech enthusiast!
More about me. Relive our April event with demos, keynotes, and technical sessions from experts, all available on demand. Enable Sysadmin. Linux networking: ifconfig versus ip. The ifconfig command has served us well, but now it's time to look to the future with its replacement, the ip command.
Image by from Pixabay. Topics: Networking. Aaron Miller Aaron Miller 9, 23 23 silver badges 39 39 bronze badges. The ip command is slated to replace ifconfig , but way too many fingers know ifconfig to be able to delete it just now By default, ifconfig wont be there in RHEL.
Jakuje 9, 5 5 gold badges 26 26 silver badges 31 31 bronze badges. This happens to be the most important answer here, it lets you know that you need to install net-tools; which is required unless you specific it upon OS install. The Overflow Blog. Podcast Explaining the semiconductor shortage, and how it might end. Does ES6 make JavaScript frameworks obsolete?
Featured on Meta. New to Red Hat? Here are the common uses of Markdown. Learn more Close.
0コメント