Solved

Internet & Intranet (routing ?)

Posted on 2000-05-02
7
429 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
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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 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