Debian10 configure network:
edit network configure file:
/etc/network/interfaces
#configure static IP:
source /etc/network/interfaces.d/*
#Loopback address
auto lo
iface lo inet loopback
# set network ens33 to static IP
# auto connect network
auto ens33
# static stand for use static ip, dhcp for dynamical ip
iface ens33 inet static
# set ip address
address 192.168.1.188
#set subnetwork mask
netmask 255.255.255.0
# set gateway
gateway 192.168.1.1
#configure dynamical IP:
source /etc/network/interfaces.d/*
#Loopback address
auto lo
iface lo inet loopback
# set network ens33 to static IP
# auto connect network
auto ens33
# static stand for use static ip, dhcp for dynamical ip
iface ens33 inet dhcp
# set ip address
address 192.168.1.188
#set subnetwork mask
netmask 255.255.255.0
# set gateway
gateway 192.168.1.1
# restart network:
service networking restart
/etc/init.d/networking restart