请大家诊断──系统启动,不能自动无线上网问题!!!!!──附有详细描述!

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
abcmike
帖子: 52
注册时间: 2008-01-07 19:01

请大家诊断──系统启动,不能自动无线上网问题!!!!!──附有详细描述!

#1

帖子 abcmike » 2009-04-15 15:26

1.Thinkpad T22 , cisco pcmcia aironet 350和内置的pci mini 3com ,系统为全新安装的Lenny! ──eth0为 3com,eth1为无线。
2.环境是通过路由,固定IP,无线上网。

问题描述:1、启动后,显示,网络连上,有信号!就是不能上网。

2、经过下列操作

/etc/init.d/networking stop
ifup eth1

就可以上网了。

3、试过: ifdwon eth1,ifup eth1,不能上网

下列为配置文件内容:

一、/etc/network/interfaces :
# The loopback network interface

auto lo
iface lo inet loopback

#######################################

# The primary network interface

allow-hotplug eth0
iface eth0 inet static
address 192.168.1.8
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

dns-nameservers 192.168.1.1


# The pcmica wireless network interface

allow-hotplug eth1
iface eth1 inet static
address 192.168.1.6
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

dns-nameservers 192.168.1.1

wireless-essid ljshdfhsakh
wireless-key DSDFSF77DFSSAA4E607E5DS67DFS7 restricted



二、配制文件的内容/etc/init.d/networking :


PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"

[ -x /sbin/ifup ] || exit 0

. /lib/lsb/init-functions

process_options() {
[ -e /etc/network/options ] || return 0
log_warning_msg "/etc/network/options still exists and it will be IGNORED! Read README.Debian of netbase."
}

check_network_file_systems() {
[ -e /proc/mounts ] || return 0

exec 9<&0 < /proc/mounts
while read DEV MTPT FSTYPE REST; do
case $DEV in
/dev/nbd*|/dev/nd[a-z]*|/dev/etherd/e*)
log_warning_msg "not deconfiguring network interfaces: network devices still mounted."
exit 0
;;
esac
case $FSTYPE in
nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda|ocfs2|gfs|pvfs|pvfs2|fuse.httpfs|fuse.curlftpfs)
log_warning_msg "not deconfiguring network interfaces: network file systems still mounted."
exit 0
;;
esac
done
exec 0<&9 9<&-
}
case "$1" in
start)
process_options

log_action_begin_msg "Configuring network interfaces"
if ifup -a; then
log_action_end_msg $?
else
log_action_end_msg $?
fi
;;

stop)
check_network_file_systems

log_action_begin_msg "Deconfiguring network interfaces"
if ifdown -a --exclude=lo; then
log_action_end_msg $?
else
log_action_end_msg $?
fi
;;

force-reload|restart)
process_options

log_action_begin_msg "Reconfiguring network interfaces"
ifdown -a --exclude=lo || true
if ifup -a --exclude=lo; then
log_action_end_msg $?
else
log_action_end_msg $?
fi
;;

*)
echo "Usage: /etc/init.d/networking {start|stop|restart|force-reload}"
exit 1
;;
esac

exit 0
abcmike
帖子: 52
注册时间: 2008-01-07 19:01

Re: 请大家诊断──系统启动,不能自动无线上网问题!!!!!──附有详细描述!

#2

帖子 abcmike » 2009-04-15 20:23

两网卡IP,不能设置为同一网段!!!
回复