ubuntu network configer file

来源:互联网 发布:单片机实验怎么做 编辑:程序博客网 时间:2024/06/14 01:13

1. /etc/network/interface

add

auto eth0

iface eth0 inet  static

address 192.168.1.115

netmask 255.255.255.0

geteway 192.168.1.254



2./etc/init.d/networking restart


3.dns

/etc/resolv.conf

add

nameserver 202.96.134.133

4./etc/init.d/networking restart

ok