Skip to content

Instantly share code, notes, and snippets.

@myagizmaktav
Last active February 13, 2024 14:07
Show Gist options
  • Select an option

  • Save myagizmaktav/d1ddc3de3dc5ec06ea195e2e553c91e3 to your computer and use it in GitHub Desktop.

Select an option

Save myagizmaktav/d1ddc3de3dc5ec06ea195e2e553c91e3 to your computer and use it in GitHub Desktop.
root@server159616:~# cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!
if you have 1 NIC But multiple ip have.
auto lo
iface lo inet loopback
auto enp0s31f6
iface enp0s31f6 inet manual
dns-nameservers 1.0.0.2
# dns-search domain.local
# dns-* options are implemented by the resolvconf package, if installed
iface enp0s31f6.17 inet manual
iface enp0s31f6.1 inet manual
auto vmbr0
iface vmbr0 inet static
address 111.90.140.16/25
gateway 111.90.140.1
bridge-ports enp0s31f6
bridge-stp off
bridge-fd 0
#primary WAN
auto vmbr1
iface vmbr1 inet static
address 111.90.140.17/25
bridge-ports enp0s31f6.17
bridge-stp off
bridge-fd 0
#Secondary WAN
auto vmbr2
iface vmbr2 inet static
address 192.168.1.10/24
bridge-ports enp0s31f6.1
bridge-stp off
bridge-fd 0
# gateway 192.168.1.1
root@server159616:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment