LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-14-2003, 06:46 PM   #1
rarezoo
LQ Newbie
 
Registered: Aug 2003
Location: washington, dc
Distribution: suse
Posts: 2

Rep: Reputation: 0
Can't ping network


I'm having trouble configuring a home network in linux, using suse 8.2 and xp pro on a laptop. I'm new to both linux and networking, so this may be something really simple I'm missing. The machines can't ping each other by name or IP.

There's no hardware router or hub, just a crossover cable (which works fine)
eth0 goes out to the internet, and is set to the static IP from my DSL provider
eth1 goes to the laptop via the crossover cable, and is set to 192.168.1.1
the windows laptop is set up as 192.168.1.2

I can get out to the internet fine on the linux box. Both NICs work fine (double-checked by swapping them out) and show up OK with ifconfig. I've set up /etc/hosts with the new settings. I've tried turning off the firewall on linux, and on the windows box too. I've been using the suse gui to configure the routing, and route -n gives me the following:

Destination Gateway Genmask Flags Metric Ref Use Iface
66.92.145.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth1

All help and advice appreciated, thanks in advance
 
Old 08-14-2003, 07:25 PM   #2
tyler0123
Member
 
Registered: Aug 2003
Posts: 134

Rep: Reputation: 16
first off you need the loopback device configured.
the did you erase the localhost info from your hosts file?

also, eth0 goes to the internet right? so the eth0 should say

0.0.0.0 66.92.145.x 0.0.0.0 UG 0 0 0 eth0

x being replaced by the number of the gateway, very likely 66.92.145.1

and there should be a loopback entry as i said above

127.0.0.0 127.0.0.1 0.0.0.0 U 0 0 0 lo

or something like that.

at prompt type

ifconfig lo up

then type route -n

if see lo at the end of a line then we are on the way.

i can give you command line steps i would take to do this if you don't understand. and i understand if you don't understand, as i didn't a year or so ago. not too sure about suse, but i assume normal linux commands work if it is rpm based.
 
Old 08-15-2003, 08:12 PM   #3
rarezoo
LQ Newbie
 
Registered: Aug 2003
Location: washington, dc
Distribution: suse
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your response, and sorry about the delayed reply.

localhost was already in /etc/hosts, and lo already shows up in ifconfig.
 
  


Reply



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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
can ping network computer, cannot ping google.com (help needed) ben_build#2.1.0 Linux - Wireless Networking 23 11-07-2010 12:55 PM
Can't PING to outside Network dibakar5173 Linux - Networking 2 09-16-2005 08:23 AM
Can ping network but can't ping any internet ip when I hard set the ip Streme Linux - Wireless Networking 4 04-13-2004 09:18 AM
I can't ping anything on my network fostiator Linux - Networking 24 04-12-2003 02:15 PM

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

All times are GMT -5. The time now is 03: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
Open Source Consulting | Domain Registration