Ubuntu18.04 如何配置静态IP

Ubuntu18.04 如何配置静态IP?

请先 登录 后评论

1 个回答

BBelephant

配置静态IP

# vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0 #自己的网卡名称
iface eth0 inet static
address 192.168.0.222 # win下的局域网,注意win的网络地址发送变化,静态地址需修改。
netmask 255.255.255.0
gateway 192.168.0.1





请先 登录 后评论
  • 1 关注
  • 0 收藏,637 浏览
  • BBelephant 提出于 2023-11-20 11:49

相似问题