LinuxSir.cn,穿越时空的Linuxsir!

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

这次麻烦真大了。。

[复制链接]
发表于 2006-4-11 00:01:52 | 显示全部楼层 |阅读模式
今天配置IP地址。用ifocnfig  eth0 192.168.1.123 把原192.168.1.100改了。
可是重新启动就没用了。索性vi /etc/network/interface 在里面改IP 。
还是上不了。最后直接把interface里面的内容删掉了。。郁闷死了。
请高手帮忙。。。
我是通过路由192.168.1.1上的。没有DHCP自动获取。。
发表于 2006-4-11 08:41:57 | 显示全部楼层
man interface
回复 支持 反对

使用道具 举报

发表于 2006-4-11 10:57:50 | 显示全部楼层
cat /etc/network/interfaces
# 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

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.100
        netmask 255.255.255.0
        broadcast 192.168.1.255
        gateway 192.168.1.1

然后/etc/init.d/networking restart
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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