Debian10下配置网络

原创
2020/01/02 10:32
阅读数 2.5K

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
 

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部