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 01-29-2005, 01:43 PM   #1
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Rep: Reputation: 30
Routing problem


Hi.

I have 2 computers, i run fedora core 3 on my main and winxp on the secondary.
the main has 2 NICs 192.168.0.1 for my LAN connection at home and 10.0.0.1 which connects to a router (10.0.0.138).
I want to get the secondary connected to the internet through the primary but when i try to ping the router NIC (10.0.0.138) from the secondary (192.168.0.100) it just wont ping it though it manages to ping the 10.0.0.1.
The router does allow ICMP because i can ping it from 10.0.0.1.
It confuses me because they are the same network and i see no reason why 192.168.0.100 can reach 10.0.0.1 but not 10.0.0.138.

What should i add to the routing table for this configuration to work?

Thanks.
 
Old 01-29-2005, 02:28 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Do you have NAT operating on the 10.0.0.1 interface..

If not, the router doesn't know where to send the replies..
It would use the gateway it is programmed with to find the non-local 192.168.0.0 network..
 
Old 01-29-2005, 02:58 PM   #3
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Original Poster
Rep: Reputation: 30
Oh.. how do i install NAT on this interface?
 
Old 02-28-2005, 02:59 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
NAT is part of the netfilter system, operated by iptables..

If you have SNAT (or MASQUERADE) operating on the 10.0.0.1 interface, any 192.168.0.x numbers get changed to 10.0.0.1.
The router can find 10.0.0.1 but doesn't know where 192.168.0.x is..
When the the packets return from the router, they are changed back to the original 192.168.0.x number.

This tutorial can help..
 
  


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
Routing problem exalik Linux - Networking 1 08-16-2003 04:39 AM
Serious problem of routing exalik Linux - Networking 1 05-03-2003 06:21 PM
Help With Routing Problem LAR12345 Linux - Networking 6 02-04-2003 02:40 PM
routing problem manthram Linux - Networking 6 04-01-2002 07:42 PM
Routing Problem mkhan Linux - Networking 1 07-01-2001 04:09 AM

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

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