现在的位置: 首页 > ubuntu > 正文
ubuntu设置静态IP
2014年05月23日 ubuntu ⁄ 共 227字 评论数 1

编辑/etc/network/interfaces文件

nano  /etc/network/interfaces

如下

iface eth0 inet static
address 192.168.1.189
gateway 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
dns-nameservers 114.114.114.114,114.114.115.115

重启生效....

建伟

目前有 1 条留言 其中:访客:0 条, 博主:0 条

  1. 娅楠 : 2015年12月11日14:27:34  -49楼 @回复 回复

    顶你,支持博主!有意思

给我留言

留言无头像?



×