LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 10-24-2003, 02:04 AM   #1
bligg
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Rep: Reputation: 0
routing problem between 2 networks


Hi!

I have a problem, trying to get acces from one network to the other.

Status:
Network A has several machines and internet acces and uses 192.168.0.0.
Network B has only 2 machines at the moment and uses 192.168.1.0.
Network B can ping the gateway computer's network cards for either network, and its isdn card. It can also ping the internet gateway.
The network gateway can ping all computers on either network.

Problems:
All the computers in either network (accept the gateway) can't ping any computer that is not within their network.
Network B computers can't access the internet even if they can ping the gateway.

Here is my routing table if that helps:

Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0

I also put the IP instead of the place holder 0.0.0.0 as Gateway but it didn't seem to change anything, so I guess that's fine. I read in some posts one should try to change one of the masks to 255.255.0.0 but that didn't help.

Any ideas what I configured wrong?

Thanks in advance

Last edited by bligg; 10-24-2003 at 03:36 AM.
 
Old 10-24-2003, 04:22 AM   #2
gwp
Newbie
 
Registered: Oct 2003
Location: South Africa
Distribution: Redhat, Fedora, Ubuntu
Posts: 27

Rep: Reputation: 15
Changing the mask to 255.255.0.0 would mean that your 2 networks become 1
as it will mask out 192.168 as the network portion

Have you configured your default gateway? I don't see mention of the default gw IP

Is the Gateway not maybe blocking ICMP (ping). Can you telnet between machines?

Best of Luck
 
Old 10-24-2003, 05:13 AM   #3
bligg
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Original Poster
Rep: Reputation: 0
I configured my default as the gateway between the networks, but that didn't help.

I can also telnet that gateway, but not any other server.

Any other ideas?
 
Old 10-24-2003, 05:35 AM   #4
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
The output of

route -Cn

on the gateway machine, might give you a clue of to what's happening/whats trying to go where, won't solve anything but may give you a better picture
 
Old 10-24-2003, 08:51 AM   #5
bligg
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the tip, but I'm still clueless about what the problem is
 
Old 10-24-2003, 09:02 AM   #6
realos
Member
 
Registered: Jul 2002
Location: Germany
Distribution: Redhat 7.3, Debian 3.1, Knoppix 3.1, Ubuntu 6.10
Posts: 113

Rep: Reputation: 15
yes, I am also looking lost ;>

Please provide full information about your route settings in the router/gateway by typing the "route -n" command.
 
Old 10-27-2003, 02:33 AM   #7
bligg
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Original Poster
Rep: Reputation: 0
In theory I want to have my internet gateway as my default. But when I put 'default 192.168.0.99' or default '192.168.0.99 - -' I get an error message at startup the network is unreachable. I also tried specifying the interface, but then I only get the same message for the specified interface.
I don't get an error message when I put my network gateway as default.

Anyway, here are both settings. If you wonder about the ippp0, that's for testing dial in.

a) default 192.168.0.99

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.50 0.0.0.0 255.255.255.255 UH 0 0 0 ippp0
192.168.1.0 192.168.1.122 255.255.255.0 UG 0 0 0 eth1
192.168.0.0 192.168.0.112 255.255.255.0 UG 0 0 0 eth0

b) default 192.168.0.112

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.50 0.0.0.0 255.255.255.255 UH 0 0 0 ippp0
192.168.1.0 192.168.1.122 255.255.255.0 UG 0 0 0 eth1
192.168.0.0 192.168.0.112 255.255.255.0 UG 0 0 0 eth0
0.0.0.0 192.168.0.112 0.0.0.0 UG 0 0 0 eth0

Hope that helps...
 
  


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
Need simple routing distro that can handle >2 networks Ex Noctem Linux - Networking 5 07-17-2007 03:18 AM
pinging problem between different set networks machines cranium2004 Linux - Networking 1 02-11-2005 04:29 AM
Routing Problem StraitFaced Linux - Enterprise 8 10-26-2004 11:22 AM
Routing 2 incoming networks into 1 ivanatora Linux - Networking 1 10-19-2003 12:56 PM
Problem talking to two networks Evilone Linux - Networking 3 07-23-2003 03:25 AM


All times are GMT -5. The time now is 06:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration