Debian Network Setup

βœ” FINAL CONFIGURATION (DHCP)
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto enp3s0
iface enp3s0 inet manual

auto vmbr0
iface vmbr0 inet dhcp
    bridge-ports enp3s0
    bridge-stp off
    bridge-fd 0
  
πŸ”§ FINAL CONFIGURATION (STATIC IP)
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto enp3s0
iface enp3s0 inet manual

auto vmbr0
iface vmbr0 inet static
    address 192.168.0.179/24
    gateway 192.168.0.1
    bridge-ports enp3s0
    bridge-stp off
    bridge-fd 0
  
βž• DODATKOWE MULTI-IP (STATIC)
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto enp3s0
iface enp3s0 inet manual

auto vmbr0
iface vmbr0 inet static
    address 192.168.0.179/24
    gateway 192.168.0.1
    bridge-ports enp3s0
    bridge-stp off
    bridge-fd 0

# dodatkowe IP
iface vmbr0 inet static
    address 192.168.0.177/24

iface vmbr0 inet static
    address 192.168.0.200/24
  
πŸ”„ RESTART SIECI
ifreload -a
# albo
systemctl restart networking
  
πŸ’‘ WAΕ»NE
- DHCP pobiera IP dynamicznie z routera
- statyczne IP = zawsze ten sam adres
- multi-IP = aliasy interfejsu (vmbr0:0, vmbr0:1)