QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: sinclair

请问在LFS6.1中用ADSL上网需如何设置?

[复制链接]
 楼主| 发表于 2005-8-22 21:46:16 | 显示全部楼层
hi druggo
anyway,多谢你的热心帮忙和支持,我再重新adsl-setup试试 .thanks a lot
回复

使用道具 举报

 楼主| 发表于 2005-8-23 15:09:52 | 显示全部楼层
刚才重新编译一次内核,我把ppp和RTL8319编译成模块结果如下:
root@Fine-Lok:~# dmesg
Linux version 2.6.12.5 (root@Fine-Lok) (gcc version 3.4.3) #1 Tue Aug 23 14:03:27 CST 2005
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000000f00000 (usable)
BIOS-e820: 0000000000f00000 - 0000000001000000 (reserved)
BIOS-e820: 0000000001000000 - 0000000010000000 (usable)
BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved)
256MB LOWMEM available.
On node 0 totalpages: 65536
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 61440 pages, LIFO batch:31
HighMem zone: 0 pages, LIFO batch:1
DMI 2.3 present.
ACPI: Unable to locate RSDP
Allocating PCI resources starting at 10000000 (gap: 10000000:efb00000)
Built 1 zonelists
Kernel command line: BOOT_IMAGE=LFS6.1 ro root=302
Initializing CPU#0
PID hash table entries: 2048 (order: 11, 32768 bytes)
Detected 1202.963 MHz processor.
Using tsc for high-res timesource
Console: colour dummy device 80x25
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 254876k/262144k available (2057k kernel code, 5748k reserved, 847k data, 168k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 2375.68 BogoMIPS (lpj=1187840)
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 0383f9ff 00000000 00000000 00000000 00000000 00000000 00000000
CPU: After vendor identify, caps: 0383f9ff 00000000 00000000 00000000 00000000 00000000 00000000
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After all inits, caps: 0383f9ff 00000000 00000000 00000040 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: Intel(R) Celeron(TM) CPU 1200MHz stepping 01
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfb170, last bus=2
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20050309
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
Boot video device is 0000:01:00.0
PCI: Transparent bridge - 0000:00:1e.0
PCI: Using IRQ router PIIX/ICH [8086/2440] at 0000:00:1f.0
PCI: IRQ 0 for device 0000:00:1f.3 doesn't match PIRQ mask - try pci=usepirqmask
PCI: Found IRQ 11 for device 0000:00:1f.3
PCI: Sharing IRQ 11 with 0000:00:1f.5
PCI: Sharing IRQ 11 with 0000:02:01.0
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Initializing Cryptographic API
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
vesafb: framebuffer at 0xd0000000, mapped to 0xd0800000, using 1875k, total 32768k
vesafb: mode is 800x600x16, linelength=1600, pages=3
vesafb: protected mode interface info at c000:c060
vesafb: scrolling: redraw
vesafb: Truecolor: size=0:5:6:5, shift=0:11:5:0
Console: switching to colour frame buffer device 100x37
fb0: VESA VGA frame buffer device
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Real Time Clock Driver v1.12
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 48 ports, IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
spurious 8259A interrupt: IRQ7.
ICH2: IDE controller at PCI slot 0000:00:1f.1
ICH2: chipset revision 5
ICH2: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hdaMA, hdbMA
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdcMA, hddMA
Probing IDE interface ide0...
hda: QUANTUM FIREBALL CR8.4A, ATA DISK drive
hdb: Maxtor 2B020H1, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdc: SAMSUNG SV2001H, ATA DISK drive
hdd: ATAPI-CD ROM-DRIVE-52MAX, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide2...
Probing IDE interface ide3...
Probing IDE interface ide4...
Probing IDE interface ide5...
hda: max request size: 128KiB
hda: 16514064 sectors (8455 MB) w/418KiB Cache, CHS=16383/16/63, UDMA(33)
hda: cache flushes not supported
hda: hda1 hda2
hdb: max request size: 128KiB
hdb: 40020624 sectors (20490 MB) w/2048KiB Cache, CHS=39703/16/63, UDMA(33)
hdb: cache flushes not supported
hdb: hdb1 hdb2 hdb3 < hdb5 hdb6 hdb7 > hdb4
hdc: max request size: 128KiB
hdc: 39179952 sectors (20060 MB) w/1945KiB Cache, CHS=38869/16/63, UDMA(33)
hdc: cache flushes supported
hdc: hdc1
hdd: ATAPI 52X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
usbmon: debugs is not available
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.01:USB HID core driver
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
input: AT Translated Set 2 keyboard on isa0060/serio0
ReiserFS: hda2: found reiserfs format "3.6" with standard journal
ReiserFS: hda2: using ordered data mode
ReiserFS: hda2: journal params: device hda2, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: hda2: checking transaction log (hda2)
ReiserFS: hda2: Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Freeing unused kernel memory: 168k freed
Adding 530136k swap on /dev/hdb2. Priority:-1 extents:1
Linux agpgart interface v0.101 (c) Dave Jones
agpgart: Detected an Intel i815 Chipset.
agpgart: AGP aperture is 64M @ 0xd8000000
shpchp: acpi_shpchprm:get_device PCI ROOT HID fail=0x1001
shpchp: acpi_shpchprm:get_device PCI ROOT HID fail=0x1001
hw_random: RNG not detected
hw_random: RNG not detected
i8xx TCO timer: failed to reset NO_REBOOT flag, reboot disabled by hardware
i8xx TCO timer: failed to reset NO_REBOOT flag, reboot disabled by hardware
USB Universal Host Controller Interface driver v2.2
PCI: Found IRQ 11 for device 0000:00:1f.2
PCI: Setting latency timer of device 0000:00:1f.2 to 64
uhci_hcd 0000:00:1f.2: Intel Corporation 82801BA/BAM USB (Hub #1)
uhci_hcd 0000:00:1f.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:1f.2: irq 11, io base 0x0000d000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
PCI: Found IRQ 9 for device 0000:00:1f.4
PCI: Setting latency timer of device 0000:00:1f.4 to 64
uhci_hcd 0000:00:1f.4: Intel Corporation 82801BA/BAM USB (Hub #2)
uhci_hcd 0000:00:1f.4: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:1f.4: irq 9, io base 0x0000d400
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usb 1-1: new low speed USB device using uhci_hcd and address 2
input: USB HID v1.00 Mouse [USB Wheel Mouse] on usb-0000:00:1f.2-1
PCI: Unable to reserve mem region #2:8000000@d0000000 for device 0000:01:00.0
rivafb: cannot request PCI regions
rivafb: probe of 0000:01:00.0 failed with error -16
8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
8139cp: pci dev 0000:02:01.0 (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
8139cp: Try the "8139too" driver instead.
ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
NET: Registered protocol family 10
Disabled Privacy Extensions on device c039eda0(lo)
IPv6 over IPv4 tunneling driver
nvidia: module license 'NVIDIA' taints kernel.
NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-7174 Tue Mar 22 06:44:39 PST 2005
NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-7174 Tue Mar 22 06:44:39 PST 2005
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 4x mode
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 4x mode
HDLC line discipline: version $Revision: 4.8 $, maxframe=4096
N_HDLC line discipline registered.
NET: Registered protocol family 24

root@Fine-Lok:~# lsmod
Module Size Used by
pppoe 10304 0
pppox 2568 1 pppoe
n_hdlc 7684 0
nvidia 3912700 12
ipv6 222912 8
ppp_synctty 7296 0
ppp_async 8704 1
crc_ccitt 1920 1 ppp_async
ppp_generic 23188 4 pppoe,pppox,ppp_synctty,ppp_async
slhc 6272 1 ppp_generic
ohci_hcd 18308 0
ehci_hcd 29960 0
8139cp 16512 0
mii 4736 1 8139cp
rivafb 52368 0
i2c_algo_bit 8328 1 rivafb
vgastate 9600 1 rivafb
i2c_i801 7692 0
i2c_core 17168 3 rivafb,i2c_algo_bit,i2c_i801
uhci_hcd 27664 0
intel_agp 19228 1
agpgart 28488 2 nvidia,intel_agp
evdev 7296 0
autofs 12160 2
nls_cp936 126336 4
vfat 10496 2
fat 44700 1 vfat

root@Fine-Lok:~# adsl-start
................TIMED OUT
root@Fine-Lok:~# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

root@Fine-Lok:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
root@Fine-Lok:~#
执行ifconfig时没有eth0信息,启动时有提示warning大概内容是interface eth0 doesn't exist,我应该如何解决,谢谢。
回复

使用道具 举报

 楼主| 发表于 2005-8-23 16:12:58 | 显示全部楼层
再把RTL8319从模块改为编译到内核,应该是连接上网了。
root@Fine-Lok:~# adsl-start
.. Connected!
root@Fine-Lok:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0A:EB:F0:04:86
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:21 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1341 (1.3 Kb) TX bytes:1218 (1.1 Kb)
Interrupt:11 Base address:0xc000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:204 (204.0 b) TX bytes:204 (204.0 b)

ppp0 Link encapoint-to-Point Protocol
inet addr:218.13.95.126 P-t-P:61.145.65.239 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:318 (318.0 b) TX bytes:30 (30.0 b)

root@Fine-Lok:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
61.145.65.239 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.2 0.0.0.0 UG 0 0 0 eth0
root@Fine-Lok:~#
但是我用konqueror并不能打开网页,再运行adsl-stop后用tkpppoe连接出错提示大概如下:
error starting connection.......TIME OUT
这是为什么呢?
回复

使用道具 举报

 楼主| 发表于 2005-8-23 18:44:41 | 显示全部楼层
WOW it's Okay
delete GATEWAY
GATEWAY in my system path is /etc/sysconfig/network-devices/ifconfig.eth0/ipv4
thanks
回复

使用道具 举报

发表于 2005-9-16 09:49:33 | 显示全部楼层
楼上的sinclair高手,能不能把你那个过程详细的写一下,我现在也遇到那个问题了,我的是Fedora Core 4,激活时出现
"无法激活网络设备
/sbin/adsl-start:line215:2943 terminated $ CONNECT "$@">/dev/null 2>&1"
不知道怎么样解决上网问题
请高手赐教
不盛感激!!!!
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-10-4 22:40 , Processed in 0.049060 second(s), 13 queries .

© 2021 Powered by Discuz! X3.5.

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