sendto: Network is unreachable...please help!

sendto: Network is unreachable...please help!

Post by Malay » Sat, 10 Apr 1999 04:00:00



Hello:

I am running pristine redhat 5.2 out of the box.

-  Using minicom to login to my PPP account over a modem line (there are no
networking cards configured in my system)
-  Using pppd -d -detach /dev/ttyS0 38400 & to startup the daemon

Ping to the IP address of the gateway (same as DNS server) works fine.  All
other pings fail as below.  DNS seems to be working as I can type in names
and they get resolved as shown below:

PING
--------
PING redhat.com (207.175.42.154): 56 data bytes
ping: sendto: Network is unreachable
ping: wrote redhat.com 64 chars, ret = -1

IFCONFIG
--------------
Link encap: Point-to-Point Protocol
inet addr: 205.149.171.120   P-t-P: 204.156.128.1  Mask:  255.255.255.0
UP POINTOPOINT RUNNING MTU = 1500   Metric: 1
........
........

Kernel IP routing table
------------------------------
Destination          Gateway      Genmask      Flags Metric Ref Use Iface
204.156.128.1    0.0.0.0  255.255.255.255     UH  0     0    2      ppp0
127.0.0.0             0.0.0.0  255.0.0.0                   U    0     0    0
lo

Traceroute
---------------
traceroute to redhat.com (207.175.42.154)  30 hops max, 40 byte pkts
traceroute:  sendto:  Network is unreachable
1 traceroute:  wrote redhat.com 40 chars, ret = -1

Notes:
- the net mask reported by IFCONFIG and routing table are different - could
this be the problem, how can I fix it.
- I had not configured networking while installing linux, would this cause a
problem.

Thanks in Advance
malayj

 
 
 

sendto: Network is unreachable...please help!

Post by Clifford Ki » Sat, 10 Apr 1999 04:00:00


: Hello:

: I am running pristine redhat 5.2 out of the box.

: -  Using minicom to login to my PPP account over a modem line (there are no
: networking cards configured in my system)
: -  Using pppd -d -detach /dev/ttyS0 38400 & to startup the daemon

add the pppd "defaultroute" option.

: Ping to the IP address of the gateway (same as DNS server) works fine.  All
: other pings fail as below.  DNS seems to be working as I can type in names

--

/* A salute to Inspector Baynes, of the Surry Constabulary, the only
   police Inspector to ever best Mr. Sherlock Holmes at his own game.
   "The Adventure of Wisteria Lodge", by Sir Arthur Conan Doyle. */

 
 
 

sendto: Network is unreachable...please help!

Post by Malay » Sat, 10 Apr 1999 04:00:00


Thanks for the suggestion, though still no success.

I tried:

route add default gw my.gw.xx.xx ppp0

now the routing table looks:
Destination          Gateway      Genmask      Flags Metric Ref Use Iface
204.156.128.1    0.0.0.0  255.255.255.255     UH  0     0    2      ppp0
0.0.0.0                  204.156.128.1 255.255.255.0 UG 0 0 0 ppp0
127.0.0.0             0.0.0.0  255.0.0.0                   U    0     0
00  lo

I have a feeling this is wrong --

Can some please give the full command line for adding a default route and
also explain how the kernel routing table should look?

I feel I have no idea why I am adding a default route, an explanation would
help.

-- Malay




> : Hello:

> : I am running pristine redhat 5.2 out of the box.

> : -  Using minicom to login to my PPP account over a modem line (there are
no
> : networking cards configured in my system)
> : -  Using pppd -d -detach /dev/ttyS0 38400 & to startup the daemon

> add the pppd "defaultroute" option.

> : Ping to the IP address of the gateway (same as DNS server) works fine.
All
> : other pings fail as below.  DNS seems to be working as I can type in
names

> --

> /* A salute to Inspector Baynes, of the Surry Constabulary, the only
>    police Inspector to ever best Mr. Sherlock Holmes at his own game.
>    "The Adventure of Wisteria Lodge", by Sir Arthur Conan Doyle. */

 
 
 

sendto: Network is unreachable...please help!

Post by mist » Sun, 11 Apr 1999 04:00:00



Quote:>Thanks for the suggestion, though still no success.

>I tried:

>route add default gw my.gw.xx.xx ppp0

Yes, but before you do that you need

route add -net ip.addy.of.remote.ending.in.zero netmask 255.255.255.255
ppp0

(That should be one line in case it wraps)

The other poster mentioned using the pppd "default route" option which
should set this up for you.  Add it into your command for starting pppd.

You shouldn't really need to change any routes manually if your pppd
options are set up okay.
--
Mist.

 
 
 

sendto: Network is unreachable...please help!

Post by Michael J Surett » Sun, 11 Apr 1999 04:00:00



> I feel I have no idea why I am adding a default route, an explanation would
> help.

> -- Malay

Your routing table determines where ip packets are sent to on the network.  The
default route is where packets which are unspecified in your routing table will
go.  In your case where you have only one network interface, all you will have
is a route to your loopback address, your ppp connection, and a default route
through your ppp connection.  That way traffic for say www.yahoo.com will go
through your ppp interface, even though no specific route for it exists.

HTH

 
 
 

1. sendto: network is unreachable....PPP dialup problems :-(

Hello:

I am running pristine redhat 5.2 out of the box.

-  Using minicom to login to my PPP account over a modem line (there are no
networking cards configured in my system)
-  Using pppd -d -detach /dev/ttyS0 38400 & to startup the daemon

Ping to the IP address of the gateway (same as DNS server) works fine.  All
other pings fail as below.  DNS seems to be working as I can type in names
and they get resolved as shown below:

PING
--------
PING redhat.com (207.175.42.154): 56 data bytes
ping: sendto: Network is unreachable
ping: wrote redhat.com 64 chars, ret = -1

IFCONFIG
--------------
Link encap: Point-to-Point Protocol
inet addr: 205.149.171.120   P-t-P: 204.156.128.1  Mask:  255.255.255.0
UP POINTOPOINT RUNNING MTU = 1500   Metric: 1
........
........

Kernel IP routing table
------------------------------
Destination          Gateway      Genmask      Flags Metric Ref Use Iface
204.156.128.1    0.0.0.0  255.255.255.255     UH  0     0    2      ppp0
127.0.0.0             0.0.0.0  255.0.0.0                   U    0     0    0
lo

Traceroute
---------------
traceroute to redhat.com (207.175.42.154)  30 hops max, 40 byte pkts
traceroute:  sendto:  Network is unreachable
1 traceroute:  wrote redhat.com 40 chars, ret = -1

Notes:
- the net mask reported by IFCONFIG and routing table are different - could
this be the problem, how can I fix it.
- I had not configured networking while installing linux, would this cause a
problem.

Thanks in Advance
malayj

2. Upgrading Printers from Remote Async Node to network printers

3. ping: sendto: Network is unreachable

4. Problems with tar

5. Network is unreachable, please help

6. Using VT100 graphics characters with curses

7. SIOCADDRT: Network is unreachable (Please help) (solved)

8. Can this be done?

9. Help with network unreachable problems. (PLEASE)

10. Please Help: SLIP: Network unreachable

11. --Someone Please Help-- Network unreachable and No responce from server errors...

12. RH, 3c509, and a HUB - Network Unreachable - Please help.

13. Please help. SIOCADDRT: Network is unreachable