1850335 Members
3063 Online
104054 Solutions
New Discussion

Re: 2 network NFS mount

 
SOLVED
Go to solution
Bruce Baillie
Regular Advisor

2 network NFS mount

I have a C110 with HP-UX V11.00 and 2 network cards. One card is on a 128.165.xxx.xxx network and the other card is on a 193.1.xxx.xxx network. I need to NFS mount from a workstation on the 128 network to a workstation on the 193 network. This C110 is the only connection between the 2 networks. Is there a way?
Why can't we all get along?
3 REPLIES 3
James A. Donovan
Honored Contributor
Solution

Re: 2 network NFS mount

I think the best solution would be to buy yourself a router to place between the two networks, but failing that I think the following should work.

Assuming the IP address of the NFS server box is 193.1.1.2, the client is 128.165.1.2 and the C110 has interfaces on 193.1.1.1 and 128.165.1.1, add static routes on both the NFS Server and Client as follows.

NFS Server:
route add 128.165.1.2 netmask 255.255.0.0 193.1.1.1 1

NFS Client:
route add 193.1.1.2 netmask 255.255.0.0 128.165.1.1 1

Be sure that both the client and server list each other in their respective /etc/hosts files.

I think as long as the C110 is allows ip_forwarding then what I have above will work for you. You can check that setting by typing: ndd -get /dev/tcp ip_forwarding

If it returns 1 or 2 then ip_forwarding is enabled.

Hope this works for you. I don't have anything on which to test what I've given you above, but it seems like it should work.
Remember, wherever you go, there you are...
Bruce Regittko_1
Esteemed Contributor

Re: 2 network NFS mount

Hi,

Jim is right, it will work. This is a lab exercise in HP's Sys. & Net. Admin. II course with the instructor's machine acting as the router. Unless there is a minimum amount of traffic, though, you should get a real router and not use the Unix box.

You can also add the static route information to the /etc/rc.config.d/netconf file so that the routes will survive a reboot.

--Bruce
www.stratech.com/training
Bruce Baillie
Regular Advisor

Re: 2 network NFS mount

Thanks for your help. I knew there had to be a way.
Why can't we all get along?