LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-08-2002, 11:41 AM   #1
Ryan_Sutton
Member
 
Registered: May 2002
Location: California
Distribution: Fedora 9
Posts: 101

Rep: Reputation: 15
frustrated ;[


Maybe one of you networking guru's out there can help me, I am having problems with my network, it is a peer to peer network with the desktop (win XP), my laptop (win xp) and my second desktop (Red Hat 7.2), I cannot get the win box to ping the Linux box or vice versa. I'm not sure where in the network is the problem, here is my setup info.

my 'route' displays this ....
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
Default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

-----------------------------------------------------
When i type /sbin/route add host dev eth0 ---- it replies
"host: Host name lookup failure"

My NIC's are configured with a static IP

My windows box has the folliwing settings
ip - 192.168.0.165
subnet mask - 255.255.255.0
default gateway - 192.168.0.1

the windows box is settup using DHCP, i use ICS / DSL so I can't set a static ip on my two windows box's
 
Old 06-08-2002, 12:50 PM   #2
robeb
Member
 
Registered: May 2002
Posts: 113

Rep: Reputation: 15
Can you ping the linux box from the linux box? Can you do the same from the win boxes? Are you using a hub/switch to connect the boxes together and have you checked the cable connections. I know these seems like trival questions but sometimes *not*overlooking the trivial stuff can save hours of headaches later on.

Could you also describe your network in a little more detail (i.e. layout, how many NIC's, etc). If your still having problem then we can isolate the problem.
 
Old 06-08-2002, 12:59 PM   #3
Ryan_Sutton
Member
 
Registered: May 2002
Location: California
Distribution: Fedora 9
Posts: 101

Original Poster
Rep: Reputation: 15
Yes the computers can be pinged from their terminals. I am not using a hub, My win XP box and My linux box both have two NIC's in them, My Win XP network is already up n running, I am just trying to add the Linux box in the middle. The Win XP desktop is hosting the DSL, my laptop is the ICS client for it, hence I have to use DHCP to assign ip's to them. The two NIC's in the linux box have static ip's. The cableing is all correct
 
Old 06-08-2002, 01:31 PM   #4
robeb
Member
 
Registered: May 2002
Posts: 113

Rep: Reputation: 15
I assume if your not using a hub or switch then you are using crossover cables between your machines.

Do ifconfig on eth0 and eth1 to double check their IP's and make sure that they are on the same network address and netmask. I'm not to familiar with route, but it appears that it only gives out network addresses. Also, try to configuring DHCP on your linux box. That way you don't have to worry configuring IP's and netmask.
 
Old 06-08-2002, 01:38 PM   #5
Ryan_Sutton
Member
 
Registered: May 2002
Location: California
Distribution: Fedora 9
Posts: 101

Original Poster
Rep: Reputation: 15
Ok, I set up DHCP on eth0 ion my Linux box and that works fine, I can ping windows box 1 and access the internet, I can't use DHCP on eth1 so I'm assuming that I can staicly set eth1 with an ip/mask/gateway and then my 2nd windows box which is the last computer in the network will be able to recieve DHCP settings. Is this correct?
 
Old 06-08-2002, 02:05 PM   #6
robeb
Member
 
Registered: May 2002
Posts: 113

Rep: Reputation: 15
Yes, you will have to statically assign an IP to eth1, however, you will have to configure it as a router if you want anything to connect to it and be able to connect to your ICS host through it.
 
Old 06-08-2002, 04:17 PM   #7
Ryan_Sutton
Member
 
Registered: May 2002
Location: California
Distribution: Fedora 9
Posts: 101

Original Poster
Rep: Reputation: 15
Reference to a page to configure a simple router?
 
Old 06-08-2002, 04:35 PM   #8
robeb
Member
 
Registered: May 2002
Posts: 113

Rep: Reputation: 15
http://www.linuxguruz.org/iptables...thanks to Noerr
 
Old 06-08-2002, 04:51 PM   #9
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
1.) route add dev eth0 (is missing the most important part --network) what are you going to route on dev eth0
you go for ie
route add -net 192.168.1.0/24 eth0
or
route add default gw 192.168.1.1 eth0

btw
iptables won't help you before you setup basics (routing)
 
Old 06-08-2002, 04:56 PM   #10
robeb
Member
 
Registered: May 2002
Posts: 113

Rep: Reputation: 15
my mistake...sorry
 
Old 06-11-2002, 02:58 PM   #11
Ryan_Sutton
Member
 
Registered: May 2002
Location: California
Distribution: Fedora 9
Posts: 101

Original Poster
Rep: Reputation: 15
Should the default gateway be the IP of eth1? - 192-168.0.1
 
Old 06-11-2002, 03:11 PM   #12
robeb
Member
 
Registered: May 2002
Posts: 113

Rep: Reputation: 15
You can use anything IP you want just as long as it is in the same network address as your clients. With the exception of X.X.X.255 of course.

Last edited by robeb; 06-11-2002 at 03:16 PM.
 
Old 06-11-2002, 03:51 PM   #13
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
usually you put gateway to be the first ip in class (192.168.1.1, 192.168.132.1 ..) but it's not necessary
 
  


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
New and frustrated galantesghost LinuxQuestions.org Member Intro 2 09-11-2005 04:16 PM
I am frustrated (HELP) dimsun Linux - Newbie 3 11-02-2004 08:29 PM
Please help, very frustrated! m3s3lf Linux - Newbie 10 10-28-2004 09:50 AM
getting really frustrated... minm Linux - Software 17 09-27-2004 10:25 PM
Frustrated Linuxfrog Linux - Hardware 2 06-23-2004 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:43 PM.

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