Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-02-2004, 05:30 AM   #1
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 (eth1)
and second is public. (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 ( 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 (public eth on ISA server is and private is
So when users from private network want to surf they are going to gateway (ISA private interface) and the ISA redirects them to from the public interface which is (I supose you know how ISA works)

So, what I want is to be able to surf from public IP ( and to do that I need to config route to gateway on a different subnet (
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
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 I can't understand. There should be another gateway to use, one that is actually on the same network ( 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.


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
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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration