ubuntu 设置固定ip的方法

kevin.Zhu 发布于:2022-9-15 13:39 分类:文摘  有 17 人浏览,获得评论 0 条  

https://blog.csdn.net/ting0712/article/details/104494803

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
 
auto ens33
  iface ens33 inet static
  address 192.168.73.132
  gateway 192.168.73.2
  netmask 255.255.255.0
  dns-nameservers 202.97.224.68 202.97.224.69