Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 262
  • Last Modified:

Samba with two interfaces

I just finished configuring a Linux box for DNS, proxy and ip forwarding (iptables). Now I'd like to configure Samba so I can map a network drive on the Linux from a Win2k-box.

In /etc/smb.conf there is a line where I can define the interfaces it should use, but I have totally forgotten about subnetting. The share should show up in both networks.

The IP on the external ethernet is xxx.xxx.xxx.xxx and the subnet mask is 255.255.248.0. The IP on the internal device is 10.0.0.1 and the subnet mask is set to 255.255.255.0.

What should the interfaces line look like in my configuration? I assume that the internal device should be 10.0.0.1/24 but what about the external device? Or has the slash-number anything to do with subnetting?

Marko
0
_marko_
Asked:
_marko_
1 Solution
 
interiotCommented:
The slash number is the number of 1 bits on the left side of the mask.  So 255.255.248.0 => 21.
0
 
_marko_Author Commented:
Now I understand the expression xxx.xxx.xxx.xxx/yy! Thank you very much!

Marko
0
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.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now