Cobra Forum

Linux Specialised Support => Virtualisation => Topic started by: kalpana on Oct 31, 2023, 04:29 AM

Title: Gateway Unreachable : Bridge Interface
Post by: kalpana on Oct 31, 2023, 04:29 AM
Hello Folks,

Once the netplan for bridge interface is applied , the gateway becomes unreachable. In the absence of bridge interface (physical interface) the gateway was reachable.

This is VM hosted in ESXi.

Code:
lsb_release -a

No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 18.04 LTS
Release:    18.04
Codename:    bionic

Code:
/etc/netplan/

network:
  version: 2
  renderer: networkd

  ethernets:
    ens160:
      dhcp4: false
      dhcp6: false
      #addresses: [10.86.185.55/25]
      #gateway4: 192.
      #mtu: 1500
      #nameservers:
      #  addresses: [8.8.8.8]

  bridges:
    br0:
      interfaces: [ens160]
      addresses: [10.86.185.55/25]
      gateway4: 10.86.185.1
      mtu: 1500
      nameservers:
        addresses: [8.8.8.8]
      dhcp4: no
      dhcp6: no
      macaddress: 88:d7:f6:78:91:72