Networking Forums

Networking Forums > Computer Networking > Linux Networking > gettting network unreachble while trying to connectioh share linux///

Reply
Thread Tools Display Modes

gettting network unreachble while trying to connectioh share linux///

 
 
Elhanan
Guest
Posts: n/a

 
      01-02-2005, 07:30 PM
hi... after trying for follow up linux tutorial in yolinux i found i
cannot route the last command
this is my route -n
Destination Gateway Genmask Flags Metric Ref Use
Iface
212.199.26.28 172.23.128.1 255.255.255.255 UGH 0 0 0
eth0
212.199.26.105 0.0.0.0 255.255.255.255 UH 0 0 0
ppp0
172.23.128.0 0.0.0.0 255.255.224.0 U 0 0 0
eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
0.0.0.0 212.199.26.105 0.0.0.0 UG 0 0 0
ppp0

i try to add the follwing:

route add -net 192.168.1.0 netmask 255.255.255.0 gw 212.199.26.28 dev
eth1

but is says netowrk unreachble.

 
Reply With Quote
 
 
 
 
Mihai Osian
Guest
Posts: n/a

 
      01-03-2005, 10:50 AM
Elhanan wrote:
> hi... after trying for follow up linux tutorial in yolinux i found i
> cannot route the last command
> this is my route -n
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 212.199.26.28 172.23.128.1 255.255.255.255 UGH 0 0 0
> eth0
> 212.199.26.105 0.0.0.0 255.255.255.255 UH 0 0 0
> ppp0
> 172.23.128.0 0.0.0.0 255.255.224.0 U 0 0 0
> eth0
> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
> eth1
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
> lo
> 0.0.0.0 212.199.26.105 0.0.0.0 UG 0 0 0
> ppp0
>
> i try to add the follwing:
>
> route add -net 192.168.1.0 netmask 255.255.255.0 gw 212.199.26.28 dev
> eth1
>
> but is says netowrk unreachble.
>


You want to route via the gateway 212.199.26.28 on interface eth1,
but previously you declared 212.199.26.28 as being accessible via
interface eth0. You should try just:
route add -net 192.168.1.0 netmask 255.255.255.0 gw 212.199.26.28
or, a little redundant:
route add -net 192.168.1.0 netmask 255.255.255.0 gw 212.199.26.28 dev eth0

HTH,
Mihai
 
Reply With Quote
 
Elhanan
Guest
Posts: n/a

 
      01-04-2005, 05:50 AM
i tried that as well still says network unreachble.



Mihai Osian wrote:
> Elhanan wrote:
> > hi... after trying for follow up linux tutorial in yolinux i found

i
> > cannot route the last command
> > this is my route -n
> > Destination Gateway Genmask Flags Metric Ref

Use
> > Iface
> > 212.199.26.28 172.23.128.1 255.255.255.255 UGH 0 0

0
> > eth0
> > 212.199.26.105 0.0.0.0 255.255.255.255 UH 0 0

0
> > ppp0
> > 172.23.128.0 0.0.0.0 255.255.224.0 U 0 0

0
> > eth0
> > 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0

0
> > eth1
> > 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0

0
> > lo
> > 0.0.0.0 212.199.26.105 0.0.0.0 UG 0 0

0
> > ppp0
> >
> > i try to add the follwing:
> >
> > route add -net 192.168.1.0 netmask 255.255.255.0 gw 212.199.26.28

dev
> > eth1
> >
> > but is says netowrk unreachble.
> >

>
> You want to route via the gateway 212.199.26.28 on interface eth1,


> but previously you declared 212.199.26.28 as being accessible via
> interface eth0. You should try just:
> route add -net 192.168.1.0 netmask 255.255.255.0 gw 212.199.26.28
> or, a little redundant:
> route add -net 192.168.1.0 netmask 255.255.255.0 gw 212.199.26.28 dev

eth0
>
> HTH,
> Mihai


 
Reply With Quote
 
Mihai Osian
Guest
Posts: n/a

 
      01-04-2005, 09:48 AM
Can you ping 212.199.26.28 ? The gateway machine must be reachable
before you set up this routing rule.

Mihai

Elhanan wrote:

>i tried that as well still says network unreachble.
>
>
>
>Mihai Osian wrote:
>
>
>>Elhanan wrote:
>>
>>
>>>hi... after trying for follow up linux tutorial in yolinux i found
>>>
>>>

>i
>
>
>>>cannot route the last command
>>>this is my route -n
>>>Destination Gateway Genmask Flags Metric Ref
>>>
>>>

>Use
>
>
>>>Iface
>>>212.199.26.28 172.23.128.1 255.255.255.255 UGH 0 0
>>>
>>>

>0
>
>
>>>eth0
>>>212.199.26.105 0.0.0.0 255.255.255.255 UH 0 0
>>>
>>>

>0
>
>
>>>ppp0
>>>172.23.128.0 0.0.0.0 255.255.224.0 U 0 0
>>>
>>>

>0
>
>
>>>eth0
>>>169.254.0.0 0.0.0.0 255.255.0.0 U 0 0
>>>
>>>

>0
>
>
>>>eth1
>>>127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
>>>
>>>

>0
>
>
>>>lo
>>>0.0.0.0 212.199.26.105 0.0.0.0 UG 0 0
>>>
>>>

>0
>
>
>>>ppp0
>>>
>>>i try to add the follwing:
>>>
>>>route add -net 192.168.1.0 netmask 255.255.255.0 gw 212.199.26.28
>>>
>>>

>dev
>
>
>>>eth1
>>>
>>>but is says netowrk unreachble.
>>>
>>>
>>>

>> You want to route via the gateway 212.199.26.28 on interface eth1,
>>
>>

>
>
>
>>but previously you declared 212.199.26.28 as being accessible via
>>interface eth0. You should try just:
>>route add -net 192.168.1.0 netmask 255.255.255.0 gw 212.199.26.28
>>or, a little redundant:
>>route add -net 192.168.1.0 netmask 255.255.255.0 gw 212.199.26.28 dev
>>
>>

>eth0
>
>
>>HTH,
>>Mihai
>>
>>

>
>
>

 
Reply With Quote
 
Elhanan
Guest
Posts: n/a

 
      01-05-2005, 05:55 AM
i can from the linux machine

 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      01-05-2005, 11:32 PM
On 2 Jan 2005 12:30:42 -0800, Elhanan <(E-Mail Removed)> wrote:
> hi... after trying for follow up linux tutorial in yolinux i found i
> cannot route the last command
> this is my route -n
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 212.199.26.28 172.23.128.1 255.255.255.255 UGH 0 0 0
> eth0
> 212.199.26.105 0.0.0.0 255.255.255.255 UH 0 0 0
> ppp0
> 172.23.128.0 0.0.0.0 255.255.224.0 U 0 0 0
> eth0
> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
> eth1
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
> lo
> 0.0.0.0 212.199.26.105 0.0.0.0 UG 0 0 0
> ppp0
>
> i try to add the follwing:
>
> route add -net 192.168.1.0 netmask 255.255.255.0 gw 212.199.26.28 dev
> eth1
>
> but is says netowrk unreachble.


To use an IP as a gateway, it needs to be covered by a -host or -net LAN
route (with gw 0.0.0.0). The only route you have to public IP
212.199.26.28 is a "non-local" route (gw 172.23.128.1) on a different
interface (eth0). Since you have no direct route to 212.199.26.28 (with
gw 0.0.0.0) on any interface, you cannot use it as a gateway period.

The only route you appear to have on eth1 is what I think is bogus IP
range that Windows uses if it has no IP and cannot find a DHCP server
(IANA blackhole).

Perhaps if you made an ascii art (fixed font) diagram of your network, it
would be easier for someone to come up with a proper routing solution.
 
Reply With Quote
 
Elhanan
Guest
Posts: n/a

 
      01-06-2005, 05:36 AM
but i ping 212.199.26.28 from my client pc.

what i about the route
172.23.128.0 0.0.0.0 255.255.224.0 U 0 0 0
eth0
212.199.26.28 172.23.128.1 255.255.255.255 UGH 0 0 0
eth0

and network topolgy can be found at:
http://www.iglu.org.il/amit/cable/

 
Reply With Quote
 
Elhanan
Guest
Posts: n/a

 
      01-06-2005, 08:22 AM
i've made progress,
i placed
iptables --table nat --append POSTROUTING --out-interface ppp0 -j
MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT

(the change is that instead eth0 in postrouting i've typed ppp0) i also
removed gatewaydev=ppp0 from network file.

i can now ping the gateway 212.199.26.106 and can also recieve web
pages.
BUT the i cannot recieve all web pages, and while some come up they
come up veeeery slooooowly, and others do not come up at all.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gettting Netlimiter to ignore LAN traffic? Steve Reddiington Home Networking 2 01-18-2007 01:44 PM
Wireless Network - Setup - How? See/share Files, share printers, how? Wayne Wireless Networks 2 04-08-2006 04:34 PM
cannot get connectioh sharing to work.. Elhanan Maayan Linux Networking 1 10-18-2004 01:32 AM
Simple Wireless Network to share ADSL Connection, but we cannot see or share files any more, help Hubert Dethurens Wireless Internet 3 12-22-2003 01:52 PM
Simple Wireless Network to share ADSL Connection, but we cannot see or share files any more, help Frank SERVAIS Wireless Internet 0 12-21-2003 04:22 PM



1 2 3 4 5 6 7 8 9 10 11