Skip to content

Instantly share code, notes, and snippets.

@dr-dimitru
Created February 22, 2021 17:39

Revisions

  1. dr-dimitru created this gist Feb 22, 2021.
    9 changes: 9 additions & 0 deletions client.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    auto lo
    iface lo inet loopback

    # The primary network interface
    auto eth0
    iface eth0 inet static
    address 10.0.1.2
    netmask 255.255.255.0
    gateway 10.0.1.1
    16 changes: 16 additions & 0 deletions host.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    auto vmbr0
    iface vmbr0 inet static
    address <PUBLIC_IP>
    netmask 255.255.255.224
    gateway <PUBLIC_IP>
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0

    auto vmbr2
    iface vmbr2 inet static
    address 10.0.1.1
    netmask 255.255.255.0
    bridge_ports none
    bridge_stp off
    bridge_fd 0