蜘蛛般生活 -_-!

Ubuntu Server 下的网络配置

七月 24th, 2008
发表于 笔记 | 没有回响

检查网络配置
$ ifconfig

配置DHCP客户端
$ sudo vi /etc/network/interfaces
加入 iface eth0 inet dhcp

配置静态IP地址
$ sudo vi /etc/network/interfaces
eth0配置如下:
auto eth0
address 192.168.0.88
netmask 255.255.255.0
gateway 192.168.0.1

让新配置生效
保存退出后,使用重启networking命令让新配置生效:
$ sudo /etc/init.d/networking restart
也可以重启网卡让新配置生效,优点是不影响其他网络接口:
$ sudo ifdown eth0
$ sudo ifup eth0
阅读全文

SEO Powered by Platinum SEO from Techblissonline