- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- networking question, routing table
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
Discussions
Discussions
Forums
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
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
тАО08-06-2001 01:01 PM
тАО08-06-2001 01:01 PM
I am trying to square away a routing issue. I currently use private ip 192.0.1.59 as the default gateway on our server. That goes to a simple DSL router for internet access. That router is configured to forward telnet requests to the server (192.0.1.1).
That works fine.
But I added a VPN network to a branch. The branch is on private subnet ip 192.0.2.0 0.0.0.255 And the VPN links the two networks together. Well in order for it to work I had to change the default gateway on the Unix server to use the private IP of 192.0.1.111 (this is the inside ip for the local VPN router).
But once I change the gateway i lose the ability to make it easy for customers to telnet into our server to use it. And also for employees to access it over the web.
So what I want to do is put the default gateway back to what it was, then gain internet access again. But to use a route command to route traffic from the 192.0.2.0 0.0.0.255 network through the local VPN router of 192.0.1.111
Seems simple enough. But I am not sure what the command is.
I would appreciate any feed back.
Thanks,
Troy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2001 01:29 PM
тАО08-06-2001 01:29 PM
SolutionIf I understand you correctly, you want to enable routing from you HP server to the new VPN network without changing your existing default gateway and using the 192.0.1.111 (your inside IP for VPN Local router), what you need to do is modify the /etc/rc.config.d/netconf and add
ROUTE_DESTINATION[1]="net 192.0.2"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=192.0.1.111
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
This would make changes on subsequent reboots. To add this change right now, issue a command
"route add net 192.0.2.0 netmask 255.255.255.0 192.0.1.111 1"
This would add a route to your VPN network(192.0.2) using your local VPN router(192.0.1.111) as a gateway. This will affect your existing default gateway.
-Hope that helps
I am RU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2001 01:32 PM
тАО08-06-2001 01:32 PM
Re: networking question, routing table
The last statement should read, This will not affect your existing default gateway.
-I am RU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2001 03:02 PM
тАО08-06-2001 03:02 PM
Re: networking question, routing table
That worked great.
I used the following solution, on the fly.
route add net 192.0.2.0 netmask 255.255.255.0 192.0.1.111 1
Will this stay in the routing table if the server is re-booted? Or do I need to add the other solution as well?
----
Troy,
and thanks a lot!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2001 05:05 PM
тАО08-06-2001 05:05 PM
Re: networking question, routing table
the static route will be gone when the server is rebooted. Edit /etc/rc.config.d/netconf
for the routes to "Stick" after reboot. Or write a script that will execute on start up for and these routes.
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2001 06:47 PM
тАО08-06-2001 06:47 PM
Re: networking question, routing table
If you want this to be set after subsequent reboots, you will have to modify the /etc/rc.config.d/netconf. or like Richard said you will have create a script (make sure you test it out) and then make links in the /sbin/rc?.d directories but the easiest solution would be to modify the netconf file.
-Regards
I am RU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2001 10:47 AM
тАО08-07-2001 10:47 AM
Re: networking question, routing table
if that is correct, your choice of "private" IP addresses might come-back to haunt you when you can no longer reach those real internet sites with 192.0 addresses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2001 11:38 AM
тАО08-07-2001 11:38 AM
Re: networking question, routing table
You are correct!!! 192.168 is reserved for private networks. I think our author may have a little trouble in the future.
I may be wrong...but, my two cents.
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2001 02:28 PM
тАО08-07-2001 02:28 PM
Re: networking question, routing table
I inherited this network (in other words I am paid to
deal with it).
Most of the ip's will never touch the web, so it should never matter. Some do hit the web, but they are hiding behind a firewall. So again I did not think it would matter.
Although I am considering changing each of them anyway. Just to make it easier for the next guy/gal.
Thanks for all your help.
Troy