红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

ubuntu 7.10 静态IP设置

发布时间:2008-01-16 16:12:38来源:红联作者:redfans
今天在虚拟机上安了个ubuntu 7.10 ,默认是动态IP,静态IP需要手动设置,设置方法是:

sudo vi /etc/network/interfaces :

auto eth0
# iface eth0 inet dhcp
iface eht0 inet static
address 192.168.1.254
netmask 255.255.255.0
gateway 192.168.1.1
nameserver 192.168.1.1

sudo /etc/init.d/networking restart
文章评论

共有 1 条评论

  1. niutao0602 于 2008-01-16 16:15:06发表:

    图形模式下也可以设置,更方便。