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 I have a share folder with path like this:
2. I am currently on and created a mount path like this: /mnt/rmote_opt

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

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
Kinderly WadeprogrammerAsked:
Who is Participating?
serialbandConnect With a Mentor Commented:
Do you have a switch or firewall blocking samba ports?
Check to see if you can just connect to the remote system first.

smbclient -L

This should display the shares if you're allowed to connect.
Can you ping Can you ping the other subnet?
Kinderly WadeprogrammerAuthor Commented:
Hi serialband,

Yes, I am able to ping it.
A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

Seth SimmonsSr. Systems AdministratorCommented:
is linux?
how is it a cifs share?
Kinderly WadeprogrammerAuthor Commented:
Hi Seth,

no, is not linux. It is window server.
Kinderly WadeprogrammerAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.