Ifup breaks network connection

maomaocake

Member
Feb 13, 2022
47
4
13
21
Hi, this is the first system that I have multiple network cards on so this might be absolutely my fault/ misunderstanding. So I have the initial config vmbr0
Code:
iface vmbr0 inet static
        address xx.xx.xx.xx/24
        gateway xx.xx.xx.xx - this gateway can access the internet
        bridge-ports enp7s0
        bridge-stp off
        bridge-fd 0

and then I have another config
Code:
iface ens4 inet static
        address xx.xx.xx.xx/24
        gateway xx.xx.xx.xx - this gateway cannot access the internet
        netmask 255.255.255.0

Assuming the vmbr0 is in the up state and ens4 is down if I
Code:
ifup ens4
i am no longer able to ping 1.1.1.1 but if I
Code:
ifup vmbr0
again everything works as normal. What happened here?
 
Hi, this is the first system that I have multiple network cards on so this might be absolutely my fault/ misunderstanding. So I have the initial config vmbr0
Code:
iface vmbr0 inet static
        address xx.xx.xx.xx/24
        gateway xx.xx.xx.xx - this gateway can access the internet
        bridge-ports enp7s0
        bridge-stp off
        bridge-fd 0

and then I have another config
Code:
iface ens4 inet static
        address xx.xx.xx.xx/24
        gateway xx.xx.xx.xx - this gateway cannot access the internet
        netmask 255.255.255.0

Assuming the vmbr0 is in the up state and ens4 is down if I
Code:
ifup ens4
i am no longer rooftop snipers able to ping 1.1.1.1 but if I
Code:
ifup vmbr0
again everything works as normal. What happened here?
If both vmbr0 and ens4 have the same default gateway configured, bringing up ens4 might cause conflicts in the routing table, leading to connectivity issues.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!