Route Help Please

Route Help Please

Post by Michael Sulliv » Fri, 28 Oct 1994 11:18:55



This is a request to help with a route problem I am having with Linux.
I have Linux Slackware 2.00 with kernel 1.09. I have had very little
trouble
setting up the system on my 386 dx system until now. I want to use my
Linux as a router between my internet connection (a SLIP) and my home
ethernet and appletalk network. I have got working an ne2000 clone ethernet
card in the Linux box successfully working with my Macinosh Centris 610
ethernet with tcp/ip, etc. Everything pings nice... I can ping from mac
into Linux (over the ethernet) and from Linux to Mac and from Linux to
internet via SLIP.
What I want is to be able to access full internet (via slip connection)
from
the Mac, so as to be able to ping any internet address from Mac gatewayed
by Linux box into Internet via SLIP connection.

After Dip establishes SLIP connection the routing table looks like :

Kernel routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
chill.voicenet. *               255.255.255.255 UH     0      0        0
sl0
127.0.0.0       *               255.0.0.0       U      0      0       30 lo
44.0.0.0        *               255.0.0.0       U      0      0      567
eth0
default         chill.voicenet. *               UG     0      0       16
sl0

where ifconfig reports

lo        Link encap Local Loopback  
          inet addr 127.0.0.1  Bcast 127.255.255.255  Mask 255.0.0.0
          UP LOOPBACK RUNNING  MTU 2000  Metric 1
          RX packets 0 errors 0 dropped 0 overruns 0
          TX packets 30 errors 0 dropped 0 overruns 0

sl0       Link encap UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr 199.234.235.56  P-t-P 199.234.235.2  Mask 255.255.255.0
          UP POINTOPOINT RUNNING  MTU 1006  Metric 1
          RX packets 20 errors 0 dropped 0 overruns 0
          TX packets 20 errors 0 dropped 0 overruns 0

eth0      Link encap UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr 44.65.2.120  Bcast 44.255.255.255  Mask 255.0.0.0
          UP BROADCAST RUNNING  MTU 1500  Metric 1
          RX packets 548 errors 0 dropped 0 overruns 0
          TX packets 603 errors 0 dropped 0 overruns 0

So what am I doing wrong to enable routing between the eth0 and the sl0?
The separate nets work fine, seems I can't get the Linux to send the
packets accross the "Divide"! BTW, the address of the Mac is 44.65.2.117
(an assigned Ham radio ip number) and it is setup to use 44.65.2.120 as
the gateway for its packets.
Thanks in advance...
Mike

 
 
 

Route Help Please

Post by roo » Wed, 02 Nov 1994 08:55:14


: What I want is to be able to access full internet (via slip connection)
: from
: the Mac, so as to be able to ping any internet address from Mac gatewayed

: Kernel routing table
: 44.0.0.0        *               255.0.0.0       U      0      0      567

This is part of your problem. Everything addressed to 44.xx.xx.xx is on
the local ethernet, and will stay there. No routing to sl0.

: sl0       Link encap UNSPEC  HWaddr
: 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
:           inet addr 199.234.235.56  P-t-P 199.234.235.2  Mask 255.255.255.0

: eth0      Link encap UNSPEC  HWaddr
: 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
:           inet addr 44.65.2.120  Bcast 44.255.255.255  Mask 255.0.0.0

You will have to change your eht0 inet address to 199.234.235.56, and
point your mac at this address as its gateway.

You will also have to get your provider to give you a valid IP for the
mac, and have him route that IP through your gateway, which will be
199.234.235.56

Also, add a route to the linux box specifying your mac as on the ethernet,
and use the full address, ie 199.234.235.57 (or whatever)

Linux won't (at least as far as I know) provide address translation
services. It will only gateway known IPs.

Hope this helps.


 
 
 

Route Help Please

Post by Alan C » Fri, 04 Nov 1994 20:42:01



Quote:>So what am I doing wrong to enable routing between the eth0 and the sl0?
>The separate nets work fine, seems I can't get the Linux to send the
>packets accross the "Divide"! BTW, the address of the Mac is 44.65.2.117

Linux is - but your vendor isn't. This is a very common thing : If you
have multiple hosts on your network your vendor has to know about them all
and normally to issue the addresses for all of them.

Alan

--
  ..-----------,,----------------------------,,----------------------------,,

 ``----------'`----------------------------'`----------------------------''

 
 
 

1. Gateway routing help please

Anyone got a working NetBSD gateway with two ethernet cards and a subnetted
Class C?  My system currently has:

% netstat -r -n
Routing tables

Internet:
Destination      Gateway            Flags     Refs     Use    Mtu  Interface
default          a.b.c.1            UGS         1       16      -  ed0
127.0.0.1        127.0.0.1          UH          0        4      -  lo0
a.b.c            link#1             UC          0        0      -  ed0
a.b.c.1          0:0:1:2:3:4        UHL         3      250      -  ed0
a.b.c.2          0:1:2:3:4:5        UHL         1       51      -  lo0
a.b.c.31         link#1             UHL         1       28      -  ed0
a.b.c.32         link#2             UC          0        0      -  ed1
a.b.c.34         0:0:4:3:2:1        UHL         0        4      -  ed1
a.b.c.48         20:5:4:3:2:1       UHL         1      296      -  lo0
a.b.c.63         link#2             UHL         1       25      -  ed1

% ifconfig ed0; ifconfig ed1
ed0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST>
        inet a.b.c.2 netmask 0xffffffe0 broadcast a.b.c.31
ed1: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST>
        inet a.b.c.48 netmask 0xffffffe0 broadcast a.b.c.63

Traffic from subnet 1 (on ed1: a.b.c.32-63) reaches subnet 0 (on ed0: .0-31).
But traffic from subnet 0 doesn't pass through a.b.c.48 .  It does reach
a.b.c.2 OK, but I can't ping a.b.c.48 from subnet 0 (except on the gateway
machine).
Any routing help appreciated.  Is there any simple way to see what's happening
in the actual routing of packets on the gateway, eg. logging it?

--

2. Force CD Boot RS6000 PowerPC

3. Samba and routing help please?

4. Odd Kernel panic

5. Linux & PPP & routing - HELP please!

6. Q: RH7.2 - Promise Ultra133 ATA-133 harddisk controller

7. Routing Help Please.

8. Using NIS+ to share directories across machines.

9. pppd working now need route help please

10. Dual Ethernets, Load Balancing Routing Help please.

11. route insists on using dns, ifconfig on modifying the routing table... please help me!

12. PLEASE PLEASE HELP Major problem with my SCSI & Redhat 5.0 PLEASE Help

13. Sendmail problems. Please please please please help!