Re: need help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

2010/3/27 Robert Heller <heller@xxxxxxxxxxxx>
At Sat, 27 Mar 2010 21:07:49 +0200 CentOS mailing list <centos@xxxxxxxxxx> wrote:

>
>
>
> This is fedora's route table :
> root@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@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@lin2 ~]# ping 217.20.117.1
> connect: Network is unreachable

Manual setup:

[root@lin2 ~]# route add default gw 217.20.117.1 dev eth0
[root@lin2 ~]# route add host  217.20.117.1 netmask 255.255.255.255 dev eth0

Automagical setup:

[root@lin2 ~]# cat >>/etc/sysconfig/network-scripts/route-eth0
ADDRESS0=217.20.117.1
NETMASK0=255.255.255.255
EOF
[root@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@xxxxxxxxxxxx>
>
> > At Sat, 27 Mar 2010 20:54:04 +0200 CentOS mailing list <centos@xxxxxxxxxx>
> > 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@xxxxxxxxxxxx>
> > >
> > > > 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@xxxxxxxxxx
> > > > http://lists.centos.org/mailman/listinfo/centos
> > > >
> > > MIME-Version: 1.0
> > >
> > > _______________________________________________
> > > CentOS mailing list
> > > CentOS@xxxxxxxxxx
> > > 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@xxxxxxxxxxxx       -- http://www.deepsoft.com/ModelRailroadSystem/
> >
> >
> > _______________________________________________
> > CentOS mailing list
> > CentOS@xxxxxxxxxx
> > http://lists.centos.org/mailman/listinfo/centos
> >
> >
> MIME-Version: 1.0
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> 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@xxxxxxxxxxxx       -- http://www.deepsoft.com/ModelRailroadSystem/


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux