Chinaunix首页 | 论坛 | 博客
  • 博客访问: 54174
  • 博文数量: 18
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 320
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-03 14:07
文章分类

全部博文(18)

文章存档

2008年(18)

我的朋友

分类:

2008-04-07 12:47:04

如果网卡为eri0,则删除 /etc/eri0.dhcp文件,停止dhcp(网卡名称为hme0,则删除/etc/hme0.dhcp)
修改主机名和IP地址
1./etc/hostname.hme0 (主机名)
example:
sun5
2./etc/hosts (主机名/IP地址)   
example:
sun5        192.168.0.5
3./etc/netmasks (IP地址)
example:
192.168.0.0        255.255.255.0
4./etc/nodename (主机名)
example:
sun5
5./etc/net/ticlts/hosts (主机名,要写2遍)
example:
sun5        sun5
6./etc/net/ticots/hosts (主机名,要写2遍)
example:
sun5        sun5
7./etc/net/ticotsord/hosts (主机名,要写2遍)
example:
sun5        sun5
8./etc/defaultrouter (默认网关)
example:
192.168.0.1

DNS配置
1./etc/nsswitch.conf (修改 host这行,在file后面增加dns)
2./etc/resolv.conf
example:
nameserver 202.96.209.5
阅读(646) | 评论(0) | 转发(0) |
0

上一篇:正则表达式用法

下一篇:apache 连接数设置

给主人留下些什么吧!~~