红联Linux门户
Linux帮助

Ubuntu下的网卡设置

发布时间:2007-06-29 00:35:24来源:红联作者:nsformat
#网卡设置

sudo vi /etc/network/interfaces

#iface eth0 inet dhcp (默认,注释掉)
iface eth0 inet static (设置成使用静态IP)

address 192.168.0.88 (IP地址)

netmask 255.255.255.0 (掩码)

gateway 192.168.0.1 (网关)

保存退出后:

sudo /etc/init.d/networking restart (重启网络)
文章评论

共有 0 条评论