找回密码
 注册
查看: 675|回复: 2

网卡问题

[复制链接]
发表于 2006-6-12 17:35:43 | 显示全部楼层 |阅读模式
本人装的是debian,使用eth0,eth1两块网卡,eth1是外网,eth0是内网。

/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

auto dsl-provider
iface dsl-provider inet ppp
     provider dsl-provider
# please do not modify the following line
     pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf

#zerry
auto eth1
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0

但是每次系统启动后,得到的eth0的IP地址为空(没有设置)
所以每一次都ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
是不是我的interfaces编辑的不对?
发表于 2006-6-12 17:37:42 | 显示全部楼层
auto eth0
回复

使用道具 举报

 楼主| 发表于 2006-6-12 17:41:10 | 显示全部楼层
哈,一个低级错误!谢谢
回复

使用道具 举报

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

本版积分规则

GMT+8, 2025-2-12 16:19 , Processed in 0.028886 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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