Debian10下配置网络

南楼画角 提交于 2020-01-06 23:31:34

【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>

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
 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!