登录 | 首页 -> 华新鲜事 -> 社会百科 | 切换到:传统版 / sForum | 树形列表
Problem of Determining IP information for eth0
<<始页  [1]  末页>> 

Problem of Determining IP information for eth0Who can solve the problem of Determining IP information for eth0?\n\nOur robot (Red Hat Linux 6.2) was experiencing a problem as follows: first, the IP address was found after log in. The second time when the robot was rebooted to confirm the IP address, response only shows 127.0.0.1. \n \nActually, the error lies mainly in \n"Bringing up interface lo [ OK ]\n\nBringing up interface eth0 Determining IP information for eth0...Operation failed.\nfailed.\n[FAILED]"\n \nWe have tried different network cables, network pins and checked the plug is well enough. Who can help us work out this problem?\n\n\nThe following are the documents showing the error messages:\n\n/dev/hda9: 3949/3407872 files (0.5% non-contiguous), 648338/6803519 blocks\n/dev/hda7 was not cleanly unmounted, check forced.\n/dev/hda7: 23/34136 files (4.3% non-contiguous), 4398/136521 blocks\n/dev/hda1 was not cleanly unmounted, check forced.\n/dev/hda1: 23582/193152 files (0.1% non-contiguous), 123717/385552 blocks\n/dev/hda5 was not cleanly unmounted, check forced.\n/dev/hda5: Setting filetype for entry 'pump.sock' in /run (12051) to 6.\n/dev/hda5: 137/34136 files (18.2% non-contiguous), 17253/136521 blocks\nChecking all file systems.\n[/sbin/fsck.ext2 -- /home] fsck.ext2 -a /dev/hda9 \n[/sbin/fsck.ext2 -- /tmp] fsck.ext2 -a /dev/hda7 \n[/sbin/fsck.ext2 -- /usr] fsck.ext2 -a /dev/hda1 \n[/sbin/fsck.ext2 -- /var] fsck.ext2 -a /dev/hda5 \n[PASSED]\n\nMounting local filesystems [ OK ]\n\nTurning on user and group quotas for local filesystems [ OK ]\n\nEnabling swap space [ OK ]\n\nINIT: Entering runlevel: 3\n\nEntering non-interactive startup\nSetting network parameters [ OK ]\n\nBringing up interface lo [ OK ]\n\nBringing up interface eth0 Determining IP information for eth0...Operation failed.\n failed.\n[FAILED]\n\nStarting portmapper: [ OK ]\n\nStarting NFS file locking services: \nStarting NFS lockd: [ OK ]\n\nStarting NFS statd: [ OK ]\n\nStarting up APM daemon: [ OK ]\n\napmd[309]: Version 3.0final (APM BIOS 1.2, Linux driver 1.9)\n\napmd[309]: Charge: * * * (-1% unknown)\n\nInitializing random number generator [ OK ]\n\nMounting other filesystems [ OK ]\n\nStarting system logger: [ OK ]\n\nStarting kernel logger: [ OK ]\n\nStarting identd: [ OK ]\n\nStarting at daemon: [ OK ]\n\nStarting cron daemon: [ OK ]\n\nStarting INET services: [ OK ]\n\nStarting keytable [ OK ]\n\nStarting httpd: [ OK ]\n\nStarting linuxconf [ OK ]\n\n\n\nRed Hat Linux release 6.2 (Zoot)\nKernel 2.2.14-5.0 on an i686\n\nprod1 login: if^H^H^H\n\n\nRed Hat Linux release 6.2 (Zoot)\nKernel 2.2.14-5.0 on an i686\n\nprod1 login: root\nPassword: \nLast login: Thu Nov 27 20:33:28 on tty1\n\0337\033[r\033[999;999H\033[6n\0338COLUMNS=80;\nLINES=24;\nexport COLUMNS LINES;\n[root@prod1 /root]# ifconfig\nlo Link encap:Local Loopback \n inet addr:127.0.0.1 Mask:255.0.0.0\n UP LOOPBACK RUNNING MTU:3924 Metric:1\n RX packets:18 errors:0 dropped:0 overruns:0 frame:0\n TX packets:18 errors:0 dropped:0 overruns:0 carrier:0\n collisions:0 txqueuelen:0 \n\n[root@prod1 /root]# shutwo\b \b\b \bdown now\n\a\n\nBroadcast message from root (ttyS0) Thu Nov 27 20:56:52 2003...\n\n\n\n\nThe system is going down to maintenance mode NOW !!\n\n[root@prod1 /root]# \nINIT: Switching to runlevel: 1\n\n\nINIT: Stopping keytable [ OK ]\n\nShutting down http: [ OK ]\n\nStopping INET services: [ OK ]\n\nStopping at daemon: [ OK ]\n\nStopping cron daemon: [ OK ]\n\nStopping identd services: [ OK ]\n\nShutting down NFS file locking services: \nShutting down NFS lockd: [FAILED]\n\nShutting down NFS statd: [ OK ]\n\nShutting down APM daemon: [ OK ]\n\nStopping portmap services: [ OK ]\n\nShutting down interface eth0 [ OK ]\n\nShutting down kernel logger: [ OK ]\n\nShutting down system logger: [ OK ]\n\nSending all processes the TERM signal...\n\nINIT: no more processes left in this runlevel\n\nSending all procmd: recovery thread got woken up ...\n\nesses the KILL smd: recovery thread finished ...\n\nignal..\nmdrecoveryd(6) flushing signals.\n\n\033[H\033[JInitializing random number generator [ OK ]\n\nTelling INIT to go to single user mode.\n\nINIT: Going single user\n\nbash# \nLILO boot: \nLoading linux............\nLinux version 2.2.14-5.0 (root@porky.devel.redhat.com) (gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #1 Tue Mar 7 21:07:39 EST 2000\n\nDetected 1002286092 Hz processor.\n\nConsole: colour VGA+ 80x25\n\nCalibrating delay loop... 999.42 BogoMIPS\n\nMemory: 127916k/131072k available (1060k kernel code, 412k reserved, 1620k data, 64k init, 0k bigmem)\n\nDentry hash table entries: 262144 (order 9, 2048k)\n\nBuffer cache hash table entries: 131072 (order 7, 512k)\n\nPage cache hash table entries: 32768 (order 5, 128k)\n\nVFS: Diskquotas version dquot_6.4.0 initialized\n\nCPU: Intel Pentium III (Coppermine) stepping 06\n\nEnabling extended fast FPU save and restore...done.\n\nNot enabling KNI unmasked exception support\n\nException 19 error handler not integrated yet\n\nDisabling CPUID Serial number...done.\n\nChecking 386/387 coupling... OK, FPU using exception 16 error reporting.\n\nChecking 'hlt' instruction... OK.\n\nPOSIX conformance testing by UNIFIX\n\nmtrr: v1.35a (19990819) Richard Gooch (rgooch@atnf.csiro.au)\n\nPCI: PCI BIOS revision 2.10 entry at 0xfb1e0\n\nPCI: Using configuration type 1\n\nPCI: Probing PCI hardware\n\nLinux NET4.0 for Linux 2.2\n\nBased upon Swansea University Computer Society NET3.039\n\nNET4: Unix domain sockets 1.0 for Linux NET4.0.\n\nNET4: Linux TCP/IP 1.0 for NET4.0\n\nIP Protocols: ICMP, UDP, TCP, IGMP\n\nTCP: Hash tables configured (ehash 131072 bhash 65536)\n\nInitializing RT netlink socket\n\nStarting kswapd v 1.5 \n\nDetected PS/2 Mouse Port.\n\nSerial driver version 4.27 with<4>keyboard: Too many NACKs -- noisy kbd cable?\n\nkeyboard: Too many NACKs -- noisy kbd cable?\n\n MANY_PORTS MULTIPORT SHARE_IRQ enabled\n\nttyS00 at 0x03f8 (irq = 4) is a 16550A\n\nttyS01 at 0x02f8 (irq = 3) is a 16550A\n\nttyS02 at 0x03e8 (irq = 0) is a 16550A\n\nttyS03 at 0x02e8 (irq = 3) is a 16550A\n\npty: 256 Unix98 ptys configured\n\napm: BIOS version 1.2 Flags 0x07 (Driver version 1.9)\n\nReal Time Clock Driver v1.09\n\nRAM disk driver initialized: 16 RAM disks of 4096K size\n\nPIIX4: IDE controller on PCI bus 00 dev 39\n\nPIIX4: not 100% native mode: will probe irqs later\n\n ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:pio, hdb:pio\n\nhda: IC25N030ATCS04-0, ATA DISK drive\n\nide2: ports already in use, skipping probe\n\nide0 at 0x1f0-0x1f7,0x3f6 on irq 14\n\nhda: IC25N030ATCS04-0, 28615MB w/1768kB Cache, CHS=3648/255/63\n\nFloppy drive(s): fd0 is 1.44M\n\nFDC 0 is a post-1991 82077\n\nmd driver 0.90.0 MAX_MD_DEVS=256, MAX_REAL=12\n\nraid5: measuring checksumming speed\n\nraid5: KNI detected, trying cache-avoiding KNI checksum routine\n\n pIII_kni : 1901.952 MB/sec\n\nraid5: MMX detected, trying high-speed MMX checksum routines\n\n pII_mmx : 2330.958 MB/sec\n\n p5_mmx : 2474.595 MB/sec\n\n 8regs : 1724.025 MB/sec\n\n 32regs : 981.075 MB/sec\n\nusing fastest function: pIII_kni (1901.952 MB/sec)\n\nscsi : 0 hosts.\n\nscsi : detected total.\n\nmd.c: sizeof(mdp_super_t) = 4096\n\nPartition check:\n\n hda: hda1 hda2 < hda5 hda6 hda7 hda8 hda9 >\n\nautodetecting RAID arrays\n\nautorun ...\n\n... autorun DONE.\n\nVFS: Mounted root (ext2 filesystem) readonly.\n\nFreeing unused kernel memory: 64k freed\n\n\nINIT: version 2.78 booting\n\n\t\t\tWelcome to Red Hat Linux\n\t\tPress 'I' to enter interactive startup.\nMounting proc filesystem [ OK ]\n\nConfiguring kernel parameters [ OK ]\n\nSetting clock (utc): Thu Nov 27 21:00:39 GMT 2003 [ OK ]\n\nActivating swap partitions [ OK ]\n\nSetting hostname prod1 [ OK ]\n\nChecking root filesystem\n/dev/hda6 was not cleanly unmounted, check forced.\n/dev/hda6: Setting filetype for entry 'log' in /dev (22089) to 6.\n/dev/hda6: 6729/34136 files (0.2% non-contiguous), 42698/136521 blocks\n[/sbin/fsck.ext2 -- /] fsck.ext2 -a /dev/hda6 \n[PASSED]\n\nRemounting root filesystem in read-write mode [ OK ]\n\nFinding module dependencies depmod: not an ELF file\n[ OK ]\n\nLoading sound module (es1371) [ OK ]\n\nChecking filesystems\n/dev/hda9 was not cleanly unmounted, check forced.\n/dev/hda9: 3949/3407872 files (0.5% non-contiguous), 648338/6803519 blocks\n/dev/hda7 was not cleanly unmounted, check forced.\n/dev/hda7: 23/34136 files (4.3% non-contiguous), 4398/136521 blocks\n/dev/hda1 was not cleanly unmounted, check forced.\n/dev/hda1: 23582/193152 files (0.1% non-contiguous), 123717/385552 blocks\n/dev/hda5 was not cleanly unmounted, check forced.\n/dev/hda5: Setting filetype for entry 'pump.sock' in /run (12051) to 6.\n/dev/hda5: 135/34136 files (18.5% non-contiguous), 17273/136521 blocks\nChecking all file systems.\n[/sbin/fsck.ext2 -- /home] fsck.ext2 -a /dev/hda9 \n[/sbin/fsck.ext2 -- /tmp] fsck.ext2 -a /dev/hda7 \n[/sbin/fsck.ext2 -- /usr] fsck.ext2 -a /dev/hda1 \n[/sbin/fsck.ext2 -- /var] fsck.ext2 -a /dev/hda5 \n[PASSED]\n\nMounting local filesystems [ OK ]\n\nTurning on user and group quotas for local filesystems [ OK ]\n\nEnabling swap space [ OK ]\n\nINIT: Entering runlevel: 3\n\nEntering non-interactive startup\nSetting network parameters [ OK ]\n\nBringing up interface lo [ OK ]\n\nBringing up interface eth0 Determining IP information for eth0...Operation failed.\n failed.\n[FAILED]\n\nStarting portmapper: [ OK ]\n\nStarting NFS file locking services: \nStarting NFS lockd: [ OK ]\n\nStarting NFS statd: [ OK ]\n\nStarting up APM daemon: [ OK ]\n\napmd[308]: Version 3.0final (APM BIOS 1.2, Linux driver 1.9)\n\napmd[308]: Charge: * * * (-1% unknown)\n\nInitializing random number generator [ OK ]\n\nMounting other filesystems [ OK ]\n\nStarting system logger: [ OK ]\n\nStarting kernel logger: [ OK ]\n\nStarting identd: [ OK ]\n\nStarting at daemon: [ OK ]\n\nStarting cron daemon: [ OK ]\n\nStarting INET services: [ OK ]\n\nStarting keytable [ OK ]\n\nStarting httpd: [ OK ]\n\nStarting linuxconf [ OK ]\n\n\n\nRed Hat Linux release 6.2 (Zoot)\nKernel 2.2.14-5.0 on an i686\n\nprod1 login: \n[xuechlai (11-29 13:41, Long long ago)] [ 传统版 | sForum ][登录后回复]1楼

come in1. Make sure the ethernet card is recognized and driver module is loaded on startup. can u paste the result of the following two commands:
lspci --- List all pci device
lsmod --- List loaded modules

2. If your ethernet card is not well configured, configure again using "netconfig". If you have a static IP, just give all the informations, if using DHCP, then choose dhcp.

3. After configuration, restart the networking

/etc/init.d/network restart


Good luck

[Cowboy (11-29 14:07, Long long ago)] [ 传统版 | sForum ][登录后回复]2楼

(引用 Cowboy:come in1. Make sure the ethernet card is recognized and driver module is loaded on startup. can u paste the result of the follow...)你好久没现身了啊上面这么长一段没有break的你看完了?佩服![百及子 (11-29 14:26, Long long ago)] [ 传统版 | sForum ][登录后回复]3楼

(引用 Cowboy:come in1. Make sure the ethernet card is recognized and driver module is loaded on startup. can u paste the result of the follow...)ethernet card recognized, driver modul loaded//sorry for no break(how?) we used dhcp already Results: [root@prod1 /root]# lspci\n00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge (AGP di\nsabled) (rev 03)\n00:07.0 ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02)\n00:07.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01)\n00:07.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01)\n00:07.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 02)\n00:0f.0 Multiport serial controller: Quatech Inc: Unknown device 0030 (rev 43)\n00:10.0 Ethernet controller: Realtek Semiconductor Co., Ltd. \n\n\n\n\nRTL-8139 (rev 10)\n00:12.0 VGA compatible controller: Chips and Technologies F69000 HiQVideo (rev 6\n4)\n00:13.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 08)\n\n\n[root@prod1 /root]# lsmod Module Size Used by\nlockd 30344 1 (autoclean)\nsunrpc 52132 1 (autoclean) [lockd]\nrtl8139 11748 0 (autoclean)\nes1371 25092 0 (unused)\nsoundcore 2628 4 [es1371]\n\n\n [root@prod1 /root]#netconfig\n\n\nnetconfig 0.7.8 (C) 1999 Red Hat, Inc.\n\n \017\016lqqqqqqqqqqqqqqqqqqqqu \017\017Configure TCP/IP \016tqqqqqqqqqqqqqqqqqqqqk\n x x\017\017\n \017\016x \017\017Please enter the IP configuration for this machine. Each \016x\017\017\n \017\016x \017\017item should be entered as an IP address in dotted-decimal \016x\017\017\n \017\016x \017\017notation (for example, 1.2.3.4). \016x\017\017\n \017\016x x\017\017\n \017\016x \017\017[\017 ] Use dynamic IP configuration (BOOTP/DHCP)\017 \016x\017\017\n \017\016x x\017\017\n \017\016x \017\017IP address: ________________\017 \016x\017\017\n \017\016x \017\017Netmask: ________________\017 \016x\017\017\n \017\016x \017\017Default gateway (IP): ________________\017 \016x\017\017\n \017\016x \017\017Primary nameserver: ________________\017 \016x\017\017\n \017\016x x\017\017\n \017\016x lqqqqk\017\017 \016lqqqqqqk\017\017 \016x\017\n\017 \017\016x x \017\017OK \016x\017\017 \017 \016x \017\017Back \016x\017\017 \017\n \016x\017\017\017\016x mqqqqj\017\017 \017 \016mqqqqqqj\017\017 \017 \016\nx\017\017 \017\016x \017\017 \017 \017 \016x\017\017\n \017\016x x\017\017\n \017\016mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj\017\017\n [xuechlai (11-29 14:48, Long long ago)] [ 传统版 | sForum ][登录后回复]4楼

(引用 xuechlai:ethernet card recognized, driver modul loaded//sorry for no break(how?) we used dhcp already Results: [root@prod1 /root]# lspc ...)suggestionBecause the driver modules already loaded, u can try to bring up the network manually by run

#/etc/init.d/network restart

If any error, post here.
[Cowboy (11-29 16:03, Long long ago)] [ 传统版 | sForum ][登录后回复]5楼

(引用 百及子:你好久没现身了啊上面这么长一段没有break的你看完了?佩服!)现在喜欢潜水了[Cowboy (11-29 16:03, Long long ago)] [ 传统版 | sForum ][登录后回复]6楼

(引用 Cowboy:suggestionBecause the driver modules already loaded, u can try to bring up the network manually by run #/etc/init.d/network re...)I partly solove the problem, but...I changed the hostname temperorily to other rather than prod1 and used netconfig to set an ip for the robot. Then network works.

It seems that the hostname of the robot is colliding with other pc at NUS.

So I change the content of HOSTNAME, hosts, host.conf and expect the hostname will be changed permainently. But after reboot, the hostname changed back to prod1 as well as the content of HOSTNAME.


Could you please advice on how to work out this problem? Lots of Thanks.


BTW, maybe #/etc/init.d/network restart should be #/etc/networks restart
[xuechlai (11-29 17:06, Long long ago)] [ 传统版 | sForum ][登录后回复]7楼

(引用 xuechlai:I partly solove the problem, but...I changed the hostname temperorily to other rather than prod1 and used netconfig to set an ip...)tryIf you want to change the hostname , do this:

1. Change it in /etc/sysconfig/network.

2. Change it in /etc/hosts.

3. Issue the command "hostname newhostname".

Now it's done and will also be remembered at next boot.

[Cowboy (11-29 17:19, Long long ago)] [ 传统版 | sForum ][登录后回复]8楼

(引用 xuechlai:I partly solove the problem, but...I changed the hostname temperorily to other rather than prod1 and used netconfig to set an ip...)Great, the problem is solved thanks to your help.Nice to know you, a Linux expert(at least in my eyes)[xuechlai (11-29 17:51, Long long ago)] [ 传统版 | sForum ][登录后回复]9楼


<<始页  [1]  末页>> 
登录 | 首页 -> 华新鲜事 -> 社会百科 | [刷新本页] | 切换到:传统版 / sForum