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

Ubuntu 7.10下绑定IP及MAC地址

发布时间:2008-02-29 11:25:25来源:红联作者:zidscen
因为学校IP分配时绑定在MAC地址,旧机器没法获取IP,只有借另一台分配了IP的主机的资源了。

一.修改/etc/network/interfaces,注释自动获取IP,并添加自动从网卡获取地址。

#auto lo

#iface lo inet lockloop

auto eth0

二. 修改/etc/network/interfaces,添加静态IP信息

iface eth0 inet static

address ***.***.***.***

netmask 255.255.255.0

gateway ***.***.***.254

三.修改/etc/resolv.conf,设置DNS

namaserver ***.***.***.***

nameserver ***.***.***.***

四.重启网络

管理员身份执行 /etc/init.d/networking restart

五.重新启动网络,enjoy Ubuntu。
文章评论

共有 0 条评论