ubuntu16添加静态ip

vim /etc/network/interfaces.d
source /etc/network/interfaces.d/*
 
# The loopback network interface
auto lo
iface lo inet loopback
 
# The primary network interface
auto ens192
iface ens192 inet static
address 10.200.83.53
netmask 255.255.252.0
gateway 10.200.83.254
dns-nameserver 10.13.103.13
 
ifup ens192
posted @ 2021-12-31 18:41  frantzz  阅读(47)  评论(0编辑  收藏  举报