Solved

mount a drive on different subnet

Posted on 2015-02-12
7
246 Views
Last Modified: 2015-02-13
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
0
Comment
Question by:Kinderly Wade
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 30

Expert Comment

by:serialband
ID: 40606817
Can you ping 192.168.44.12? Can you ping the other subnet?
0
 

Author Comment

by:Kinderly Wade
ID: 40606829
Hi serialband,

Yes, I am able to ping it.
0
 
LVL 35

Expert Comment

by:Seth Simmons
ID: 40607137
is 192.168.44.12 linux?
how is it a cifs share?
0
Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

 

Author Comment

by:Kinderly Wade
ID: 40609061
Hi Seth,

no, 192.168.44.12 is not linux. It is window server.
0
 
LVL 30

Accepted Solution

by:
serialband earned 500 total points
ID: 40609123
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 192.168.44.12

This should display the shares if you're allowed to connect.
0
 

Author Comment

by:Kinderly Wade
ID: 40609136
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.
0
 
LVL 30

Expert Comment

by:serialband
ID: 40609146
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/
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question