[Linux-Discussion] Re: Destination host unreachable

  • From: "Balvinder Sabherwal" <sabherwal@xxxxxxxxxxxxxx>
  • To: <linux-discussion@xxxxxxxxxxxxx>
  • Date: Wed, 11 Apr 2001 11:19:10 -0400

`route add default gw 192.168.1.1 netmask 0.0.0.0 metric 1`

this returned error as below

SIOCADDRT: Network is unreachable


-----Original Message-----
From: linux-discussion-bounce@xxxxxxxxxxxxx
[mailto:linux-discussion-bounce@xxxxxxxxxxxxx]On Behalf Of John Madden
Sent: Wednesday, April 11, 2001 11:11 AM
To: linux-discussion@xxxxxxxxxxxxx
Subject: [Linux-Discussion] Re: Destination host unreachable



On Wednesday 11 April 2001 10:03, you wrote:
> I did as you suggested, but not the Kernel IP routing table has only one
> entry as below.
>
>
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 127.0.0.0       *               255.0.0.0       U     0      0      0 lo
>
> I am still not able to ping.

Well, if dhcpcd isn't setting up your default route, let's try adding it 
manually:

`route add default gw 192.168.1.1 netmask 0.0.0.0 metric 1`

That will put the default route into your routing table, and if your nic 
is configured with the right IP, you should be ready to go.  

John


-- 
# John Madden  weez@xxxxxxxxxxxxx ICQ: 2EB9EA
# FreeLists, Free mailing lists for all: //www.freelists.org
# UNIX Systems Engineer, Ivy Tech State College: http://www.ivy.tec.in.us
# Linux, Apache, Perl and C: All the best things in life are free!
=============================================================
Avenir Web's Linux Discussion List

List info: //www.freelists.org/cgi-bin/webpage?webpage_id=13
To unsubscribe: email linux-discussion-request@xxxxxxxxxxxxx
with 'unsubscribe' in the Subject line.

Administrative contact: weez@xxxxxxxxxxxxx
=============================================================

=============================================================
Avenir Web's Linux Discussion List

List info: //www.freelists.org/cgi-bin/webpage?webpage_id=13
To unsubscribe: email linux-discussion-request@xxxxxxxxxxxxx
with 'unsubscribe' in the Subject line.

Administrative contact: weez@xxxxxxxxxxxxx
=============================================================

Other related posts: