# Ifdown & ifup are not working

**URL:** <https://community.unix.com/t/ifdown-ifup-are-not-working/392022>\
**Category:** Red Hat\
**Created:** [September 15, 2023, 2:55pm UTC](https://community.unix.com/t/ifdown-ifup-are-not-working/392022 "2023-09-15T14:55:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![samco](https://community.unix.com/letter_avatar/samco/32/6_22734026db12803ebb3e059622ac3534.png) [@samco](https://community.unix.com/u/samco)\
**Post date:** [September 15, 2023, 2:55pm UTC](https://community.unix.com/t/ifdown-ifup-are-not-working/392022/1 "2023-09-15T14:55:57Z")

</div>

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...

 ![image](https://community.unix.com/uploads/default/original/3X/7/2/72f98864c0b07f962231e4800517e9b2b027374d.png)

---

<div class="post-metadata">

**Author:** ![bendingrodriguez](https://community.unix.com/user_avatar/community.unix.com/bendingrodriguez/32/21971_2.png) [@bendingrodriguez](https://community.unix.com/u/bendingrodriguez)\
**Post date:** [September 15, 2023, 3:00pm UTC](https://community.unix.com/t/ifdown-ifup-are-not-working/392022/2 "2023-09-15T15:00:17Z")

</div>

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](https://www.thegeekdiary.com/how-to-find-which-rpm-package-provides-a-specific-file-or-library-in-rhel-centos/).

---

<div class="post-metadata">

**Author:** ![MadeInGermany](https://community.unix.com/letter_avatar/madeingermany/32/6_22734026db12803ebb3e059622ac3534.png) [@MadeInGermany](https://community.unix.com/u/MadeInGermany)\
**Post date:** [September 15, 2023, 5:24pm UTC](https://community.unix.com/t/ifdown-ifup-are-not-working/392022/3 "2023-09-15T17:24:26Z")

</div>

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

```plaintext
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.
