|
我使用 ADSL 拨号上网。现发现 2.0 beta2 的怪现象:8139too 网卡在系统启动时默认加载模块为 8139cp:
[code:1]
[root@MagicLinux ~]# lsmod
Module Size Used by
parport_pc 31812 1
lp 10056 0
parport 26952 2 parport_pc,lp
sunrpc 108740 1
pcmcia 19592 0
yenta_socket 17928 0
rsrc_nonstatic 10112 1 yenta_socket
pcmcia_core 33432 3 pcmcia,yenta_socket,rsrc_nonstatic
binfmt_misc 9352 1
nls_cp936 120448 16
vfat 11520 8
fat 44572 1 vfat
dm_mod 44988 0
video 11268 0
thermal 9480 0
uhci_hcd 27536 0
pci_hotplug 22196 0
snd_cmipci 25120 1
gameport 9736 1 snd_cmipci
snd_seq_dummy 2052 0
snd_seq_oss 27776 0
snd_seq_midi_event 4352 1 snd_seq_oss
snd_seq 40336 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss 45344 0
snd_mixer_oss 16128 1 snd_pcm_oss
snd_pcm 67464 2 snd_cmipci,snd_pcm_oss
snd_page_alloc 6148 1 snd_pcm
snd_opl3_lib 7552 1 snd_cmipci
snd_timer 18820 3 snd_seq,snd_pcm,snd_opl3_lib
snd_hwdep 6688 1 snd_opl3_lib
snd_mpu401_uart 5248 1 snd_cmipci
snd_rawmidi 17952 1 snd_mpu401_uart
snd_seq_device 5260 5 snd_seq_dummy,snd_seq_oss,snd_seq,snd_opl3_lib,snd_rawmidi
snd 38148 14 snd_cmipci,snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_opl3_lib,snd_timer,snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_device
8139cp 16512 0
mii 3840 1 8139cp
floppy 50900 0
ide_cd 36868 0
evdev 7424 0
tsdev 5568 0
[/code:1]
但是 /etc/modprobe.conf 里能够正确识别网卡:
[code:1]
alias eth0 8139too
[/code:1]
而且无论如何修改 /etc/modprobe.conf 里的设置都不起作用。手工加载 8139too 后能找到 eth0,但仍然不能上网,因为这些模块没有加载:
[code:1]
Module Size Used by
iptable_nat 17116 0
ip_conntrack 30744 1 iptable_nat
iptable_filter 1664 1
ip_tables 18560 2 iptable_nat,iptable_filter
ppp_async 8832 1
crc_ccitt 1280 1 ppp_async
ppp_synctty 7552 0
pppoe 11072 0
pppox 1928 1 pppoe
ppp_generic 23316 8 ppp_async,ppp_synctty,pppoe,pppox
slhc 5248 1 ppp_generic
crc32c 1152 0
libcrc32c 1792 1 crc32c
[/code:1]
手工加载这些模块后勉强能用 adsl-start 命令上网:
[code:1]
modprobe -r 8139cp
modprobe 8139too
modprobe crc32c
modprobe pppoe
modprobe ppp_synctty
modprobe ppp_async
modprobe iptable_filter
modprobe iptable_nat
[/code:1]
但是容易失去响应,而此时貌似连接没有断开,出错和 1.2 下的感觉一样。而 knet 拨号连接成功,就是不能上网!!!此时 ping ip 能通,而 ping 域名则不行:
[code:1]
[root@MagicLinux ~]# ping 210.76.108.234
PING 210.76.108.234 (210.76.108.234) 56(84) bytes of data.
[root@MagicLinux ~]# ping www.linuxfans.org
[/code:1]
没反应。说明无法解析域名!
/etc/sysconfig/network-scripts/ifcfg-ppp0
内容为:
[code:1]
USERCTL=yes
BOOTPROTO=dialup
NAME=DSLppp0
DEVICE=ppp0
TYPE=xDSL
ONBOOT=no
PIDFILE=/var/run/pppoe-adsl.pid
FIREWALL=STANDALONE
PING=.
PPPOE_TIMEOUT=80
LCP_FAILURE=3
LCP_INTERVAL=20
CLAMPMSS=1412
CONNECT_POLL=6
CONNECT_TIMEOUT=60
DEFROUTE=yes
SYNCHRONOUS=no
ETH=eth0
PROVIDER=DSLppp0
USER=100000000000 <--此处隐去真实文字
PEERDNS=yes
DEMAND=no
[/code:1]
/etc/ppp/resolv.conf
内容为:
[code:1]
nameserver 202.106.0.20
nameserver 202.106.46.151
[/code:1] |
|