LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-16-2003, 05:03 AM   #1
nishi_k_79
LQ Newbie
 
Registered: Apr 2003
Location: India
Posts: 10

Rep: Reputation: 0
SIOCADDRT : Network is Unreachable


Unable to ping Gateway : Gives Error SIOCADDRT: Network is Unreachable

My Network Configuration:
=========================
I have a LAN on the subnet 10.168.168.0. I would like the computers on
this subnet to access my Red Hat 7.1 Linux machine to get to the
Internet. Thus, my box needs to be set up as a gateway. This Linux box
then needs to connect to another gateway in order to get to the Internet
itself. The gateway is on subnet 192.168.0.0

I have 2 NIC's
eth0 - Internal Lan (RealTek PCI Fast Ethernet Adapter) IP-10.168.168.X
eth1 - For external Network (Accton...........) IP-192.168.0.X

My ifconfig shows all the 3 interfaces up
lo,eth0,eth1

Furnished below is my routing table:
=============================================
route add -net 10.168.168.0 netmask 255.255.255.0 gw 10.168.168.X dev eth0
route add -net 10.168.168.X netmask 255.255.255.255 gw 127.0.0.1 dev lo
route add -net 10.255.255.255 netmask 255.255.255.255 gw 10.168.168.X dev eth0
route add -net 127.0.0.0 netmask 255.0.0.0 gw 127.0.0.1 dev lo
route add -net 127.0.0.1 netmask 255.255.255.255 gw 127.0.0.1 dev lo
route add -net 192.168.15.0 netmask 255.255.255.0 gw 192.168.15.X dev eth1
route add -net 192.168.15.X netmask 255.255.255.255 gw 127.0.0.1 dev lo
route add -net 224.0.0.0 netmask 240.0.0.0 gw 192.168.15.X dev eth1
route add -net 224.0.0.0 netmask 240.0.0.0 gw 10.168.168.X dev eth0
route add -net 255.255.255.255 netmask 255.255.255.255 gw 192.168.15.X dev eth1
route add -net 255.255.255.255 netmask 255.255.255.255 gw 10.168.168.X dev eth0
route add -net 192.168.0.0 netmask 255.255.0.0 dev eth1
route add default gw 192.168.0.X

Any Help greatly appreciated !!!



SIOCADDRT : Network is Unreachable
 
Old 10-16-2003, 11:18 AM   #2
snerfu
Member
 
Registered: Sep 2003
Distribution: Debian/GNU
Posts: 30

Rep: Reputation: 15
It almost looks like you might want to specify the adapter on your gateway route like:

route add defualt gw 192.168.0.1 eth1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Unreachable? biledaemon Slackware 4 10-24-2005 02:05 PM
Network Is Unreachable!!!!!!!!!!!!!!!!!!!!! koodoo Linux - Newbie 4 02-19-2005 09:51 AM
Network is unreachable??? Tnichols Linux - Networking 15 12-19-2003 09:44 PM
Network is unreachable kakarizz Linux - Networking 1 12-16-2003 09:16 AM
SIOCADDRT: Network is unreachable shyam Linux - Networking 16 09-10-2003 07:00 AM


All times are GMT -5. The time now is 02:00 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration