# Creating Bridged network for KVM using nmcli loses Eth0

**URL:** <https://forums.rockylinux.org/t/creating-bridged-network-for-kvm-using-nmcli-loses-eth0/11339>\
**Category:** Rocky Linux Help & Support\
**Created:** [September 19, 2023, 3:32pm UTC](https://forums.rockylinux.org/t/creating-bridged-network-for-kvm-using-nmcli-loses-eth0/11339 "2023-09-19T15:32:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nico](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@nico](https://forums.rockylinux.org/u/nico)\
**Post date:** [September 19, 2023, 3:32pm UTC](https://forums.rockylinux.org/t/creating-bridged-network-for-kvm-using-nmcli-loses-eth0/11339/1 "2023-09-19T15:32:45Z")

</div>

Hi there  
Please can you help me.

we run these commands to add bridge networking to our Rocky 9.1 server

sudo nmcli conn add type bridge con-name br0 ifname br0  
sudo nmcli conn add type ethernet slave-type bridge con-name bridge-br0 ifname eth0 master br0  
udo nmcli conn up br0  
sudo nmcli conn down eth0

Now when I try to brigng up eth0 :  
sudo nmcli conn up eth0  
sudo nmcli conn down br0

The eth0 device cant be found  
Unfortunately I did not know how to backup my network before I started creating a bridge  
Both my colleague and I lost our networks on the server and had to re-roll this a few times

1. is there a way to backup and restore the networking?

2. Is there a procedure that works for Rock 9.1 to create a KVM Bridge?

3. We want the bridge for our VMs to have networking but we still need to ssh to the server  
which we cant do after adding a bridge br0.  
how can we do that?  
4 is these a working procedure we can use on Rocky 9.1 to have bridge and still be able to ssh to the server?

kind regards  
Nico

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [September 19, 2023, 4:56pm UTC](https://forums.rockylinux.org/t/creating-bridged-network-for-kvm-using-nmcli-loses-eth0/11339/2 "2023-09-19T16:56:50Z")

</div>

> [@nico](#):
>
> ```auto
> sudo nmcli conn add type bridge con-name br0 ifname br0
> sudo nmcli conn add type ethernet slave-type bridge con-name bridge-br0 ifname eth0 master br0
> 
> ```

That looks ok.

- The physical interface (device `eth0`) has a connection named “bridge-br0” that acts as a port of the bridge “br0”. Ports do not have IP addresses
- The host has connection “br0” that should have the IP address and whatnot that the host uses to communicate with other machines
- There should not be any other connections for the device `eth0`

In other words, _before_ the host had IPv4 config on connection “eth0”. _After_ the config must be on the “br0”.

* * *

The tricky part is if your only way to change the config of the host is via network, i.e. with ssh session.

---

<div class="post-metadata">

**Author:** ![nico](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@nico](https://forums.rockylinux.org/u/nico)\
**Post date:** [September 20, 2023, 10:04am UTC](https://forums.rockylinux.org/t/creating-bridged-network-for-kvm-using-nmcli-loses-eth0/11339/3 "2023-09-20T10:04:22Z")

</div>

Thank you for the information  
I will look at that

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [November 19, 2023, 10:05am UTC](https://forums.rockylinux.org/t/creating-bridged-network-for-kvm-using-nmcli-loses-eth0/11339/4 "2023-11-19T10:05:06Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
