Hello everybody,


Recently our college got leased line access to internet. We have a backbone
network 192.168.10.0 with the router 192.168.10.254 as the gateway.


We want to connect our electrical dept. to the internet through this network. We already had a local network at EE Dept. 192.168.1.0.

So I connected two ethernet cards to one computer (192.168.1.72(eth1), 192.168.10.72 (eth0)), and set up the routing table as follows:

-----------------------------------------------------------------------
[EMAIL PROTECTED] smal]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.10.254 0.0.0.0 UG 0 0 0 eth0
-----------------------------------------------------------------------


From this computer we can access the internet, and can also ping the other
computers on the local network.


On another computer (192.168.1.113) on this local network, I set up the routing table as follows:
---------------------------------------------------------------------------
prayas:~$ /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.72 0.0.0.0 UG 0 0 0 eth0
---------------------------------------------------------------------------


But from this computer (192.168.1.113) I cannot ping the router and hence the internet, though I can ping both 192.168.10.72 and 192.168.1.72

Obviously, there is something wrong in the routing table. But what is wrong I don't know. Please help me out. This is the first time I am trying my hand at creating a routing table. (Simply trying to follow the NAG. Surely missed something obvious.)

By the way, how do I check whether IP Forwarding is enabled.
The second line of /proc/net/snmp in the local gateway shows:
--------------------------------------------------------
Ip: 2 64 9583 0 0 0 0 1840 7518 4532 162 0 0 0 0 0 0 0 0
--------------------------------------------------------
What do I understand from this ?


Regards,
Santanu


------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to