redaht 4.0, networking and routing

redaht 4.0, networking and routing

Post by Bj?rn-Erik Thoru » Fri, 13 Dec 1996 04:00:00



I've seen others asking the same questions and I've tried out the
suggestions they've gotten, but I still have a problem connecting
my linux-box running redhat 4.0 to the internet (and our local net for
that mather).

What we've done is: (these ip's are imaginary, but not the one I use
are)

#ifconfig lo 127.0.0.1

# route add 127.0.0.1
When I ping the localhost everything is OK. It transfers packages with
no problem or errors.

Then:

#ifconfig eth0 161.35.25.12 broadcast 161.35.25.255 netmask
255.255.255.0

#route add -net 161.35.25.0 netmask 255.255.255.0
#route add default gw 161.35.25.1 metric 1

But I still can't get connected to anything but my own localhost.

What the heck is wrong here? I'm thinking that it's only a small error
somewhere, but I think I'm going blind after trying to solve this the
last 3-4 ours.

--
Bj?rn-Erik Thorud

URL: <see problem above>

 
 
 

redaht 4.0, networking and routing

Post by Paul Russel » Fri, 13 Dec 1996 04:00:00



> I've seen others asking the same questions and I've tried out the
> suggestions they've gotten, but I still have a problem connecting
> my linux-box running redhat 4.0 to the internet (and our local net for
> that mather).

I'm surprised that you have to do more than change the default route.
That would have been the answer under Slackware 2.0, IIRC.

But given that nothing is set up at boot...

Quote:> What we've done is: (these ip's are imaginary, but not the one I use
> are)

> #ifconfig lo 127.0.0.1

> # route add 127.0.0.1
> When I ping the localhost everything is OK. It transfers packages with
> no problem or errors.

> Then:

> #ifconfig eth0 161.35.25.12 broadcast 161.35.25.255 netmask
> 255.255.255.0

> #route add -net 161.35.25.0 netmask 255.255.255.0
> #route add default gw 161.35.25.1 metric 1

> But I still can't get connected to anything but my own localhost.

Use `netstat -rn' to look at your routing table.  Can you ping the
local interface (161.35.25.12)?  It looks like this route may not be
set up correctly, which would be why it can't reach your default
gateway.  I don't have my Linux box in front of me, and Slowlaris has
a slightly different `route' format, but does the `route add -net'
line tell it to go out the eth0 interface?

If that doesn't help, post (or EMail) your routing table.
Paul.
--

Lies, damned lies, and out-of-date documentation.
Currently contracted to Telstra, Sydney.

 
 
 

redaht 4.0, networking and routing

Post by Joe Smulowi » Fri, 13 Dec 1996 04:00:00


|When I ping the localhost everything is OK. It transfers packages with
|no problem or errors.
|
|But I still can't get connected to anything but my own localhost.

The problem sounds like you have no default gateway.  Do "route -n"  (I  think
that's  the right option) while pppd is running.  You should see two lines for
"ppp0" or equivalent.  One line indicates the route to your  local  host,  the
other  the  routing  for  anything beyond the local host.  If you only see one
line then that's your problem.

I solved this by adding the "defaultroute" option to my pppd call.

------------------------------------------------------------------------------
 Joe Smulowicz               Hewlett-Packard                Tel: 508-659-3760

                       Andover, Massachusetts  01810        
      PGP fingerprint: 50 EA 8B 22 A0 59 60 D5  DD 4B 04 04 12 26 2E 16
------------------------------------------------------------------------------