I am wondering what is missing on my RedHat machine to not be able to execute those commands
[root@myhost ~]# ifdown
bash: ifdown: command not found...
[root@myhost ~]# ifup
bash: ifup: command not found...
Hi @samco,
you can use the package manager to find the package that provides a specific file resp. command. Take a look e.g. here: How to find which rpm package provides a specific file or library in RHEL / CentOS – The Geek Diary.
It is legacy, and can conflict with the new method that RedHat provides: network manager.
Get used to the nmcli
command!
man nmcli
And maybe some tutorials.
For an interactive use there is nmtui
I think the corresponding commands are
nmcli dev disconnect eth0
nmcli dev connect eth0
nmcli dev show
lists the interfaces.
Usually you work with the connections:
nmcli con show
You can down
(and up
) a connection, but type auto
might bring it automatically up.