View previous topic :: View next topic |
Author |
Message |
GenU n00b
Joined: 22 Aug 2004 Posts: 10
|
Posted: Sun Aug 22, 2004 8:33 am Post subject: can not connect to internet |
|
|
After I finished installation, I reboot the computer.
But, when I login as root, I can not connet to the internet to emerge other things.
e.g. I emerge xorg-x11
the message is:
connecting to mirror ... connected
HTTP request sent, awaiting response ...
Now, I can not connect to the internet. It always retry and retry, and give up at last.
I use dhcp, /etc/conf.d/net has been configured and rc-update add net.eth0 default has been done, and
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf has been copied in the installation.
Anyone can help me,
Thanks a lot. |
|
Back to top |
|
|
kalisphoenix Apprentice
Joined: 28 Sep 2003 Posts: 211 Location: Ohio
|
Posted: Sun Aug 22, 2004 9:28 am Post subject: |
|
|
What happens when you ping the internal network/gateway/www.gentoo.org? |
|
Back to top |
|
|
GenU n00b
Joined: 22 Aug 2004 Posts: 10
|
Posted: Sun Aug 22, 2004 9:49 am Post subject: |
|
|
When I ping www.yahoo.com, I got the message 100% loss.
I can only ping myself, localhost. |
|
Back to top |
|
|
bunsen Tux's lil' helper
Joined: 10 Aug 2003 Posts: 105
|
Posted: Sun Aug 22, 2004 10:55 am Post subject: |
|
|
Is there a DHCP server on your LAN? |
|
Back to top |
|
|
GenU n00b
Joined: 22 Aug 2004 Posts: 10
|
Posted: Sun Aug 22, 2004 10:59 am Post subject: |
|
|
bunsen wrote: | Is there a DHCP server on your LAN? |
Yes, of course.
I can connect to internet, when I use the debian, before install the Gentoo. |
|
Back to top |
|
|
bunsen Tux's lil' helper
Joined: 10 Aug 2003 Posts: 105
|
Posted: Sun Aug 22, 2004 11:22 am Post subject: |
|
|
Sorry, no offence intended, just trying to fill in the picture.
How about the eth0 start up at boot. Does that start ok?
And has the gateway been set up correctly? Perhaps you'd get a 'no route to host' type of message if not.
As an alternative to pinging by name, how about by IP address, to skip DN resolution if that's the problem? |
|
Back to top |
|
|
GenU n00b
Joined: 22 Aug 2004 Posts: 10
|
Posted: Sun Aug 22, 2004 2:29 pm Post subject: |
|
|
bunsen wrote: | Sorry, no offence intended, just trying to fill in the picture.
How about the eth0 start up at boot. Does that start ok?
And has the gateway been set up correctly? Perhaps you'd get a 'no route to host' type of message if not.
As an alternative to pinging by name, how about by IP address, to skip DN resolution if that's the problem? |
Here is my dmesg print:
Code: | Linux version 2.6.8-gentoo-r1 (root@livecd) (gcc version 3.4.1 20040803 (Gentoo Linux 3.4.1-r2, ssp-3.4-2, pie-8.7.6.5))
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
BIOS-e820: 000000001fff0000 - 000000001fff3000 (ACPI NVS)
BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)
BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved)
511MB LOWMEM available.
On node 0 totalpages: 131056
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 126960 pages, LIFO batch:16
HighMem zone: 0 pages, LIFO batch:1
DMI 2.2 present.
ACPI: RSDP (v000 IntelR ) @ 0x000f74c0
ACPI: RSDT (v001 IntelR AWRDACPI 0x30302e32 AWRD 0x00000000) @ 0x1fff3000
ACPI: FADT (v001 IntelR AWRDACPI 0x30302e32 AWRD 0x00000000) @ 0x1fff3040
ACPI: DSDT (v001 INTELR AWRDACPI 0x00001000 MSFT 0x0100000c) @ 0x00000000
Built 1 zonelists
Kernel command line: root=/dev/hda4
Initializing CPU#0
CPU 0 irqstacks, hard=c057d000 soft=c057c000
PID hash table entries: 2048 (order 11: 16384 bytes)
Detected 1004.359 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 513728k/524224k available (2960k kernel code, 9732k reserved, 1443k data, 164k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 1986.56 BogoMIPS
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 0383f9ff 00000000 00000000 00000000
CPU: After vendor identify, caps: 0383f9ff 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
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: Intel(R) Celeron(TM) CPU 1000MHz 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 0xfb1c0, last bus=2
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20040326
ACPI: IRQ9 SCI: Level Trigger.
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
PCI: Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 10 11 12 14 15) *9
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 5 6 7 10 *11 12 14 15)
Linux Plug and Play Support v0.97 (c) Adam Belay
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
ACPI: PCI interrupt 0000:00:1f.2[D] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
ACPI: PCI interrupt 0000:00:1f.3[B] -> GSI 10 (level, low) -> IRQ 10
ACPI: PCI Interrupt Link [LNK1] enabled at IRQ 11
ACPI: PCI interrupt 0000:00:1f.4[C] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI interrupt 0000:00:1f.5[B] -> GSI 10 (level, low) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 5
ACPI: PCI interrupt 0000:01:00.0[A] -> GSI 5 (level, low) -> IRQ 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
ACPI: PCI interrupt 0000:02:02.0[A] -> GSI 11 (level, low) -> IRQ 11
vesafb: NVidia Corporation, NV11 Board, Chip Rev B2 (OEM: NVidia)
vesafb: VBE version: 3.0
vesafb: protected mode interface info at c000:c310
vesafb: pmi: set display start = c00cc355, set palette = c00cc3da
vesafb: pmi: ports = b4c3 b503 ba03 c003 c103 c403 c503 c603 c703 c803 c903 cc03 ce03 cf03 d003 d103 d203 d303 d403 d503 da03 ff03
vesafb: hardware supports DCC2 transfers
vesafb: monitor limits: vf = 75 Hz, hf = 60 kHz, clk = 2550 MHz
vesafb: scrolling: redraw
vesafb: framebuffer at 0xd0000000, mapped to 0xe0807000, size 16384k
fb0: VESA VGA frame buffer device
Machine check exception polling timer started.
audit: initializing netlink socket (disabled)
audit(1093210619.4294966755:0): initialized
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
NTFS driver 2.1.15 [Flags: R/W].
udf: registering filesystem
ACPI: Power Button (FF) [PWRF]
ACPI: Fan [FAN] (on)
ACPI: Processor [CPU0] (supports C1 C2, 2 throttling states)
ACPI: Thermal Zone [THRM] (55 C)
mice: PS/2 mouse device common for all mice
serio: i8042 AUX port at 0x60,0x64 irq 12
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
Console: switching to colour frame buffer device 80x30
lp: driver loaded but no devices found
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected an Intel i815 Chipset, but could not find the secondary device.
agpgart: Detected an Intel i815 Chipset.
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: AGP aperture is 64M @ 0xd8000000
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
parport0: PC-style at 0x378 [PCSPP(,...)]
lp0: using parport0 (polling).
Using anticipatory io scheduler
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
8139too Fast Ethernet driver 0.9.27
ACPI: PCI interrupt 0000:02:02.0[A] -> GSI 11 (level, low) -> IRQ 11
eth0: RealTek RTL8139 at 0xc000, 00:0a:eb:54:10:76, IRQ 11
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
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: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:pio
hda: ST360021A, ATA DISK drive
hdb: ATAPI DVD-ROM 16X Maximum, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: ATAPI CD-RW 52X32, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 117231408 sectors (60022 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
/dev/ide/host0/bus0/target0/lun0: p1 p2 p3 p4
hdb: ATAPI 48X DVD-ROM drive, 256kB Cache, UDMA(66)
Uniform CD-ROM driver Revision: 3.20
hdc: ATAPI 52X CD-ROM CD-R/RW drive, 8192kB Cache, UDMA(33)
libata version 1.02 loaded.
ieee1394: raw1394: /dev/raw1394 device initialized
USB Universal Host Controller Interface driver v2.2
ACPI: PCI interrupt 0000:00:1f.2[D] -> GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:1f.2: Intel Corp. 82801BA/BAM USB (Hub #1)
PCI: Setting latency timer of device 0000:00:1f.2 to 64
uhci_hcd 0000:00:1f.2: irq 11, io base 0000d000
uhci_hcd 0000:00:1f.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ACPI: PCI interrupt 0000:00:1f.4[C] -> GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:1f.4: Intel Corp. 82801BA/BAM USB (Hub #2)
PCI: Setting latency timer of device 0000:00:1f.4 to 64
uhci_hcd 0000:00:1f.4: irq 11, io base 0000d400
uhci_hcd 0000:00:1f.4: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.4 (Mon May 17 14:31:44 2004 UTC).
ACPI: PCI interrupt 0000:00:1f.5[B] -> GSI 10 (level, low) -> IRQ 10
PCI: Setting latency timer of device 0000:00:1f.5 to 64
intel8x0_measure_ac97_clock: measured 49463 usecs
intel8x0: clocking to 48000
ALSA device list:
#0: Intel 82801BA-ICH2 at 0xd800, irq 10
oprofile: using timer interrupt.
NET: Registered protocol family 2
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
ip_conntrack version 2.1 (4095 buckets, 32760 max) - 296 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
usb 1-1: new low speed USB device using address 2
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>. http://snowman.net/projects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
NET: Registered protocol family 1
NET: Registered protocol family 17
ACPI: (supports S0 S1 S4 S5)
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 164k freed
input: USB HID v1.10 Mouse [A4Tech USB Optical Mouse] on usb-0000:00:1f.2-1
Adding 1004052k swap on /dev/hda3. Priority:-1 extents:1
EXT3 FS on hda4, internal journal
nvidia: module license 'NVIDIA' taints kernel.
ACPI: PCI interrupt 0000:01:00.0[A] -> GSI 5 (level, low) -> IRQ 5
NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-6111 Tue Jul 27 07:55:38 PDT 2004
eth0: link up, 10Mbps, half-duplex, lpa 0x0000
eth0: link up, 10Mbps, half-duplex, lpa 0x0000 |
|
|
Back to top |
|
|
GenU n00b
Joined: 22 Aug 2004 Posts: 10
|
Posted: Mon Aug 23, 2004 3:38 am Post subject: |
|
|
Why I can't connect to the internet.
|
|
Back to top |
|
|
devon l33t
Joined: 23 Jun 2003 Posts: 943
|
Posted: Mon Aug 23, 2004 4:45 am Post subject: |
|
|
Can you post the output from "/sbin/ifconifg" and "/sbin/route -n"? |
|
Back to top |
|
|
GenU n00b
Joined: 22 Aug 2004 Posts: 10
|
Posted: Mon Aug 23, 2004 5:48 am Post subject: |
|
|
devon wrote: | Can you post the output from "/sbin/ifconifg" and "/sbin/route -n"? |
/sbin/ifconfig 's output is:
Code: | eth0 Link encap:Ethernet HWaddr 00:0A:EB:54:10:76
inet addr:211.102.115.67 Bcast:211.102.115.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:47 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5769 (5.6 Kb) TX bytes:944 (944.0 b)
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: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) |
/sbin/route -n 's output is:
Code: | Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
211.102.115.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 211.102.115.1 0.0.0.0 UG 0 0 0 eth0 |
|
|
Back to top |
|
|
nobspangle Veteran
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Mon Aug 23, 2004 7:27 am Post subject: |
|
|
can you ping 211.102.115.1 ?
how about 216.109.118.70 ? |
|
Back to top |
|
|
fakejoe n00b
Joined: 16 Aug 2004 Posts: 21
|
Posted: Tue Aug 24, 2004 1:06 am Post subject: |
|
|
same problem here, except when I do "route -n" I get nothing! What's wrong in my case? |
|
Back to top |
|
|
devon l33t
Joined: 23 Jun 2003 Posts: 943
|
Posted: Tue Aug 24, 2004 1:24 am Post subject: |
|
|
fakejoe wrote: | same problem here, except when I do "route -n" I get nothing! What's wrong in my case? |
Is "route" in your PATH? Do you have networking support in your kernel? Are your network cards and/or /etc/conf.d/net properly setup? Does "/sbin/ifconfig" show anything? |
|
Back to top |
|
|
fakejoe n00b
Joined: 16 Aug 2004 Posts: 21
|
Posted: Tue Aug 24, 2004 1:43 am Post subject: |
|
|
yes, sorry for the sloppy quote, what I literally get from route -n is :
Code: |
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
|
and that's it, I got no entries in that table of any kind. I am pretty sure I enabled a couple of things for networking support (sorry I'm a noob).
From what I can tell my network card is properly setup. ifconfig eth0 shows
Code: |
eth0 Link encap:Ethernet HWaddr 00:02:DD:7B:FB:2A
BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:10 Base address:0x4000
|
I have only two lines in /etc/conf.d/net:
iface_eth0="dhcp"
dhcpcd_eth0="-HD"
and I only added the second one just in case it was needed. So what do you think is the problem? |
|
Back to top |
|
|
devon l33t
Joined: 23 Jun 2003 Posts: 943
|
Posted: Tue Aug 24, 2004 1:51 am Post subject: |
|
|
You eth0 interface is not getting an IP address. I don't use DHCP to get my IP address, so I don't know if dhcpcd likes the "-HD" command you are giving it. Can you try "-H -D" instead? Also, are you sure the DHCP server is running? |
|
Back to top |
|
|
fakejoe n00b
Joined: 16 Aug 2004 Posts: 21
|
Posted: Tue Aug 24, 2004 2:05 am Post subject: |
|
|
I asked someone for help and he issued the following command:
"./net.eth0 start", and that did it! But now how do I get the system to do that every time it starts? |
|
Back to top |
|
|
devon l33t
Joined: 23 Jun 2003 Posts: 943
|
Posted: Tue Aug 24, 2004 2:12 am Post subject: |
|
|
Code: | # rc-update add net.eth0 default |
|
|
Back to top |
|
|
fakejoe n00b
Joined: 16 Aug 2004 Posts: 21
|
Posted: Tue Aug 24, 2004 2:15 am Post subject: |
|
|
Solved!!
All I had to do was "rc-update add net.eth0 default"
I hadn't done it in the first place during installation because the installation instructions said I should skip it if I was using pcmcia. i guess I don't have the pcmcia stuff perfectly installed but anyways now it works and it's good enough for me, thanx for the help! |
|
Back to top |
|
|
GenU n00b
Joined: 22 Aug 2004 Posts: 10
|
Posted: Thu Aug 26, 2004 7:34 am Post subject: |
|
|
devon wrote: | Code: | # rc-update add net.eth0 default |
|
After I finished installation, I reboot the computer.
But, when I login as root, I can not connet to the internet to emerge other things.
e.g. I emerge xorg-x11
the message is:
connecting to mirror ... connected
HTTP request sent, awaiting response ...
Now, I can not connect to the internet. It always retry and retry, and give up at last.
I use dhcp, /etc/conf.d/net has been configured and rc-update add net.eth0 default has been done, and
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf has been copied in the installation.
Anyone can help me,
Thanks a lot.
Now I still can not connect to internet.
Who can give me a hand.
Thanks. |
|
Back to top |
|
|
bunsen Tux's lil' helper
Joined: 10 Aug 2003 Posts: 105
|
Posted: Thu Aug 26, 2004 8:24 am Post subject: |
|
|
You've said you can only ping localhost, and that when trying to emerge (and download) software there appears to be a connection established to some mirror but there's no further response.
A few posts ago, nobspangle and asked if you could ping an IP address, rather than use the URL. Can you please try that?
Another IP address to try is DNS itself. Presumably you are getting partial network configuration. /etc/resolv.conf would have a couple of nameserver entries in it. Try pinging those IP addresses. What happens? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|