LinuxQuestions.org
Help answer threads with 0 replies.
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-25-2004, 01:19 PM   #1
Bambi
Newbie
 
Registered: Aug 2003
Location: Toronto, Canada
Distribution: RedHat
Posts: 13

Rep: Reputation: 0
Another Routing problem


I've got this routing problem that I can't figure out.
And it's driving me crazy
I'm using RedHat Enterprise 3
main network
192.168.0.0



machine one (subnet router)
eth0 192.168.0.9
eth1 192.168.1.1

machine two
eth0 192.168.1.6



MACHINE ONE

ifconfig eth0 192.168.0.9 netmask 255.255.255.0 up
ifconfig eth1 192.168.1.1 netmask 255.255.255.0 up

route add -net 192.168.0.0 netmask 255.255.255.0 eth0
route add -net 192.168.1.0 netmask 255.255.255.0 eth1

route add default gw 192.168.0.9

netstat -rn
127.0.0.0 lo
192.168.1.0 0.0.0.0 255.255.255.0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 eth0
0.0.0.0 192.168.0.9 0.0.0.0 UG eth0


MACHINE TWO

ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up

route add -net 192.168.1.0 netmask 255.255.255.0 eth0

route add default gw 192.168.1.1


netstat -rn
192.168.1.0 0.0.0.0 255.255.255.0 U eth0
127.0.0.0 0.0.0.0 255.0.0.0 U lo
0.0.0.0 192.168.1.1 255.255.255.0 UG eth0

This is my problem:

Machine Two can ping both ethernet cards on the machine one but cannot ping onto the 192.168.0.0 network
Machine One can ping machine Two and the other machines on 192.168.0.0

All have same netmask 255.255.255.0

I've got ip_forwarding turned on
I've got iptables turned off

I've also tried
on machine one
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.0.0 dev eth0

Am I missing something?

I'm starting to think it's not the routing but something else.

Last edited by Bambi; 05-25-2004 at 03:03 PM.
 
Old 05-25-2004, 01:21 PM   #2
Bambi
Newbie
 
Registered: Aug 2003
Location: Toronto, Canada
Distribution: RedHat
Posts: 13

Original Poster
Rep: Reputation: 0
Sorry

Sorry,I tried to draw a visual that obviously didn't work out.
I'm not sure how do people use tabs or spaces to display the routing tables on this BBS?

Last edited by Bambi; 05-25-2004 at 03:14 PM.
 
Old 06-03-2004, 03:13 PM   #3
Bambi
Newbie
 
Registered: Aug 2003
Location: Toronto, Canada
Distribution: RedHat
Posts: 13

Original Poster
Rep: Reputation: 0
answer

Just incase someone is crusing for answers to similar problems. I tried so many different routing configuations and a good explanation of routing is linked below.
But the answer to my problem was not there. The answer was: I COULD ping the network, it just couldn't ping me back. I thought that traceroute would show me what was going on but I was wrong. It was tcpdump -i ethx that showed me that the icmp packets were going through. So onward.



http://www.comptechdoc.org/os/linux/...ugrouting.html
 
  


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
routing problem DRagonRage Debian 8 09-21-2005 03:29 PM
routing problem DRagonRage Linux - Networking 1 09-21-2005 01:02 PM
Routing problem Infernal211283 Linux - Networking 3 02-28-2005 02:59 AM
routing problem freelinuxcpp Linux - Networking 4 03-20-2004 07:50 AM
routing problem nowonmai Linux - Networking 2 10-09-2003 07:59 AM

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

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