Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1695392
  • 博文数量: 391
  • 博客积分: 8464
  • 博客等级: 中将
  • 技术积分: 4589
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-13 15:12
个人简介

狮子的雄心,骆驼的耐力,孩子的执著!

文章分类

全部博文(391)

文章存档

2023年(4)

2018年(9)

2017年(13)

2016年(18)

2014年(7)

2013年(29)

2012年(61)

2011年(49)

2010年(84)

2009年(95)

2008年(22)

分类: LINUX

2009-04-14 09:47:54

网卡IP地址配置
/etc/network/interfaces
编辑 文件    sudo vi /etc/network/interfaces
重起 网卡    sudo  /etc/init.d/networking  restart
 
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
 
# The loopback network interface
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
 
 
auto eth0
iface eth0 inet dhcp
 
 
 
iface eth1 inet static
        address 192.168.0.2
        netmask 255.255.255.0
        gateway 192.168.0.1
In this case, you will need to specify your DNS servers manually in /etc/resolv.conf, which should look something like this:
search mydomain.example
nameserver 192.168.0.1
nameserver 4.2.2.2
 
 
DNS servers used on the network (implemented in the /etc/resolv.conf
阅读(594) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~