为网卡配置静态IP地址
编辑文件/etc/network/interfaces:
sudo vi /etc/network/interfaces
并用下面的行来替换有关eth0的行:
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.2.1
gateway 192.168.2.254
netmask 255.255.255.0
#network 192.168.2.0
#broadcast 192.168.2.255

相关文章:

  • 2021-12-24
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2021-11-19
  • 2021-11-19
猜你喜欢
  • 2021-10-25
  • 2022-02-11
  • 2021-11-28
  • 2021-04-30
  • 2021-10-12
  • 2022-12-23
  • 2021-06-27
相关资源
相似解决方案