debian 更改IP

admin   ·   发表于 3个月前   ·   linux

1、root@debian030:/etc/network# cat /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 ens32

iface ens32 inet static



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


2、sudo systemctl restart networking.service

3、ip add show

0 Reply   |  Until 3个月前 | 151 View
LoginCan Publish Content