LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 513|回复: 1

[请教]为什么我每次启动

[复制链接]
发表于 2004-10-16 21:00:39 | 显示全部楼层 |阅读模式
我原先用ifconfig命令
设置的ip,掩码,网关和dns服务器都回复到原来的错误的配置
郁闷啊
发表于 2004-10-16 21:08:32 | 显示全部楼层
要到文件裏修改...
1.這是關於ip.subnet
[root@shlinux root]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.7.112
NETMASK=255.255.255.0
NETWORK=192.168.7.0
BROADCAST=192.168.7.255
ONBOOT=yes
MII_NOT_SUPPORTED=no
WIRELESS_ENC_KEY=""
[root@shlinux root]#
2.關於DNS的服務器
[root@shlinux root]# cat /etc/resolv.conf

nameserver 127.0.0.1
nameserver 192.168.1.253


# ppp temp entry
3.[root@shlinux root]# cat /etc/hosts
192.168.7.112           shlinux.peter.com shlinux
127.0.0.1               localhost
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表