Debian系统设置

配置默认编辑器:update-alternatives --config editor

配置IP:


sudo  vim  /etc/network/interfaces

 

# 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 eth0

#iface eth0 inet dhcp

 

auto eth0

iface eth0 inet static

address 192.168.1.101

netmask 255.255.255.0

gateway 192.168.1.1

或

iface enp4s0 inet static

       address 192.168.1.68/24

       gateway 192.168.1.253

       # dns-* options are implemented by the resolvconf package, if installed

       dns-nameservers 202.101.172.35

posted @ 2021-08-31 09:18  源世  阅读(118)  评论(0)    收藏  举报