- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Set-up SAMBA so can be accessed by two subnets
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2001 01:53 AM
тАО11-07-2001 01:53 AM
Set-up SAMBA so can be accessed by two subnets
I am trying to configure a SAMBA server to be accessed both by 192.168.10.6 and 192.168.9.6 gateways but only using one ethernet card. Is this possible? Thanks.
PS
I tried IP aliasing but it doesn't seem to work or I missed something in the configuration. Am using Mandrake 8.1 by the way on a Kayak X2000.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2001 03:41 AM
тАО11-07-2001 03:41 AM
Re: Set-up SAMBA so can be accessed by two subnets
As far as I know you can use "allow hosts=" in your smb.conf. Some examples:
1. allow hosts that match the given
network/netmask
hosts allow = 150.203.15.0/255.255.255.0
2. allow a couple of hosts
hosts allow = gataway1, gateway2
If you go to http://samba.nip.nl/samba/docs/man/smb.conf.5.html you will see an explenation. And these examples to. Or the smb.conf man page.
Greeting, Ray.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2001 03:45 AM
тАО11-07-2001 03:45 AM
Re: Set-up SAMBA so can be accessed by two subnets
In smb.conf [global] section,
add
interfaces = 192.168.10.6/24 192.168.9.6/24
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2001 04:36 PM
тАО11-09-2001 04:36 PM
Re: Set-up SAMBA so can be accessed by two subnets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2001 05:43 PM
тАО11-09-2001 05:43 PM
Re: Set-up SAMBA so can be accessed by two subnets
Could you send us the relevant parts of NMB's logfile (under /var/log/samba)?
Regards,
Paga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2001 07:20 PM
тАО11-09-2001 07:20 PM
Re: Set-up SAMBA so can be accessed by two subnets
interfaces = 192.168.9.6/24 192.168.10.6/24
in the [globals] section of the smb.conf file.
2001/11/10 11:12:43, 0] lib/util_sock.c:open_socket_in(819)
bind failed on port 137 socket_addr=192.168.10.6 (Cannot assign requested address)
[2001/11/10 11:12:43, 0] nmbd/nmbd_subnetdb.c:make_subnet(142)
nmbd_subnetdb:make_subnet()
Failed to open nmb socket on interface 192.168.10.6 for port 137. Error was Cannot assign requested address
[2001/11/10 11:12:43, 0] nmbd/nmbd.c:main(835)
ERROR: Failed when creating subnet lists. Exiting.
During this time, the server cannot be seen by PCs on BOTH subnets.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2001 02:27 AM
тАО11-13-2001 02:27 AM
Re: Set-up SAMBA so can be accessed by two subnets
hosts allow = 192.168.10.6/255.255.255.0, 192.168.9.6/255.255.255.0 ???????????
And undone the chanes to interface??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2001 02:29 AM
тАО11-13-2001 02:29 AM
Re: Set-up SAMBA so can be accessed by two subnets
Have you tried adding
hosts allow = 192.168.10.0/255.255.255.0, 192.168.9.0/255.255.255.0 ???????????
And undone the chanes to interface??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2001 06:46 PM
тАО11-13-2001 06:46 PM
Re: Set-up SAMBA so can be accessed by two subnets
Unless your server has both of those address on it's nic(s), you won't be able to bind port 137 to them -- hence the error you're seeing.
Another friend of mine was running a server with addresses on two class C networks -- what worked for him was to "fake" a class B with netmask 255.255.0.0 (the two address differed only in the last two octets).
Samba can be wild, wonderful, and a bear to set up.