Link to home
Start Free TrialLog in
Avatar of Kinderly Wade
Kinderly WadeFlag for United States of America

asked on

mount a drive on different subnet

Hi Experts,

I like to mount a drive/folder from a different subnet and I wish to know how to accomplish this?

I have two subnets with 192.168.44.x and 192.168.56.x:
1. on 192.168.44.12 I have a share folder with path like this: 192.168.4.12/opt
2. I am currently on 192.168.56.15 and created a mount path like this: /mnt/rmote_opt

I've tried mount option with cifs like this:
mount -t cifs //192.168.44.12/opt /mnt/rmote_opt -o username=xxxxx,password=xxxxx but it doesn't work. Somehow I cannot find //192.168.44.12/opt.

Is there a way to change my current script or there is another way that allows me to mount a remote path from different subnet? Thanks
Avatar of serialband
serialband
Flag of Ukraine image

Can you ping 192.168.44.12? Can you ping the other subnet?
Avatar of Kinderly Wade

ASKER

Hi serialband,

Yes, I am able to ping it.
is 192.168.44.12 linux?
how is it a cifs share?
Hi Seth,

no, 192.168.44.12 is not linux. It is window server.
ASKER CERTIFIED SOLUTION
Avatar of serialband
serialband
Flag of Ukraine image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi serialband,

I think it is possible. It is a webserver which the only port allowed on it is port 80 and 443. I will remove the restriction and see the firewall configuration. Thanks.
You ned thes ports open for CIFS:
    netbios-ns - 137/tcp # NETBIOS Name Service
    netbios-dgm - 138/tcp # NETBIOS Datagram Service
    netbios-ssn - 139/tcp # NETBIOS session service
    microsoft-ds - 445/tcp # if you are using Active Directory
http://www.cyberciti.biz/faq/what-ports-need-to-be-open-for-samba-to-communicate-with-other-windowslinux-systems/