Routing Problem

Routing Problem

Post by Will wants to know.. » Mon, 23 Jul 2001 18:47:17



I'm using a Linux Router to connect my internal network to the outside
(Cable modem). I have several hosts on 192.168.1.0 and they can all reach
the outside with no problems. I also have a "problem" PC connected to NTPC
(using HPNA). I can't get PC to talk to the outside. PC can ping NTPC
(192.168.2.10 and 192.168.1.210). However PC cannot ping anything past NTPC.
This actually worked using a older distro of Linux (Debian) instead of LRP.
Too bad that Linux doesn't support HPNA :-(.

Any suggestions would be appreciated.
Thanks, Will.

              Outside
            (Cable Modem)
                 |
                 |a.b.c.d
       -----------------------
       |         LRP         |
       |     DG: a.b.c.1     |
       |                     |
       -----------------------
                 | 192.168.1.254
      100BaseT   |
                 | 192.168.1.210
       -----------------------
       |       NT PC         |
       |   DG: 192.168.1.254 |
       |                     |
       -----------------------
                 | 192.168.2.10
       10MB HPNA |
                 |192.168.2.2
       -----------------------
       |    DG: 192.168.2.10 |
       |         PC          |
       |                     |
       -----------------------

NTPC
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0    192.168.1.254   192.168.1.210   1
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1   1
      192.168.1.0    255.255.255.0    192.168.1.210   192.168.1.210   1
    192.168.1.210  255.255.255.255        127.0.0.1       127.0.0.1   1
    192.168.1.255  255.255.255.255    192.168.1.210   192.168.1.210   1
      192.168.2.0    255.255.255.0     192.168.2.10    192.168.2.10   1
     192.168.2.10  255.255.255.255        127.0.0.1       127.0.0.1   1
    192.168.2.255  255.255.255.255     192.168.2.10    192.168.2.10   1
        224.0.0.0        224.0.0.0    192.168.1.210   192.168.1.210   1
        224.0.0.0        224.0.0.0     192.168.2.10    192.168.2.10   1
  255.255.255.255  255.255.255.255     192.168.2.10    192.168.2.10   1
===========================================================================

LRP:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
a.b.c.0         0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
0.0.0.0         a.b.c.1         0.0.0.0         UG    0      0        0 eth0

FWIW, I'm using Steinkuehler's LRP, and NT4.0 SP4 with RIP/IP forwarding.

 
 
 

Routing Problem

Post by Will wants to know.. » Mon, 23 Jul 2001 19:24:24


I added a static route from LRP to 192.168.2.0.
PC can now ping 192.168.1.x but no further.
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
24.13.143.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.2.0     192.168.1.210   255.255.255.0   UG    0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
0.0.0.0         24.13.143.1     0.0.0.0         UG    0      0        0 eth0

Statistics:


Quote:> I'm using a Linux Router to connect my internal network to the outside
> (Cable modem). I have several hosts on 192.168.1.0 and they can all reach
> the outside with no problems. I also have a "problem" PC connected to NTPC
> (using HPNA). I can't get PC to talk to the outside. PC can ping NTPC
> (192.168.2.10 and 192.168.1.210). However PC cannot ping anything past
NTPC.
> This actually worked using a older distro of Linux (Debian) instead of
LRP.
> Too bad that Linux doesn't support HPNA :-(.

> Any suggestions would be appreciated.
> Thanks, Will.

>               Outside
>             (Cable Modem)
>                  |
>                  |a.b.c.d
>        -----------------------
>        |         LRP         |
>        |     DG: a.b.c.1     |
>        |                     |
>        -----------------------
>                  | 192.168.1.254
>       100BaseT   |
>                  | 192.168.1.210
>        -----------------------
>        |       NT PC         |
>        |   DG: 192.168.1.254 |
>        |                     |
>        -----------------------
>                  | 192.168.2.10
>        10MB HPNA |
>                  |192.168.2.2
>        -----------------------
>        |    DG: 192.168.2.10 |
>        |         PC          |
>        |                     |
>        -----------------------

> NTPC

===========================================================================
Quote:> Active Routes:
> Network Destination        Netmask          Gateway       Interface
Metric
>           0.0.0.0          0.0.0.0    192.168.1.254   192.168.1.210   1
>         127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1   1
>       192.168.1.0    255.255.255.0    192.168.1.210   192.168.1.210   1
>     192.168.1.210  255.255.255.255        127.0.0.1       127.0.0.1   1
>     192.168.1.255  255.255.255.255    192.168.1.210   192.168.1.210   1
>       192.168.2.0    255.255.255.0     192.168.2.10    192.168.2.10   1
>      192.168.2.10  255.255.255.255        127.0.0.1       127.0.0.1   1
>     192.168.2.255  255.255.255.255     192.168.2.10    192.168.2.10   1
>         224.0.0.0        224.0.0.0    192.168.1.210   192.168.1.210   1
>         224.0.0.0        224.0.0.0     192.168.2.10    192.168.2.10   1
>   255.255.255.255  255.255.255.255     192.168.2.10    192.168.2.10   1

===========================================================================

- Show quoted text -

Quote:

> LRP:
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> a.b.c.0         0.0.0.0         255.255.255.0   U     0      0        0
eth0
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
eth1
> 0.0.0.0         a.b.c.1         0.0.0.0         UG    0      0        0
eth0

> FWIW, I'm using Steinkuehler's LRP, and NT4.0 SP4 with RIP/IP forwarding.


 
 
 

Routing Problem

Post by Trygve Selme » Mon, 23 Jul 2001 21:05:22



Quote:

> I added a static route from LRP to 192.168.2.0.
> PC can now ping 192.168.1.x but no further.
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 24.13.143.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
> 192.168.2.0     192.168.1.210   255.255.255.0   UG    0      0        0 eth1
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
> 0.0.0.0         24.13.143.1     0.0.0.0         UG    0      0        0 eth0

Yeah, that should take care of "internal" connections. For "external"
connections to work, you need to masquerade _both_ networks. I assume
you already MASQ 192.168.1.0, you need to MASQ 192.168.2.0 also!

        Trygve.

 
 
 

Routing Problem

Post by Will wants to know.. » Tue, 24 Jul 2001 08:18:15


That did the trick!

Actually, that's the same thing I did when I originally set up the Debian FW
many moons ago, but I guess I forgot about it.

Thanks a bunch, Trygve!
Will.



> > I added a static route from LRP to 192.168.2.0.
> > PC can now ping 192.168.1.x but no further.
> > Kernel IP routing table
> > Destination     Gateway         Genmask         Flags Metric Ref    Use
> > Iface
> > 24.13.143.0     0.0.0.0         255.255.255.0   U     0      0        0
eth0
> > 192.168.2.0     192.168.1.210   255.255.255.0   UG    0      0        0
eth1
> > 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
eth1
> > 0.0.0.0         24.13.143.1     0.0.0.0         UG    0      0        0
eth0

> Yeah, that should take care of "internal" connections. For "external"
> connections to work, you need to masquerade _both_ networks. I assume
> you already MASQ 192.168.1.0, you need to MASQ 192.168.2.0 also!

> Trygve.