Solved

Internet & Intranet (routing ?)

Posted on 2000-05-02
7
432 Views
Last Modified: 2008-03-10
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.
0
Comment
Question by:Jeeke
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 3

Expert Comment

by:tibori
ID: 2769802
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
 

Author Comment

by:Jeeke
ID: 2769974
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
 

Author Comment

by:Jeeke
ID: 2769997
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
Containers & Docker to Create a Powerful Team

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

 

Author Comment

by:Jeeke
ID: 2770020
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
 

Expert Comment

by:unixway52
ID: 2770085
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
 
LVL 40

Accepted Solution

by:
jlevie earned 300 total points
ID: 2771134
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
 

Author Comment

by:Jeeke
ID: 2772272
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

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question