[CentOS] need help

Sat Mar 27 19:50:52 UTC 2010
cahit Eyigünlü <cahit.eyigunlu at gmail.com>

i tryed this :
[root at lin2 ~]# route add default gw 217.20.117.1 dev eth0
the answer
siocaddrt : network is unreachable

2010/3/27 Robert Heller <heller at deepsoft.com>

> At Sat, 27 Mar 2010 21:07:49 +0200 CentOS mailing list <centos at centos.org>
> wrote:
>
> >
> >
> >
> > This is fedora's route table :
> > root at lin [~]# netstat -rn
> > Kernel IP routing table
> > Destination     Gateway         Genmask         Flags   MSS Window  irtt
> > Iface
> > 217.20.117.1    0.0.0.0         255.255.255.255 UH        0 0          0
> > eth0
> > 78.159.97.0     0.0.0.0         255.255.255.0   U         0 0          0
> > eth0
> > 0.0.0.0         217.20.117.1    0.0.0.0         UG        0 0          0
> > eth0
> >
> > and this is cent os which is not working :
> > [root at lin2 ~]# netstat -rn
> > Kernel IP routing table
> > Destination     Gateway         Genmask         Flags   MSS Window  irtt
> > Iface
> > 188.72.255.0    0.0.0.0         255.255.255.0   U         0 0          0
> > eth0
> > 169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0
> > eth0
> > [root at lin2 ~]# ping 217.20.117.1
> > connect: Network is unreachable
>
> Manual setup:
>
> [root at lin2 ~]# route add default gw 217.20.117.1 dev eth0
> [root at lin2 ~]# route add host  217.20.117.1 netmask 255.255.255.255 dev
> eth0
>
> Automagical setup:
>
> [root at lin2 ~]# cat >>/etc/sysconfig/network-scripts/route-eth0
> ADDRESS0=217.20.117.1
> NETMASK0=255.255.255.255
> EOF
> [root at lin2 ~]# cat >>/etc/sysconfig/network <<EOF
> GATEWAY=217.20.117.1
> EOF
>
> The *assumes* that the network (switch or router box) that eth0 is
> connected to also has 217.20.117.1 connected to it.  Typically a router
> 'box' contains both the router and a ethernet switch: a 'pure' router
> would only have two ethernet jacks, one for each of the two networks the
> router routes between.  Since there is no great demand to put a single
> machine on a network and since the switch hardware is dirt cheap and
> since no one does coax Ethernet anymore, modern router boxes include a
> switch in the 'inside' network.
>
>
> >
> >
> >
> >
> > 2010/3/27 Robert Heller <heller at deepsoft.com>
> >
> > > At Sat, 27 Mar 2010 20:54:04 +0200 CentOS mailing list <
> centos at centos.org>
> > > wrote:
> > >
> > > >
> > > >
> > > >
> > > > check fedora's txt i've send it is working perfect
> > > > my  gateway : 217.20.117.1
> > > > my ip 188.72.255.289
> > > > subnet 255.255.255.0
> > > > fedora 12 is working when i set ip directly but any other linux dist
> is
> > > not
> > > > :( please i need help :(
> > >
> > > Can you log into your fedora box and type this command at a shell
> prompt:
> > >
> > > netstat -r
> > >
> > > Copy and paste the results into an E-Mail message to this list.
> > >
> > > >
> > > >
> > > >
> > > > 2010/3/27 John R Pierce <pierce at hogranch.com>
> > > >
> > > > > cahit Eyigünlü wrote:
> > > > > >
> > > > > > Firstly my gateway 217.20.xxx.1
> > > > > >
> > > > > > My ip adress 188.72.xxx.189
> > > > > >
> > > > >
> > > > > there's something you're not telling us here, as the gateway has to
> be
> > > > > reachable via a network, and 217.20.xxx.1 is not part of either
> network
> > > > > shown in your route or ifconfig output.
> > > > >
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > CentOS mailing list
> > > > > CentOS at centos.org
> > > > > http://lists.centos.org/mailman/listinfo/centos
> > > > >
> > > > MIME-Version: 1.0
> > > >
> > > > _______________________________________________
> > > > CentOS mailing list
> > > > CentOS at centos.org
> > > > http://lists.centos.org/mailman/listinfo/centos
> > > >
> > > >
> > >
> > > --
> > > Robert Heller             -- 978-544-6933
> > > Deepwoods Software        -- Download the Model Railroad System
> > > http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
> > > heller at deepsoft.com       --
> http://www.deepsoft.com/ModelRailroadSystem/
> > >
> > >
> > > _______________________________________________
> > > CentOS mailing list
> > > CentOS at centos.org
> > > http://lists.centos.org/mailman/listinfo/centos
> > >
> > >
> > MIME-Version: 1.0
> >
> > _______________________________________________
> > CentOS mailing list
> > CentOS at centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> >
> >
>
> --
> Robert Heller             -- 978-544-6933
> Deepwoods Software        -- Download the Model Railroad System
> http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
> heller at deepsoft.com       -- http://www.deepsoft.com/ModelRailroadSystem/
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20100327/2c7d3368/attachment-0005.html>