LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-31-2004, 10:07 AM   #1
kubrickfan799
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.

127.0.0.1 localhost
127.16.1.1 lucy.example.org lucy
127.16.1.2 lenny.example.org lenny

#end of hosts

and my /etc/networks file

loopback 127.0.0.0
git-net 172.16.1.0

here's the output from ifconfig eth0:

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

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
kubrickfan799
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
127.16.1.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
 
Old 07-31-2004, 10:51 AM   #3
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 49
Quote:
i can ping the windows machine from linux even if the two aren't connected by ethernet

127.16.1.1 lucy.example.org lucy
127.16.1.2 lenny.example.org 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 172.16.1.1 for lucy and 172.16.1.2 for lenny

the entire 127 ip is used as a loopback. So, if it is not a typo and are pinging 127.16.1.1 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
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

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

loopback 127.0.0.0
git-net 172.16.1.0
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
kubrickfan799
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!
 
  


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
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


All times are GMT -5. The time now is 07:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration