当前位置:首页 > 服务器类 > Linux服务器 > > Ubuntu 7.10 Linux系统绑定IP及MAC地址

Ubuntu 7.10 Linux系统绑定IP及MAC地址

点击次数:32 次 发布日期:2008-11-21 23:18:26 作者:源代码网
源代码网推荐

一。修改/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)
会员中心
服务器类
本站推荐
服务器类之精华