回归

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

 

步1:

 /etc/network/interfaces

 

步2:

# 主网卡配置(如 eth0 或 ens33)
auto ens33
iface ens33 inet static
    address 192.168.1.100
    netmask 255.255.255.0
    gateway 192.168.1.1
    dns-nameservers 8.8.8.8 114.114.114.114

  

步3:

sudo systemctl restart networking

  

  

posted on 2025-07-31 12:57  回归2016  阅读(119)  评论(0)    收藏  举报