Skip to content

Instantly share code, notes, and snippets.

@Nathan22211
Created July 24, 2025 22:21
Show Gist options
  • Save Nathan22211/e77945b1c6ce8f85c11ac9c967696ac5 to your computer and use it in GitHub Desktop.
Save Nathan22211/e77945b1c6ce8f85c11ac9c967696ac5 to your computer and use it in GitHub Desktop.
root@X99:~# 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!
auto lo
iface lo inet loopback
auto enp7s0
iface enp7s0 inet manual
auto enp8s0
iface enp8s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.1.2/24
gateway 192.168.1.1
bridge-ports enp7s0
bridge-stp off
bridge-fd 0
dns-nameservers 1.1.1.1 8.8.8.8
auto vmbr1
iface vmbr1 inet manual
bridge-ports none
bridge-stp off
bridge-fd 0
auto vmbr2
iface vmbr2 inet manual
bridge-ports enp8s0
bridge-stp off
bridge-fd 0
source /etc/network/interfaces.d/*
root@X99:~# cat /etc/resolv.conf
search homelab
nameserver 127.0.0.1
nameserver 1.1.1.1
nameserver 8.8.8.8
root@X99:~# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.100.2 X99.homelab X99
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
root@X99:~# cat /etc/hostname
X99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment