LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-11-2005, 09:42 PM   #1
rblythe
LQ Newbie
 
Registered: May 2005
Posts: 14

Rep: Reputation: 0
Unhappy eth0 - can't ping - can't tell if it is working [SOLVED]


I just finished the LFS 6.0 book. _Successfully booted into my new LFS system. _
I wanted to check if my on-board LAN is working properly. _when I issue the
ping command the systems just sits there. _After Ctrl-c, it indicates that 10
packets transmitted, 0 packets received, 100% packet lost. _Below are
my /etc/hosts and /etc/resolv.conf files. _Any help would be greatly
appreciated.

/etc/hosts
# Begin /etc/hosts (network card version)

127.0.0.1 linux1 localhost
192.168.1.1 <linux1>.example.org linux1

# End /etc/hosts (network card version)

/etc/resolv.conf
# Begin /etc/resolv.conf

nameserver 192.168.1.254
nameserver 68.87.66.196
nameserver 68.87.64.196

# End /etc/resolv.conf

Last edited by rblythe; 06-14-2005 at 08:05 PM.
 
Old 06-11-2005, 10:11 PM   #2
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
Does the kernel see the network card ?

'dmesg | grep eth0' should answer the above question. If the card driver is installed then check the contents of /etc/sysconfig/network-devices/ifconfig.eth0/ipv4

also your /etc/hosts file should be changed from

127.0.0.1 linux1 localhost
192.168.1.1 <linux1>.example.org linux1

to

127.0.0.1 linux1 localhost
192.168.1.1 linux1.example.org linux1

HTH

Mad.

Last edited by madluther; 06-11-2005 at 10:14 PM.
 
Old 06-14-2005, 08:04 PM   #3
rblythe
LQ Newbie
 
Registered: May 2005
Posts: 14

Original Poster
Rep: Reputation: 0
I finally got it working. I had to use the information from my router instead of what was in the LFS book. Once I put that information into /etc/sysconfig/network-devices/ifconfig.eth0/ipv4 I was able to ping and get the response Iwas looking for.

Thanks for the help.
 
  


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
Cannot ping self ??? eth0 not active ??? Wynand1 Linux - Networking 2 06-29-2006 12:11 AM
Ping does not work between eth0 and eth1 Colin123 Linux - Networking 1 09-28-2005 01:10 PM
eth0 up, but cannot ping modem anadyr Slackware 2 12-28-2004 07:30 AM
ping eth0 spank Linux - Networking 2 10-25-2003 03:42 AM
ping eth0 spank Linux - Newbie 1 10-24-2003 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:56 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