Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Solution
create Bridge

Need to install ifupdown2

ifup

ifdown enp2s0

ifdown vmbr1


iface

enp2s0

vmbr1 inet dhcp

ifup enp2s0

ifup vmbr1

Code Block
titledhcp
root@hp8300:~# more /etc/network/interfaces
auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.0.9
        netmask 255.255.255.0
        gateway 192.168.0.1
        bridge_ports eno1
        bridge_stp off
        bridge_fd 0

iface enp2s0 inet manual

auto vmbr1
iface vmbr1 inet dhcp
        bridge_ports enp2s0
        brdige_stp off
p