---
tags: 
parents: 
date/time: 2024-11-18T20:05:00
---
erterterimplemented the solution [here](https://getlabsdone.com/how-to-connect-kvm-vm-to-host-network/)

## Network Manager icon looks disable, however networking is fine:

If the NetworkManager icon does not show a connection after setting up bridge networking on Debian 12, it may be because NetworkManager is not managing the bridge interface. By default, NetworkManager does not manage interfaces defined in 

interfaces

 or 

interfaces.d

. Here’s how you can resolve this issue:

### Option 1: Configure NetworkManager to Manage the Bridge

1. **Install `network-manager-bridge`**:
   ```sh
   sudo apt-get install network-manager-bridge
   ```

2. **Create a Bridge Interface Using NetworkManager**:
   - Open a terminal and use `nmcli` to create and configure the bridge.

   ```sh
   sudo nmcli connection add type bridge ifname br0
   sudo nmcli connection add type bridge-slave ifname eth0 master br0
   sudo nmcli connection modify br0 ipv4.addresses 192.168.1.100/24 ipv4.gateway 192.168.1.1 ipv4.dns "8.8.8.8 8.8.4.4" ipv4.method manual
   sudo nmcli connection up br0
   ```

3. **Remove the Bridge Configuration from 

interfaces

**:
   - Open the file and remove or comment out the bridge configuration to avoid conflicts.

   ```sh
   sudo nano /etc/network/interfaces
   ```

   Comment out or remove the bridge configuration:
   ```plaintext
   # auto br0
   # iface br0 inet static
   #     address 192.168.1.100
   #     netmask 255.255.255.0
   #     gateway 192.168.1.1
   #     dns-nameservers 8.8.8.8 8.8.4.4
   #     bridge_ports eth0
   #     bridge_stp off
   #     bridge_fd 0
   #     bridge_maxwait 0
   ```

4. **Restart NetworkManager**:
   ```sh
   sudo systemctl restart NetworkManager
   ```

### Option 2: Configure NetworkManager to Ignore 

interfaces



1. **Edit NetworkManager Configuration**:
   - Open the NetworkManager configuration file.

   ```sh
   sudo nano /etc/NetworkManager/NetworkManager.conf
   ```

2. **Modify the Configuration**:
   - Ensure the following lines are present to tell NetworkManager to manage all devices.

   ```plaintext
   [main]
   plugins=ifupdown,keyfile

   [ifupdown]
   managed=true
   ```

3. **Restart NetworkManager**:
   ```sh
   sudo systemctl restart NetworkManager
   ```

### Summary

- **Option 1**: Use NetworkManager to create and manage the bridge interface. This ensures that the NetworkManager icon reflects the connection status.
- **Option 2**: Configure NetworkManager to manage interfaces defined in 

interfaces

.

By following these steps, you should be able to see the connection status in the NetworkManager icon after setting up bridge networking on Debian 12.