Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #12273 > unrolled thread

Destination Host Unreachable

Started byfinnmcmissile <viana.ronelo@yahoo.com>
First post2014-10-10 15:43 -0500
Last post2014-10-10 14:18 -0800
Articles 4 — 4 participants

Back to article view | Back to comp.os.linux.misc


Contents

  Destination Host Unreachable finnmcmissile <viana.ronelo@yahoo.com> - 2014-10-10 15:43 -0500
    Re: Destination Host Unreachable The Natural Philosopher <tnp@invalid.invalid> - 2014-10-10 21:54 +0100
    Re: Destination Host Unreachable Andreas Kohlbach <oct14.5.ankman@spamgourmet.com> - 2014-10-10 17:00 -0400
    Re: Destination Host Unreachable floyd@apaflo.com (Floyd L. Davidson) - 2014-10-10 14:18 -0800

#12273 — Destination Host Unreachable

Fromfinnmcmissile <viana.ronelo@yahoo.com>
Date2014-10-10 15:43 -0500
SubjectDestination Host Unreachable
Message-ID<06GdnVinNqSX2KXJnZ2dnUU7-aWdnZ2d@giganews.com>
Hi

I have two network cards.   One card is connected is LAN. Another one
is connected to internet switch. Im using Fedora Core 5


eth0      Link encap:Ethernet  HWaddr 00:1B:FC:01:C3:FF
          inet addr:203.177.199.250  Bcast:203.177.199.255  Mask:255.255.255.248
          inet6 addr: fe80::21b:fcff:fe01:c3ff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1159 errors:0 dropped:0 overruns:0 frame:0
          TX packets:893 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:173158 (169.0 KiB)  TX bytes:104872 (102.4 KiB)
          Interrupt:17

eth1      Link encap:Ethernet  HWaddr 34:08:04:2A:7C:D9
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::3608:4ff:fe2a:7cd9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22310 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18529 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1727145 (1.6 MiB)  TX bytes:1775326 (1.6 MiB)
          Interrupt:18 Base address:0x8c00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:478 errors:0 dropped:0 overruns:0 frame:0
          TX packets:478 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:53152 (51.9 KiB)  TX bytes:53152 (51.9 KiB)

i can ping yahoo.com or any other website... but when i tried to ping clients from my LAN it gives an error message "DESTINATION HOST UNREACHABLE" so basically my client PCs cannot access to the internet... 

what do i have to do to fix this... Thank you very much...

[toc] | [next] | [standalone]


#12274

FromThe Natural Philosopher <tnp@invalid.invalid>
Date2014-10-10 21:54 +0100
Message-ID<m19h2i$469$1@news.albasani.net>
In reply to#12273
On 10/10/14 21:43, finnmcmissile wrote:
> Hi
>
> I have two network cards.   One card is connected is LAN. Another one
> is connected to internet switch. Im using Fedora Core 5
>
>
> eth0      Link encap:Ethernet  HWaddr 00:1B:FC:01:C3:FF
>            inet addr:203.177.199.250  Bcast:203.177.199.255  Mask:255.255.255.248
>            inet6 addr: fe80::21b:fcff:fe01:c3ff/64 Scope:Link
>            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>            RX packets:1159 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:893 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:1000
>            RX bytes:173158 (169.0 KiB)  TX bytes:104872 (102.4 KiB)
>            Interrupt:17
>
> eth1      Link encap:Ethernet  HWaddr 34:08:04:2A:7C:D9
>            inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
>            inet6 addr: fe80::3608:4ff:fe2a:7cd9/64 Scope:Link
>            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>            RX packets:22310 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:18529 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:1000
>            RX bytes:1727145 (1.6 MiB)  TX bytes:1775326 (1.6 MiB)
>            Interrupt:18 Base address:0x8c00
>
> lo        Link encap:Local Loopback
>            inet addr:127.0.0.1  Mask:255.0.0.0
>            inet6 addr: ::1/128 Scope:Host
>            UP LOOPBACK RUNNING  MTU:16436  Metric:1
>            RX packets:478 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:478 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:0
>            RX bytes:53152 (51.9 KiB)  TX bytes:53152 (51.9 KiB)
>
> i can ping yahoo.com or any other website... but when i tried to ping clients from my LAN it gives an error message "DESTINATION HOST UNREACHABLE" so basically my client PCs cannot access to the internet...
>
> what do i have to do to fix this... Thank you very much...
>
>
you need to set up port forwarding on this machine and default routes 
pointing to it on other lan machines

Try googling 'linux as a router'


-- 
Everything you read in newspapers is absolutely true, except for the 
rare story of which you happen to have first-hand knowledge. – Erwin Knoll

[toc] | [prev] | [next] | [standalone]


#12275

FromAndreas Kohlbach <oct14.5.ankman@spamgourmet.com>
Date2014-10-10 17:00 -0400
Message-ID<87wq87zllq.fsf@usenet.ankman.de>
In reply to#12273
finnmcmissile wrote on 10. October 2014:
>
> I have two network cards.   One card is connected is LAN. Another one
> is connected to internet switch. Im using Fedora Core 5
>
>
> eth0      Link encap:Ethernet  HWaddr 00:1B:FC:01:C3:FF
>           inet addr:203.177.199.250  Bcast:203.177.199.255  Mask:255.255.255.248
>           inet6 addr: fe80::21b:fcff:fe01:c3ff/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:1159 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:893 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:173158 (169.0 KiB)  TX bytes:104872 (102.4 KiB)
>           Interrupt:17
>
> eth1      Link encap:Ethernet  HWaddr 34:08:04:2A:7C:D9
>           inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
>           inet6 addr: fe80::3608:4ff:fe2a:7cd9/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:22310 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:18529 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:1727145 (1.6 MiB)  TX bytes:1775326 (1.6 MiB)
>           Interrupt:18 Base address:0x8c00
>
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:478 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:478 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:53152 (51.9 KiB)  TX bytes:53152 (51.9 KiB)
>
> i can ping yahoo.com or any other website... but when i tried to ping
> clients from my LAN it gives an error message "DESTINATION HOST
> UNREACHABLE" so basically my client PCs cannot access to the
> internet...
>
> what do i have to do to fix this... Thank you very much...

Something like

iptables -t nat -A POSTROUTING -s 192.168.1.1 -o eth0 -j MASQUERADE
-- 
Andreas

I wish my grass was emo. Then it would cut itself.

[toc] | [prev] | [next] | [standalone]


#12278

Fromfloyd@apaflo.com (Floyd L. Davidson)
Date2014-10-10 14:18 -0800
Message-ID<87fvev36xl.fld@barrow.com>
In reply to#12273
finnmcmissile <viana.ronelo@yahoo.com> wrote:
>Hi
>
>I have two network cards.   One card is connected is LAN. Another one
>is connected to internet switch. Im using Fedora Core 5

Others are suggesting that IP forwarding be enabled, and
essentially you use this PC as a firewall for the others
on the LAN.

That certainly works, but isn't necessarily the only
useful topology.

I would put one of the very common 4-port routers
between that "internet switch" and your LAN.  If the LAN
is small, the 4 ports are all that is needed.  If it is
larger, use one or more Ethernet Switches to extend it.

I have a cable modem, connected to the WAN port on a 4 port
router.  There is a single 16 port gigabit Ethernet switch
to which all of my LAN devices, including the 4-port router,
are connected to.

The cable modem addreess is 192.168.1.100, the router is
192.168.0.3, and all devices on the LAN are 192.168.0.xxx.

Here is a typical route table for any LAN connected device:

  > route -n
  Kernel IP routing table
  Destination  Gateway      Genmask         Flags Iface
  0.0.0.0      192.168.0.3  0.0.0.0         UG    eth0
  127.0.0.0    0.0.0.0      255.0.0.0       U     lo
  192.168.0.0  0.0.0.0      255.255.255.0   U     eth0
  192.168.0.3  0.0.0.0      255.255.255.255 UH    eth0

This makes the router's builtin firewall functional for all
devices, rather than one of your PC's providing that function.

-- 
Floyd L. Davidson                         http://www.apaflo.com/
Ukpeagvik (Barrow, Alaska)                      floyd@apaflo.com

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.misc


csiph-web