- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Configuring static routing in redhat linux 4
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
02-13-2008 06:53 AM
02-13-2008 06:53 AM
I have a system with two ips confgiured one private and one public ip
Need to know how to setup static routing between them
Public ip : 170.86.131.X configured with eth0
Private ip : 192.168.0.X configured with eth1
my routing table is as follows
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2008 07:47 AM
02-13-2008 07:47 AM
Re: Configuring static routing in redhat linux 4
If you want to allow packets from one subnet to another, you have to configure ip_forwarding:
Edit the file /etc/sysctl.conf
net.ipv4.ip_forward = 1
Then run "sysctl -p"
For static routes, please see:
http://www.cementhorizon.com/wiki/index.php/Static_Persistent_Routes_under_Red_Hat_Enterprise_Linux_3_RHEL_3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2008 11:33 PM
02-13-2008 11:33 PM
Solutionyou can add routes to a network interface like this:
route add -net
for your case, i guess you want to route traffix to the private ip and the default gw in set on the public ip, you will need to use the following command:
route add -net 192.168.0.0 netmask 255.255.255.0 dev eth1
however, it appears there is a more advanced way to do routing now (i always used above command) with lartc tool.
more info in the manpage (man ip) or from the project page: http://lartc.org/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2008 10:26 PM
02-20-2008 10:26 PM
Re: Configuring static routing in redhat linux 4
Thank u all for the help
I had set route add -net 192.168.0.0/24 dev eth1 and checked
we are able to ping from 192.168.0.X to 192.168.0.X but from the scan device ip 192.168.0.X whihch is in connected thru vpn when we try to ping to public ip 170.86.X ping is failing.
Actually the device to work they needs the communication between private ip thru public ip .
Any suggestions Pls help
Thanks
Karthik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2008 12:53 AM
02-27-2008 12:53 AM