2007-11-06
Ubuntu network configure
关键字: Ubuntu,network,configuresudo su
gedit /etc/network/interfaces
文件内容:
auto lo
iface lo inet loopback
auto eth0 ##这个应该是决定是否启用这个端口
iface eth0 inet static ##静态设置IP
hwaddress ether 52:54:xx:51:xx:xx ##加入MAC地址,记得要放在IP地址之前
address 202.198.151.17
netmask 255.255.255.0
#broadcast 202.198.151.255
gateway 202.198.151.254
##通过dhcp动态设置
iface eth1 inet dhcp
设置MAC地址的映射关系(或者叫绑定)
gedit /etc/iftab
加入一行
eth1 mac 52:54:xx:51:xx:xx
设置DNS服务器
sudo vi /etc/resolv.conf
内容
nameserver 202.198.125.255
重新设置网络,以启用新设置
sudo /etc/init.d/networking restart
发表评论
最近加入圈子
最新评论
-
网络营销策划方案
2007年中国电子邮件营销市场规模达2.5亿元
-- by madsun -
网络营销策划方案
http://www.shang-ba.com/?p=68 2007年中国电子 ...
-- by madsun -
网络营销策划方案
[url= http://www.shang-ba.com/?p=68]200 ...
-- by madsun -
网络营销策划方案
[url= http://www.shang-ba.com/?p=68]2007 ...
-- by madsun -
DHTML checkbox 选择的几 ...
function doFlgCheckedCheck() { if (docu ...
-- by congpeixue







评论排行榜