Routing works to other intreface, but nowhere beyond it...

Posted on 1997-04-18
Last Modified: 2010-03-18
I have a router that was working just fine between 2 class C
networks (both with default netmask).  Now I've moved it so
one of the interfaces is on a class B network (with netmask
of  The class B network belongs to my ISP,
the class C is my own.  So here is the problem:

I can telnet to my router on its external interface just fine.  I can then telnet to the internal machine.  From the
internal machine, I can telnet to either of the router's
interfaces.  From the internal machine though I cannot telnet to any address beyond the router's external interface (including the router's default gateway, even though I *CAN* telnet to the router's default gateway from the router).

Here's the setup (the class B network number is different, but everything else is correct):

Router has interfaces setup as:



---[ netstat -r on this machine shows ]---
localhost       *      UH     3584 0          0 lo    *      U      1500 0          0 eth0     *        U      1500 0          0 eth1       -            !         - -          - -
default         rmi            UG     1500 0          0 eth0

The "internal" machine is setup as:

---[ netstat -r on this machine shows ]---     *        U      1500 0          0 eth0       *            U      3584 0          0 lo
default         UG     1500 0          0 eth0


I guess the real reason I'm confused is that if I'm able to contact the router's external interface from the internal machine -- shouldn't I be able to contact *any* other machine?
Question by:michaelbentley
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 1584410
you are obviously trying to route from one network to another.  what does netstat -r show on both machines?
if the router is a linux box was the kernel compiled with ip forwarding turned on?

Author Comment

ID: 1584411
Edited text of question

Accepted Solution

ruski earned 100 total points
ID: 1584412
not nessessarily judging by your netmaks. It is setup only for your own class nework and what you might need is either a gateway setting or a different netmask.  try either one of the following:
   ifconfig eth0 netmask
   route add default gw your_IP_address netmask your_netmask


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Prevent login on dead linux home directories 3 89
linux, squid server 23 71
linux service nerwork restart throwing eth1 not dound? 5 95
centos7 firewalld udp ports 33 106
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
In a recent question ( here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below.…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question