LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-27-2004, 03:14 AM   #1
goutambaul
LQ Newbie
 
Registered: Apr 2003
Posts: 5

Rep: Reputation: 0
Linux Networking Problem


Dear All,

I am installing RH 8.0 on an intel box with two Ethernet cards.

Eth0 192.168.0.1/24
Eth1 10.50.81.22/24

The default gateway is set to 192.168.0.1. When I am trying to ping any machine in the LAN (say, 192.168.0.2 -- WIN2k machine), I am getting an error "destination host is unreachable". When I ping the server from 192.168.0.2 I get a time out error. The routing table is

192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.50.81.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.1 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

All the other machines in the LAN are able to ping each other.

The system was working fine till eth1 was introduced. ETH1 is D-Link DFE538TX card using RLT8139 chip set. Any idea what is going on? I need to setup this machine urgently with two Ethernet cards and nothing is moving. Please give me some pointer.

With regards,

Goutam
 
Old 05-27-2004, 03:56 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
The other computers on the network should have the default gateway set to 192.168.0.1 as you have it, but the computer you are talking about is the default gateway of these computers. You need the ISP gateway IP address for the your Gateway computer, so it knows were to look when it gets a non-local ip address.

You might want to include the output of the ifconfig command, it may help others respond to you problem. Are both interfaces up?
 
Old 05-27-2004, 04:25 AM   #3
goutambaul
LQ Newbie
 
Registered: Apr 2003
Posts: 5

Original Poster
Rep: Reputation: 0
thanks for your response. I shall post the ifconfig output as soon as i get it. I am not in that building at the moment. But the thing is that I am trying to ping the local machines only. they have IP 192.168.0.2 - 192.168.0.4. The external card is not at the moment connected. Both the interfaces are up and do not show any error.
 
Old 05-27-2004, 11:57 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Does red hat have a wizard for setting up NAT Gateway. Sometimes when there is a problem with a connection not working, removing that connection and making a new one will solve the problem. How old is the computer. On older systems, linux would only detect the first nic card, and a person had to use the 'reserve' boot option.

Here is the relavent chapter from the Network Administration Guide 2:
http://tldp.org/LDP/nag2/x-087-2-ipmasq.html
 
Old 05-31-2004, 11:13 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Recently, something happened and I lost connectivity. I re-ran the network setup wizards but that didn't fix the problem. The ip address was being set, but if I tried to ping the gateway, I'd get 'destination host unreachable'. For a 192.168.1.100 nic not being able to ping 192.168.1.1, didn't make sense. I re-ran the security wizards, and lo-and-behold, a ppp item came up. So deleting this connection (which I hadn't noticed before) fixed the problem.
 
Old 05-31-2004, 01:28 PM   #6
Bambi
Newbie
 
Registered: Aug 2003
Location: Toronto, Canada
Distribution: RedHat
Posts: 13

Rep: Reputation: 0
on my set up RH7 I
ifconfig eth0 192.168.0.1 netmask 255.255.255.0
ifconfig eth1 10.50.81.22 netmask 255.255.255.0

then add network to the routing table

route add -net 192.168.0.0 netmask 255.255.255.0 eth0

etc..

also I turn on ip_forwarding and
turn off iptables (to test)

Is the eth1 go to another LAN.
 
  


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
another new linux user, networking problem. dts Linux - Software 5 07-13-2004 08:16 PM
Linux Networking Question/Problem tictocdoc Linux - Networking 4 10-17-2003 10:15 AM
Linux Networking Problem raingutter Linux - Networking 22 07-08-2003 12:40 AM
Linux networking problem Catalinus Linux - Networking 3 04-03-2003 01:26 PM
Linux networking problem wyvernfink Linux - Networking 6 04-01-2002 02:31 PM

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

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