ip配置:

  终端输入vi /etc/network/interfaces命令编辑配置文件,增加如下内容:     
    auto enp2s0
    iface enp2s0 inet static
    address 192.168.1.211
    netmask 255.255.255.0
    gateway 192.168.1.1

  重启网卡:sudo service network-manager restart

  如果重启不生效就重启机器。

查看ubuntu版本:

  cat /etc/*-release

ubuntu 16.04常用命令

 

相关文章:

  • 2021-12-21
猜你喜欢
  • 2022-12-23
  • 2022-01-02
  • 2021-09-19
  • 2021-11-30
  • 2021-11-22
  • 2021-11-22
  • 2021-11-22
相关资源
相似解决方案