- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Routing in two lans
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
07-20-2004 01:27 AM
07-20-2004 01:27 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 01:33 AM
07-20-2004 01:33 AM
Re: Routing in two lans
route add host 10.0.0.22 192.168.0.132 1
Depending on your network config, you may need to add a netmask
route add host 10.0.0.2 netmask
Once you've got it working, don't forget to add the details to /etc/rc.config.d/netconf in order to make the new route permanent.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 01:33 AM
07-20-2004 01:33 AM
Re: Routing in two lans
Do you want D120 talk to K460 on ip address 192.168.0.132, then the ip_address should be reachable from D210. On D210, the K460 will be known with ip address - 192.168.0.132.
In /etc/hosts (if you are using /etc/hosts for host name resolution) the entry for K460 will look like follows.
192.168.0.132 fully_qualified domain_name_of_K460
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 01:42 AM
07-20-2004 01:42 AM
Re: Routing in two lans
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2004 03:24 AM
07-20-2004 03:24 AM
SolutionThe gateway has to be on a local LAN and since you want to access everything on the 192.168.0.0 (mask 255.255.255.0 I assume) you would do
route add 192.168.0.0 netmask 255.255.255.0 10.0.0.12 1
I assume the K460 responds to Pings otherwise we will need to make another ndd change.
This will get the packet to the K460 but you should probably check that the K460 has ip_forwarding turned on with:
ndd -get /dev/ip ip_forwarding
You should get a 1 back if you get 0 then
ndd -set /dev/ip ip_forwarding 1
and edit /etc/rc.config.d/nddconf to add:
TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_forwarding
NDD_VALUE[0]=1
If there is already an entry then you have to change the numbers in brackets to the next higher number.
Now the packets are being sent to the K460 and relayed onto the 192.168.0 network. In order for the devices on this LAN to reply they need to know about the new path to the 10.0.0 LAN via the 192.168.0.132 gateway otherwise nothing is going to work. You either have to add a route on each host or if these use a default router you can tell the router about it and it will redirect the hosts to the correct gateway.
Don't expect the D210 to be able to reach the Internet even if the hosts on the 192.168.0 network can. The router or firewall upstream is doing NAT and converting the 192.168.0 addresses to a legal address. It will not know that it is supposed to do the same to the 10.0.0 stuff unless you tell it and most of the cheap routers only can NAT one LAN. You could get the K460 to do the NAT and convert the 10.0.0.12 to 192.168.0.132 but you will need some extra software like ipfilter.
Ron