LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Want to access samba-server from two subnets by name. (https://www.linuxquestions.org/questions/linux-networking-3/want-to-access-samba-server-from-two-subnets-by-name-382952/)

pingu 11-14-2005 03:55 AM

Want to access samba-server from two subnets by name.
 
I have a sambaserver (FC4) with two nic's, connected to two subnets.
I want to access this server by name from both subnets.
Wins with samba works for one subnet only - both names given (netbios aliases) are tied to same IP.
I do not control the DHCP, DNS & WINS-servers, using static IP on samba-server. (Tried with DHCP too, assigning different DHCP_HOSTNAME without success.)
How do I assign a name for each nic???

mlp68 11-14-2005 12:16 PM

You don't say if you want to access the server from many machines or just a few. Also I'm not sure if you mean "by the same name" when the machine hop around, such as laptops -- that would be doable but a bit more complicated.

There are many ways to accomplish the scenario with different names -- here's what I'd do: In the (few) machines on either subnet, add a line to the /etc/hosts file like

192.168.1.10 sambaserver

for one subnet (called 192.168.1 here, substitute yours)
and

192.168.2.10 sambaserver

for the second subnet (again, substitute)

For machines confined to a particular subnet, that's it. Machines on either subnet then refer to the server simply as "sambaserver". That doesn't scale for a huge population of machines, but or a few machines it's ok.

Post back if that's not what you wanted. Hope it helps.

mlp

pingu 11-21-2005 02:28 AM

Thanks for the suggestion, but I need a "dynamic" solution.
This is for a school, we have 250 computers in one subnet, 100 in the other.
I'm beginning to believe I'll have to contact DNS-admins to get it manually added to DNS - I have searched a lot and asked in three forums without success.
Any ideas are appreciated!


All times are GMT -5. The time now is 02:38 PM.