vi /etc/network/interfaces 编辑这个文件

 

     #iface eth0 inet dhcp  找到修改这个,前面加#

     iface eth0 inet static  改为静态分配ip

        address 192.168.35.225

        netmask 255.255.255.0

        gateway 192.168.35.254

     保持,然后reboot

相关文章:

  • 2022-01-17
  • 2022-12-23
  • 2021-12-04
  • 2021-04-07
  • 2021-04-22
  • 2021-06-06
  • 2021-05-19
猜你喜欢
  • 2022-01-22
  • 2021-08-20
  • 2021-11-29
相关资源
相似解决方案