- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Routing Problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2004 09:02 PM
11-10-2004 09:02 PM
Routing Problem
I am a new user to Linux. I have installed one Linux Pc with two ethernet cards.
eth0 = 192.168.141.30
eth1= 100.100.61.3
Default gateway = 192.168.141.4 = My DSL Router IP Address
Route table
Destination
192.168.141.0 192.168.141.30
100.100.61.0 100.100.61.3
Default gateway = 192.168.141.4
I have one Pc which is on 192.168.141.X Series.
I have mentioned deafult gateway for this PC as 192.168.141.30 (eth0 on linux box). I can browse net on this PC and iptables rules applied are also working fine.(Blocking of certain sites.)
When I try to access from this Pc and Ip address of 100.100.61.0 I am not able to access.
What default gateway I should mention on 100 series network in order to make internet working.
Can anyone plsssssssssssssssssshelp me and tell me step by step commands to do routing for this setup. Where I can access any PC of 100.100.61.0 series from my 192.168.141.0 network and Vice - Versa.
I have read 100 of things on net but
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2004 09:54 PM
11-10-2004 09:54 PM
Re: Routing Problem
Hope this Helps
Martin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2004 10:39 PM
11-10-2004 10:39 PM
Re: Routing Problem
net.ipv4.ip_forward = 1
in /etc/sysctl.conf in order to allow routing in your linux box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2004 02:03 AM
11-11-2004 02:03 AM
Re: Routing Problem
If not, add new entry to the routing table for the all PCs on the network 100.100.61.0:
route add -net 192.168.141.0/24 gw 100.100.61.3.
Also make sure that IP forwarding setting is enabled.
"cat /proc/sys/net/ipv4/ip_forward"
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2004 03:01 AM
11-11-2004 03:01 AM
Re: Routing Problem
Regards
Martin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 01:52 AM
11-15-2004 01:52 AM
Re: Routing Problem
route add -net 192.168.141.0/24 gw 100.100.61.3
This make your pc acees internet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 05:14 PM
11-15-2004 05:14 PM
Re: Routing Problem
Thnx for your replies.
I do not want to go and add route command on every PC on my network. I want all the request should come to my Linux box from there all the request should be routed automatically. I mean initially all the PC's on both the network should be able to access each other (100 and 192 series).
Could anyone list out all the steps required, like checking IP_Forward command etc. just to check I have not missed out anything.
Moreover when I try to ping 100 series PC from my 192 series network.. it says :
Reply from 192.168.141.30 Destination Host unreachable.
Pls help
Regards
Samarth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 07:30 PM
11-15-2004 07:30 PM
Re: Routing Problem
If I understand properly, your network topology is:
100.100.61.x ----- linux box --- Internet
|
|
192.168.141.? PC
If so, you should
1) define default router for all 100.100.61.x boxes = 100.100.61.3
2) add
net.ipv4.ip_forward = 1
to /etc/sysctl.conf file on your linux router and reboot it.
3) add 192.168.141.30 as default router to your computers in 192.168.141 network
Resources:
http://www.homenethelp.com/web/howto/linux-share-internet.asp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 07:53 PM
11-15-2004 07:53 PM
Re: Routing Problem
192.168.141.x ----Linux box-----100.10061.x
|
|
DSL Router 192.168.141.4
Linux box has 2 NIC :
192.168.141.30
100.100.61.3
IP_Forward is enabled in SYSCTL.CONF
Routing table
192.168.141.x gw is 192.168.141.30
100.100.61.x gw is 100.100.61.3
Default gateway is 192.168.141.4
For eg if I ping 100.100.61.27 from 192.168.141.2 it says :
Reply from 192.168.141.30 Destination host unreachable.. Request timed out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 08:54 PM
11-15-2004 08:54 PM
Re: Routing Problem
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 09:28 PM
11-15-2004 09:28 PM
Re: Routing Problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 09:40 PM
11-15-2004 09:40 PM
Re: Routing Problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 09:43 PM
11-15-2004 09:43 PM
Re: Routing Problem
You mean to say I should mention 192.168.141.30 as default gateway on all the PC's.?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 09:48 PM
11-15-2004 09:48 PM
Re: Routing Problem
let's do it on one PC and test if this solve routing problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 09:49 PM
11-15-2004 09:49 PM
Re: Routing Problem
I have mentioned 192.168.141.30 as Default gateway on one PC.But no luck
Thnx
sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2004 06:44 PM
11-16-2004 06:44 PM
Re: Routing Problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2004 07:17 PM
11-16-2004 07:17 PM
Re: Routing Problem
thnx
sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2004 07:21 PM
11-16-2004 07:21 PM
Re: Routing Problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2004 07:34 PM
11-16-2004 07:34 PM
Re: Routing Problem
pls find correct netstat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2004 07:46 PM
11-16-2004 07:46 PM
Re: Routing Problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 05:11 AM
11-17-2004 05:11 AM
Re: Routing Problem
Something seems strange to me : You don't have any default route on your server.
Could you please try to launch this command :
service network restart
and show us output. It should do a call to ifup for your NICs and define a default route.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 05:41 PM
11-17-2004 05:41 PM
Re: Routing Problem
Thnx for your reply.
I have tried that command and output is same:
No default gateway defined.
could you pls help me on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 05:52 PM
11-17-2004 05:52 PM
Re: Routing Problem
Send them to verify. We never know. They are in /etc/rc.d/init.d and /etc/sysconfig/network-scripts
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 06:01 PM
11-17-2004 06:01 PM
Re: Routing Problem
Thnx
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 09:32 PM
11-17-2004 09:32 PM
Re: Routing Problem
[if I understand properly, your 100.100.61 boxes have only NIC connected to 100.100.61?]