LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-02-2004, 05:30 AM   #1
anGeR
Member
 
Registered: Oct 2003
Distribution: Slackware 14.1
Posts: 41

Rep: Reputation: 15
Question How to connect to a gateway on a different subnet?


Yo ppl,
I've got RH9 and two network cards and I'm connected to two networks
One is private 192.168.1.130 (eth1)
and second is public. 195.222.60.200 (eth0)

I started FTP server and users from both network's can access it.

The problem is that the gateway for the public network is on the different subnet (195.222.55.107) so when I shutdown private interface (eth1) I can's surf the net or anytnig else related to it.
Reason I can surf the net with private network is because the private network is connected to ISA server that have two nic's (of course), private and public and for the public, gateway is 195.222.55.107 (public eth on ISA server is 195.222.60.220 and private is 192.168.1.254).
So when users from private network want to surf they are going to gateway 192.168.1.254 (ISA private interface) and the ISA redirects them to 195.222.55.107 from the public interface which is 195.222.60.220 (I supose you know how ISA works)

So, what I want is to be able to surf from public IP (195.222.60.200/27) and to do that I need to config route to gateway on a different subnet (195.222.55.107/32).
Win2k/XP machines are doing that without problems.

Can you help me to solve this problem?

Thank you very much!
 
Old 04-09-2004, 08:50 AM   #2
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Well your default gateway on RH9 should be the next router on the way toward the Internet. How this could be 195.222.55.107 I can't understand. There should be another gateway to use, one that is actually on the same network (195.222.60.200/27). IP addressing doesn't know the entire path to the destination, but rather the next hop.
You can set up routes static or dynamic telling the router where a specific destination is, but that would only contain information about the next hop to take toward the destination. That is the next router/gateway to use.

If no entry exist for the destination then the default gateway is used as a last resort. That's why the default gateway should be a machine on the same network.
 
  


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
Trying to get system on different subnet connect to Samba nbccbn Linux - Networking 2 07-14-2005 07:46 AM
cannot connect to internet via gateway cbunney Linux - Networking 3 09-13-2004 03:13 PM
Can't connect to Samba share outside of subnet digitalghost Linux - Software 0 04-01-2004 11:52 AM
Gateway on different subnet mikewelter Linux - Networking 2 12-17-2003 12:28 PM
How to connect to a server with a subnet address? lostboy Linux - Networking 10 07-05-2003 03:29 PM

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

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