Internet & Intranet (routing ?)

Here's the situation (it's pretty common) :

We've got an intranet at home, and one PC which is running Linux (of course :-) and which has two network cards : one connected to a cable modem, one connected to the hub of our intranet. There is no problem with the connection to the internet, this all works fine, but I can't seem to ping to or from the PC with 2 cards to/from any other PC in the network.

The idea of course is to do IP masquerading, but that's not the question here. Question is : From my gateway PC, why can I ping to any Internet address, but not to any of the intranet computers ? Do I have to install a route daemon (if so, how ?) or is there another problem ?

The hardware all works fine, 'cause in Windows I can ping any address on the Internet as well as on the intranet.

FYI : When I ping, I get the message 'Destination host unreachable' and when I telnet from the gateway to another intranet-PC, it says 'No route to host'.

I hope someone can help me as it is pretty urgent.
JeekeAsked:
Who is Participating?
 
jlevieConnect With a Mentor Commented:
The output from "ifconfig -a" may well yield the answer. You might have a problem with your inside ethernet card. The routing tables are valid, and there is a route to the 10.0.0.0/8 network. So if you get "network unreachable" from within the gateway box, the most likely candidate becomes the NIC itself.
0
 
tiboriCommented:
The route daemon "routed" should already be loaded. What you should do is check your routing table using /sbin/route. You should have an entry in there that allows you to access your local intranet. If not you can add a route(as root) with the command:
/sbin/route add -net x.x.x.x netmask <yournetmask> -dev eth0(or eth1) whichever is the netcard linking you to your local net.
This command(depending on how you want to set it up)can give you access to your Windows PC or if you want to a whole subnet. Also make sure you're not IPMASQ-ing on your local net just to the outside. If you give more details,for example the result of /sbin/route I can tell you the exact command you need to use.
Good luck.
0
 
JeekeAuthor Commented:
Here's the route output :

[root@homer /root]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.1        *               255.255.255.255 UH    0      0        0 eth1
195.162.213.0   *               255.255.255.0   U     0      0        0 eth0
10.0.0.0        *               255.0.0.0       U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         gw-vlan-202.che 0.0.0.0         UG    0      0        0 eth0


I haven't made any changes to it, this is the routing table after I added both devices using linuxconf.
BTW, did I mention that I can't ping my gateway machine from any other PC's either ?

BTW2 : It is a clean Linux install.
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
JeekeAuthor Commented:
After I run the routed, the route output is as follows :

[root@homer /root]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.1        *               255.255.255.255 UH    0      0        0 eth1
195.162.213.0   cable-195-162-2 255.255.255.0   UG    0      0        0 eth0
195.162.213.0   *               255.255.255.0   U     0      0        0 eth0
10.0.0.0        10.0.0.1        255.0.0.0       UG    0      0        0 eth1
10.0.0.0        *               255.0.0.0       U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         gw-vlan-202.che 0.0.0.0         UG    0      0        0 eth0


Hope this helps too.
0
 
JeekeAuthor Commented:
After I run the routed, the route output is as follows :

[root@homer /root]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.1        *               255.255.255.255 UH    0      0        0 eth1
195.162.213.0   cable-195-162-2 255.255.255.0   UG    0      0        0 eth0
195.162.213.0   *               255.255.255.0   U     0      0        0 eth0
10.0.0.0        10.0.0.1        255.0.0.0       UG    0      0        0 eth1
10.0.0.0        *               255.0.0.0       U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         gw-vlan-202.che 0.0.0.0         UG    0      0        0 eth0


Hope this helps too.
0
 
unixway52Commented:
What is the default gateway on the PC's on
the 10.0.0.0 network? They should be pointed at
10.0.0.1 if you're using the linux box as a
firewall/nat box.

The output from netstat -in would be useful as well.
0
 
JeekeAuthor Commented:
I'd like to thank you all for the help. Indeed, as jlevie said, I installed a different network card, and everything seems to work now. Apparently Linux has some problems with the ethernet card, as it worked in Windows without any problem. Anuway, the IP masquerading works as well, so everything is _finally_ working :-)

Thanks again
Jeeke
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.