Solved

Samba with two interfaces

Posted on 2001-07-20
2
231 Views
Last Modified: 2010-03-18
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
Comment
Question by:_marko_
[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
2 Comments
 
LVL 3

Accepted Solution

by:
interiot earned 50 total points
ID: 6303110
The slash number is the number of 1 bits on the left side of the mask.  So 255.255.248.0 => 21.
0
 
LVL 2

Author Comment

by:_marko_
ID: 6303252
Now I understand the expression xxx.xxx.xxx.xxx/yy! Thank you very much!

Marko
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

763 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