typora/note/linux/debian/debian 固定 ip.md
2024-12-12 10:48:55 +08:00

17 lines
425 B
Markdown

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug ens160
auto ens160
iface ens160 inet static
address 192.168.39.100
netmask 255.255.255.0
gateway 192.168.39.2
dns-nameservers 192.168.39.2