Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-31-2004, 10:07 AM   #1
LQ Newbie
Registered: Nov 2003
Posts: 28

Rep: Reputation: 15
Ethernet configuration problems

I'm trying to set up a home ethernet network between my linux box which is running slackware 10 and my laptop which runs windows xp home edition. Eventually I hope to use my linux box as a router. I'm following the linux network administrator's guide 2nd edition by the letter, even using the same ip adresses but with different names. But i can ping the windows machine from linux even if the two aren't connected by ethernet! How do i know the network is working if i can't ping correctly? Here's my /etc/hosts file:

#for loopbacking. localhost lucy lenny

#end of hosts

and my /etc/networks file


here's the output from ifconfig eth0:

Link encap:Ethernet HWaddr 00:40:33:E3:FD5
inet addr Bcast: Mask:

Thanks for helping a poor newbie! I'm looking forward to the day when I can answer other people's questions.
Old 07-31-2004, 10:10 AM   #2
LQ Newbie
Registered: Nov 2003
Posts: 28

Original Poster
Rep: Reputation: 15
oh and the output from route:

Destination Gateway Genmask Flags Metric Ref Use Iface * U 0 0 0 eth0
loopback * U 0 0 0 lo
Old 07-31-2004, 10:51 AM   #3
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
i can ping the windows machine from linux even if the two aren't connected by ethernet lucy lenny
are you sure the address(es) 127.16.x.x are not a typo. I think they should be 172.16.x.x.
that is for lucy and for lenny

the entire 127 ip is used as a loopback. So, if it is not a typo and are pinging or 1.2 from your linux box, you will certainly get a reply - the reply comes from your own linux box.
Old 07-31-2004, 11:04 AM   #4
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
and my /etc/networks file

This point is further prooved here
git-net (im assuming thats your network given the ip)
is pointing to 172.16.1.x - each computer should have an ip following this ip scheme
Old 07-31-2004, 06:21 PM   #5
LQ Newbie
Registered: Nov 2003
Posts: 28

Original Poster
Rep: Reputation: 15
Doh! Thanks for your quick responses. I now have my network set up and got linux working as a router after buying another nic. Thanks!


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
Ethernet Configuration Lost lucycling Mandriva 2 07-09-2005 06:24 PM
Which ethernet configuration files? jonathanztaub Red Hat 1 05-03-2004 12:14 PM
RedHat 9 Ethernet configuration Midraga Linux - Networking 0 11-25-2003 09:12 AM
ethernet card configuration dbkluck Debian 4 07-24-2003 03:17 AM
Ethernet Configuration Apollo_440 Linux - Hardware 7 03-12-2003 01:02 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:41 PM.

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