如果网卡为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
阅读(669) | 评论(0) | 转发(0) |