LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-26-2008, 11:47 AM   #1
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 340

Rep: Reputation: 30
Connecting to Internet


I have a cable internet connection which is working fine in windows XP and debian linux. The network interface eth0 is configured as dhcp

But when I installed RHEL 5, I am not able to connect to the internet.

The OS has detected my NIC and I think the drivers are all ok. When I tries to connect to internet or run the ifup eth0 command

it waits for a line eth0...... and fails

what is the matter with it?
 
Old 07-27-2008, 06:02 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
I have some experience with red hat based distros,

could you put the configuration file for ifcfg-eth0 here (usually located at /etc/sysconfig/network-scripts/) and an ifconfig for eth0.

One command I've only ever used on Ubuntu but I think is universal (don't quote me on this) is dhclient, it will probably require sudo to actually work... if this doesn't work then I'll take a look at your configuration and see if I can see any problems in it. .
 
Old 07-28-2008, 11:46 PM   #3
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 340

Original Poster
Rep: Reputation: 30
ifconfig output

eth0 Link encap:Ethernet HWaddr 00:80:48:51:2C:A3
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:50 Base address:0xac00

content in /etc/sysconfig/networ-scripts/ifcfg-eth0

# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth0
HWADDR=00:80:48:51:2c:a3
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=dhcp
USERCTL=no
IPV6INIT=yes
PEERDNS=yes
 
Old 07-29-2008, 01:06 AM   #4
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307

Rep: Reputation: 32
Well... eth0 doesn't have an ip address... so that's a problem, but why isn't it getting one? That is the question.
 
Old 08-01-2008, 08:51 AM   #5
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
It's like I suspected would be seen, As eth0 appears up that would likely rule out any software or driver issues.

Did you try that sudo dhclient command like I suggested? It seems for some reason it is not picking up an IP correctly.

Also you may try the following line

Code:
service network restart
In Red Hat based OSs basically is the same as doing /etc/init.d/network restart you'll like need root to do service, alternatively the /etc/init.d/ method would just need sudo.

That may also be helpful to see if the box itself may know why it is not DHCPing correctly.

Last edited by r3sistance; 08-01-2008 at 08:53 AM.
 
Old 08-02-2008, 02:50 PM   #6
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307

Rep: Reputation: 32
Try this (and post the results please):
Code:
(you have to have privileges to do this, ie: sudo or be root)
dhclient
tail -n50 /var/log/syslog
This will tell us the results of dhcp or possibly whatever is causing the problem.

Also, if you could, find the interfaces file. I believe in redhat it would be under: /etc/network/ or something similar.
Then post that. That will show us how the computer is setting up the interfaces.
Here is mine, for an example:
Code:
cat /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

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

# The intranet network interface (internal only)
allow-hotplug eth1
iface eth1 inet static
        address 192.168.10.1
        netmask 255.255.255.0
        broadcast 192.168.10.255
        #gateway 192.168.0.171

Last edited by checkmate3001; 08-02-2008 at 02:55 PM.
 
Old 08-03-2008, 01:21 AM   #7
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Red Hat doesn't store interfaces in one file (nor does it have /etc/network/). It stores them in multiple files usually in /etc/sysconfig/network-scripts/ He has already posted the information related to eth0 above.
 
Old 08-04-2008, 02:37 AM   #8
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 340

Original Poster
Rep: Reputation: 30
the output of ifup eth0 command

Determining IP information for eth0... failed; no link present. Check cable?


output of tail -n50 /var/log/messages after dhclient command

Aug 4 12:55:32 station1 dhclient: If you intend to request help from the dhcp-server@isc.org
Aug 4 12:55:32 station1 dhclient: mailing list, please read the section on the README about
Aug 4 12:55:32 station1 dhclient: submitting bug reports and requests for help.
Aug 4 12:55:32 station1 dhclient:
Aug 4 12:55:32 station1 dhclient: Please do not under any circumstances send requests for
Aug 4 12:55:32 station1 dhclient: help directly to the authors of this software - please
Aug 4 12:55:32 station1 dhclient: send them to the appropriate mailing list as described in
Aug 4 12:55:32 station1 dhclient: the README file.
Aug 4 12:55:32 station1 dhclient:
Aug 4 12:55:32 station1 dhclient: exiting.
Aug 4 12:57:17 station1 dhclient: receive_packet failed on eth0: Network is down
Aug 4 12:57:30 station1 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
Aug 4 12:57:30 station1 dhclient: send_packet: Network is down
Aug 4 12:57:37 station1 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Aug 4 12:57:37 station1 dhclient: send_packet: Network is down
Aug 4 12:57:45 station1 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
Aug 4 12:57:45 station1 dhclient: send_packet: Network is down
Aug 4 12:57:56 station1 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
Aug 4 12:57:56 station1 dhclient: send_packet: Network is down
Aug 4 12:58:05 station1 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
Aug 4 12:58:05 station1 dhclient: send_packet: Network is down
Aug 4 12:58:09 station1 kernel: eth0: link down
Aug 4 12:58:09 station1 kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready
Aug 4 12:58:15 station1 dhclient: receive_packet failed on eth0: Network is down
Aug 4 12:58:23 station1 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Aug 4 12:58:23 station1 dhclient: send_packet: Network is down
Aug 4 12:58:31 station1 dhclient: No DHCPOFFERS received.
Aug 4 12:58:31 station1 dhclient: No working leases in persistent database - sleeping.
Aug 4 12:58:55 station1 kernel: eth0: link down
Aug 4 12:58:55 station1 kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready
Aug 4 12:59:01 station1 dhclient: receive_packet failed on eth0: Network is down
Aug 4 12:59:11 station1 smartd[2775]: Device: /dev/hda, 2 Currently unreadable (pending) sectors
Aug 4 12:59:21 station1 dhclient: dhclient(3183) is already running - exiting.
Aug 4 12:59:21 station1 dhclient:
Aug 4 12:59:21 station1 dhclient: If you did not get this software from ftp.isc.org, please
Aug 4 12:59:21 station1 dhclient: get the latest from ftp.isc.org and install that before
Aug 4 12:59:21 station1 dhclient: requesting help.
Aug 4 12:59:21 station1 dhclient:
Aug 4 12:59:21 station1 dhclient: If you did get this software from ftp.isc.org and have not
Aug 4 12:59:21 station1 dhclient: yet read the README, please read it before requesting help.
Aug 4 12:59:21 station1 dhclient: If you intend to request help from the dhcp-server@isc.org
Aug 4 12:59:21 station1 dhclient: mailing list, please read the section on the README about
Aug 4 12:59:21 station1 dhclient: submitting bug reports and requests for help.
Aug 4 12:59:21 station1 dhclient:
Aug 4 12:59:21 station1 dhclient: Please do not under any circumstances send requests for
Aug 4 12:59:21 station1 dhclient: help directly to the authors of this software - please
Aug 4 12:59:21 station1 dhclient: send them to the appropriate mailing list as described in
Aug 4 12:59:21 station1 dhclient: the README file.
Aug 4 12:59:21 station1 dhclient:
Aug 4 12:59:21 station1 dhclient: exiting.

output of dmesg command

Linux version 2.6.18-8.el5 (brewbuilder@ls20-bc2-14.build.redhat.com) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP Fri Jan 26 14:15:21 EST 2007
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e4000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001bfb0000 (usable)
BIOS-e820: 000000001bfb0000 - 000000001bfbe000 (ACPI data)
BIOS-e820: 000000001bfbe000 - 000000001bfe0000 (ACPI NVS)
BIOS-e820: 000000001bfe0000 - 000000001c000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
BIOS-e820: 00000000fecc0000 - 00000000fecc1000 (reserved)
BIOS-e820: 00000000ff780000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
447MB LOWMEM available.
found SMP MP-table at 000ff780
Using x86 segment limits to approximate NX protection
On node 0 totalpages: 114608
DMA zone: 4096 pages, LIFO batch:0
Normal zone: 110512 pages, LIFO batch:31
DMI 2.3 present.
Using APIC driver default
ACPI: RSDP (v000 ACPIAM ) @ 0x000fa850
ACPI: RSDT (v001 A M I OEMRSDT 0x06000613 MSFT 0x00000097) @ 0x1bfb0000
ACPI: FADT (v002 A M I OEMFACP 0x06000613 MSFT 0x00000097) @ 0x1bfb0200
ACPI: MADT (v001 A M I OEMAPIC 0x06000613 MSFT 0x00000097) @ 0x1bfb0390
ACPI: MCFG (v001 A M I OEMMCFG 0x06000613 MSFT 0x00000097) @ 0x1bfb03f0
ACPI: OEMB (v001 A M I AMI_OEM 0x06000613 MSFT 0x00000097) @ 0x1bfbe040
ACPI: DSDT (v001 A0571 A0571000 0x00000000 INTL 0x02002026) @ 0x00000000
ACPI: PM-Timer IO Port: 0x808
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
Processor #0 15:12 APIC version 16
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 3, address 0xfec00000, GSI 0-23
ACPI: IOAPIC (id[0x02] address[0xfecc0000] gsi_base[24])
IOAPIC[1]: apic_id 2, version 3, address 0xfecc0000, GSI 24-47
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Enabling APIC mode: Flat. Using 2 I/O APICs
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 20000000 (gap: 1c000000:e2c00000)
Detected 1795.965 MHz processor.
Built 1 zonelists. Total pages: 114608
Kernel command line: ro root=LABEL=/ rhgb quiet
mapped APIC to ffffd000 (fee00000)
mapped IOAPIC to ffffc000 (fec00000)
mapped IOAPIC to ffffb000 (fecc0000)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
CPU 0 irqstacks, hard=c0737000 soft=c0717000
PID hash table entries: 2048 (order: 11, 8192 bytes)
Console: colour VGA+ 80x25
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 448472k/458432k available (2043k kernel code, 9452k reserved, 846k data, 232k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 3593.22 BogoMIPS (lpj=1796614)
Security Framework v1.0.0 initialized
SELinux: Initializing.
SELinux: Starting in permissive mode
selinux_register_security: Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 078bfbff e3d3fbff 00000000 00000000 00000001 00000000 00000001
CPU: After vendor identify, caps: 078bfbff e3d3fbff 00000000 00000000 00000001 00000000 00000001
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 128K (64 bytes/line)
CPU: After all inits, caps: 078bf3ff e3d3fbff 00000000 00000410 00000001 00000000 00000001
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 16k freed
ACPI: Core revision 20060707
CPU0: AMD Sempron(tm) Processor 3000+ stepping 02
Total of 1 processors activated (3593.22 BogoMIPS).
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=0 pin2=0
Brought up 1 CPUs
sizeof(vma)=84 bytes
sizeof(page)=32 bytes
sizeof(inode)=340 bytes
sizeof(dentry)=136 bytes
sizeof(ext3inode)=492 bytes
sizeof(buffer_head)=52 bytes
sizeof(skbuff)=172 bytes
checking if image is initramfs... it is
Freeing initrd memory: 1483k freed
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: BIOS Bug: MCFG area at e0000000 is not E820-reserved
PCI: Not using MMCONFIG.
PCI: PCI BIOS revision 3.00 entry at 0xf0031, last bus=5
PCI: Using configuration type 1
Setting up standard PCI resources
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Probing PCI hardware (bus 00)
Boot video device is 0000:01:00.0
PCI: Transparent bridge - 0000:00:13.1
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P7._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0PA._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P1._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.NBPG._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.NBP0._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)
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 [LNKG] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 *10 11 12 14 15)
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 15 devices
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report
PCI: Cannot allocate resource region 8 of bridge 0000:00:02.0
PCI: Cannot allocate resource region 8 of bridge 0000:00:03.0
NetLabel: Initializing
NetLabel: domain hash size = 128
NetLabel: protocols = UNLABELED CIPSOv4
NetLabel: unlabeled traffic allowed by default
pnp: 00:07: ioport range 0x290-0x297 has been reserved
PCI: Bridge: 0000:00:01.0
IO window: disabled.
MEM window: fa000000-fbdfffff
PREFETCH window: d0000000-dfffffff
PCI: Bridge: 0000:00:02.0
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:03.0
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:13.0
IO window: disabled.
MEM window: fbe00000-fbefffff
PREFETCH window: disabled.
PCI: Bridge: 0000:00:13.1
IO window: e000-efff
MEM window: fbf00000-fbffffff
PREFETCH window: 20000000-200fffff
PCI: Setting latency timer of device 0000:00:01.0 to 64
ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 27 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:00:02.0 to 64
ACPI: PCI Interrupt 0000:00:03.0[A] -> GSI 31 (level, low) -> IRQ 177
PCI: Setting latency timer of device 0000:00:03.0 to 64
PCI: Setting latency timer of device 0000:00:13.0 to 64
PCI: Setting latency timer of device 0000:00:13.1 to 64
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 8192)
TCP reno registered
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
apm: overridden by ACPI.
audit: initializing netlink socket (disabled)
audit(1217852901.589:1): initialized
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
SELinux: Registering netfilter hooks
Initializing Cryptographic API
ksign: Installing public key data
Loading keyring
- Added public key 86B4033B99649BB9
- User ID: Red Hat, Inc. (Kernel Module GPG key)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
PCI: Setting latency timer of device 0000:00:02.0 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:02.0cie00]
Allocate Port Service[0000:00:02.0cie02]
PCI: Setting latency timer of device 0000:00:03.0 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:03.0cie00]
Allocate Port Service[0000:00:03.0cie02]
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
ACPI: Processor [CPU1] (supports 16 throttling states)
Real Time Clock Driver v1.12ac
Non-volatile memory driver v1.2
Linux agpgart interface v0.101 (c) Dave Jones
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:0c: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:0f.1
PCI: VIA IRQ fixup for 0000:00:0f.1, from 255 to 0
VP_IDE: chipset revision 7
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt8237a (rev 00) IDE UDMA133 controller on pci0000:00:0f.1
ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hdaMA, hdbio
ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdcMA, hddio
Probing IDE interface ide0...
hda: ST340810A, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdc: SONY CD-RW CRX320EE, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 78165360 sectors (40020 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
hda: cache flushes not supported
hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 hda8 hda9 hda10 hda11 >
ide-floppy driver 0.99.newide
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
TCP bic registered
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
powernow-k8: Found 1 AMD Sempron(tm) Processor 3000+ processors (version 2.10.00)
powernow-k8: BIOS error - no PSB or ACPI _PSS objects
Using IPI No-Shortcut mode
ACPI: (supports S0 S1 S3 S4 S5)
Freeing unused kernel memory: 232k freed
Write protecting the kernel read-only data: 383k
Time: tsc clocksource has been installed.
input: AT Translated Set 2 keyboard as /class/input/input0
USB Universal Host Controller Interface driver v3.0
ACPI: PCI Interrupt 0000:00:10.0[A] -> GSI 20 (level, low) -> IRQ 209
PCI: VIA IRQ fixup for 0000:00:10.0, from 11 to 1
uhci_hcd 0000:00:10.0: UHCI Host Controller
uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:10.0: irq 209, io base 0x0000b800
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:10.1[B] -> GSI 22 (level, low) -> IRQ 217
PCI: VIA IRQ fixup for 0000:00:10.1, from 5 to 9
uhci_hcd 0000:00:10.1: UHCI Host Controller
uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:10.1: irq 217, io base 0x0000b400
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:10.2[C] -> GSI 21 (level, low) -> IRQ 225
PCI: VIA IRQ fixup for 0000:00:10.2, from 4 to 1
uhci_hcd 0000:00:10.2: UHCI Host Controller
uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:10.2: irq 225, io base 0x0000b000
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:10.3[D] -> GSI 23 (level, low) -> IRQ 233
PCI: VIA IRQ fixup for 0000:00:10.3, from 5 to 9
uhci_hcd 0000:00:10.3: UHCI Host Controller
uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:10.3: irq 233, io base 0x0000a800
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
input: ImPS/2 Generic Wheel Mouse as /class/input/input1
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ACPI: PCI Interrupt 0000:00:10.4[C] -> GSI 21 (level, low) -> IRQ 225
PCI: VIA IRQ fixup for 0000:00:10.4, from 4 to 1
ehci_hcd 0000:00:10.4: EHCI Host Controller
ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 5
ehci_hcd 0000:00:10.4: irq 225, io mem 0xf9fffc00
ehci_hcd 0000:00:10.4: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 8 ports detected
SCSI subsystem initialized
libata version 2.00 loaded.
sata_via 0000:00:0f.0: version 2.0
ACPI: PCI Interrupt 0000:00:0f.0[B] -> GSI 21 (level, low) -> IRQ 225
sata_via 0000:00:0f.0: routed to hard irq line 5
ata1: SATA max UDMA/133 cmd 0xD800 ctl 0xD402 bmdma 0xC400 irq 225
ata2: SATA max UDMA/133 cmd 0xD000 ctl 0xC802 bmdma 0xC408 irq 225
scsi0 : sata_via
ata1: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
ATA: abnormal status 0x7F on port 0xD807
scsi1 : sata_via
ata2: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
ATA: abnormal status 0x7F on port 0xD007
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
audit(1217852909.723:2): enforcing=1 old_enforcing=0 auid=4294967295
security: 3 users, 6 roles, 1587 types, 172 bools, 1 sens, 1024 cats
security: 59 classes, 49762 rules
SELinux: Completing initialization.
SELinux: Setting up existing superblocks.
SELinux: initialized (dev hda3, type ext3), uses xattr
SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
SELinux: initialized (dev debugfs, type debugfs), uses genfs_contexts
SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
SELinux: initialized (dev mqueue, type mqueue), uses transition SIDs
SELinux: initialized (dev hugetlbfs, type hugetlbfs), uses genfs_contexts
SELinux: initialized (dev devpts, type devpts), uses transition SIDs
SELinux: initialized (dev eventpollfs, type eventpollfs), uses task SIDs
SELinux: initialized (dev inotifyfs, type inotifyfs), uses genfs_contexts
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
SELinux: initialized (dev futexfs, type futexfs), uses genfs_contexts
SELinux: initialized (dev pipefs, type pipefs), uses task SIDs
SELinux: initialized (dev sockfs, type sockfs), uses task SIDs
SELinux: initialized (dev cpuset, type cpuset), not configured for labeling
SELinux: initialized (dev proc, type proc), uses genfs_contexts
SELinux: initialized (dev bdev, type bdev), uses genfs_contexts
SELinux: initialized (dev rootfs, type rootfs), uses genfs_contexts
SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
audit(1217852910.000:3): policy loaded auid=4294967295
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE,EPP]
EDAC MC: Ver: 2.0.1 Jan 26 2007
hdc: ATAPI 52X DVD-ROM CD-R/RW drive, 1536kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
EDAC MC0: Giving out device to k8_edac Athlon64/Opteron: DEV 0000:00:18.2
via-rhine.c:v1.10-LK1.4.1 July-24-2006 Written by Donald Becker
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 23 (level, low) -> IRQ 233
eth0: VIA Rhine II at 0xf9fff800, 00:18:f3:da:a2:09, IRQ 233.
eth0: MII PHY found at address 1, status 0x786d advertising 01e1 Link 45e1.
8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
8139cp 0000:05:06.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
8139cp 0000:05:06.0: Try the "8139too" driver instead.
8139too Fast Ethernet driver 0.9.27
ACPI: PCI Interrupt 0000:05:06.0[A] -> GSI 16 (level, low) -> IRQ 50
eth1: RealTek RTL8139 at 0xdc914c00, 00:80:48:51:2c:a3, IRQ 50
eth1: Identified 8139 chip type 'RTL-8100B/8139D'
input: PC Speaker as /class/input/input2
ACPI: PCI Interrupt 0000:04:01.0[A] -> GSI 17 (level, low) -> IRQ 58
PCI: Setting latency timer of device 0000:04:01.0 to 64
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
lp0: using parport0 (interrupt-driven).
lp0: console ready
ACPI: Power Button (FF) [PWRF]
ACPI: Power Button (CM) [PWRB]
ibm_acpi: ec object not found
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
device-mapper: ioctl: 4.11.0-ioctl (2006-09-14) initialised: dm-devel@redhat.com
EXT3 FS on hda3, internal journal
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
SELinux: initialized (dev hda2, type ext3), uses xattr
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda5, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
SELinux: initialized (dev hda5, type ext3), uses xattr
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda6, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
SELinux: initialized (dev hda6, type ext3), uses xattr
SELinux: initialized (dev hda8, type vfat), uses genfs_contexts
Adding 1052216k swap on /dev/hda7. Priority:-1 extents:1 across:1052216k
SELinux: initialized (dev binfmt_misc, type binfmt_misc), uses genfs_contexts
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
ip6_tables: (C) 2000-2006 Netfilter Core Team
ip_tables: (C) 2000-2006 Netfilter Core Team
Netfilter messages via NETLINK v0.30.
ip_conntrack version 2.4 (3581 buckets, 28648 max) - 228 bytes per conntrack
process `sysctl' is using deprecated sysctl (syscall) net.ipv6.neigh.lo.retrans_time; Use net.ipv6.neigh.lo.retrans_time_ms instead.
eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
audit(1217833132.140:4): audit_pid=2087 old=0 by auid=4294967295 subj=system_u:system_r:auditd_t:s0
SELinux: initialized (dev rpc_pipefs, type rpc_pipefs), uses genfs_contexts
eth1: no IPv6 routers present
Bluetooth: Core ver 2.10
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP ver 2.8
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.8
Bluetooth: HIDP (Human Interface Emulation) ver 1.1
SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
 
Old 08-04-2008, 02:45 AM   #9
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 340

Original Poster
Rep: Reputation: 30
It is through the same interface (eth0) I am browsing the internet vi WindowsXP
Also it was functioning under debian linux
I can assisgn statip IP no to the eth0 also it is possible to ping that IP no from this machine.
 
Old 08-04-2008, 02:57 AM   #10
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Are you sure you don't have more than one ethernet port in that machine? Just because Windows detects a certain port as the "first" network interface doesn't mean Linux will too.

What's the output of
Code:
$ ifconfig -a
?

Check the back of your machine and see if there are any other ports that you could plug a network cable into.

The error that you're getting indicates that the cable is not connected properly.

Actually, I just checked the dmesg you posted, look here:
Code:
via-rhine.c:v1.10-LK1.4.1 July-24-2006 Written by Donald Becker
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 23 (level, low) -> IRQ 233
eth0: VIA Rhine II at 0xf9fff800, 00:18:f3:da:a2:09, IRQ 233.
eth0: MII PHY found at address 1, status 0x786d advertising 01e1 Link 45e1.
8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
8139cp 0000:05:06.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
8139cp 0000:05:06.0: Try the "8139too" driver instead.
8139too Fast Ethernet driver 0.9.27
ACPI: PCI Interrupt 0000:05:06.0[A] -> GSI 16 (level, low) -> IRQ 50
eth1: RealTek RTL8139 at 0xdc914c00, 00:80:48:51:2c:a3, IRQ 50
eth1: Identified 8139 chip type 'RTL-8100B/8139D'
It looks like the VIA-Rhine interface is the one identified first, and likely the one that Windows uses... for some reason after boot your system switches which interface is eth0 and which is eth1. The MAC address from your eth0 config file matches the RealTek card, but the config file calls it eth0 while dmesg has that MAC address at eth1.

Try plugging your cable into the other port and running dhclient again.
 
Old 08-04-2008, 02:58 AM   #11
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Your eth0 card uses the via_rhine driver:

eth0: VIA Rhine II at 0xf9fff800, 00:18:f3:da:a2:09, IRQ 233.
eth0: MII PHY found at address 1, status 0x786d advertising 01e1 Link 45e1.

It seems like that module is not being loaded.

Run:

lsmod
modprobe via_rhine
lsmod
 
Old 08-10-2008, 11:33 AM   #12
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 340

Original Poster
Rep: Reputation: 30
There are two ethernet cards one the onboard VIA RHINE and the other PCI Realtek

But I have no problem with the debian Linux, the problem is with RHEL 5
 
Old 08-16-2008, 09:41 AM   #13
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 340

Original Poster
Rep: Reputation: 30
From the discussions it appears that it is because of the presence of two ethernet cards, the networking is not working

but then how it works on debian systtem?
 
Old 08-18-2008, 10:22 AM   #14
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 340

Original Poster
Rep: Reputation: 30
Successful

Quote:
Originally Posted by chort View Post
Are you sure you don't have more than one ethernet port in that machine? Just because Windows detects a certain port as the "first" network interface doesn't mean Linux will too.

What's the output of
Code:
$ ifconfig -a
?

Check the back of your machine and see if there are any other ports that you could plug a network cable into.

The error that you're getting indicates that the cable is not connected properly.

Actually, I just checked the dmesg you posted, look here:
Code:
via-rhine.c:v1.10-LK1.4.1 July-24-2006 Written by Donald Becker
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 23 (level, low) -> IRQ 233
eth0: VIA Rhine II at 0xf9fff800, 00:18:f3:da:a2:09, IRQ 233.
eth0: MII PHY found at address 1, status 0x786d advertising 01e1 Link 45e1.
8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
8139cp 0000:05:06.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
8139cp 0000:05:06.0: Try the "8139too" driver instead.
8139too Fast Ethernet driver 0.9.27
ACPI: PCI Interrupt 0000:05:06.0[A] -> GSI 16 (level, low) -> IRQ 50
eth1: RealTek RTL8139 at 0xdc914c00, 00:80:48:51:2c:a3, IRQ 50
eth1: Identified 8139 chip type 'RTL-8100B/8139D'
It looks like the VIA-Rhine interface is the one identified first, and likely the one that Windows uses... for some reason after boot your system switches which interface is eth0 and which is eth1. The MAC address from your eth0 config file matches the RealTek card, but the config file calls it eth0 while dmesg has that MAC address at eth1.

Try plugging your cable into the other port and running dhclient again.
Yes!

It worked

when I plugged the network cable into the realtek network card, it worked

Your assumption is very correct
fantastic trouble shooting skills

I am very very happy

thank u short Thank u
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow Internet Connection when Connecting to Internet on Browsers lennysokol Linux - Networking 8 04-09-2011 04:29 PM
connecting to internet lolozw Linux - Newbie 2 09-14-2006 10:52 AM
connecting to internet abiagi Slackware 21 09-07-2003 04:41 PM
connecting to the internet Marcin Linux - Networking 2 04-14-2003 10:22 PM
connecting to the internet thetruevoice Linux - Newbie 1 01-03-2002 04:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration