LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-14-2005, 03:55 AM   #1
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
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???
 
Old 11-14-2005, 12:16 PM   #2
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
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
 
Old 11-21-2005, 02:28 AM   #3
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Server with Samba, Windows PC's cant access server! elliotfuller Linux - Networking 1 09-10-2005 06:40 AM
want to see different subnets in samba euler Linux - Networking 5 07-20-2005 07:30 AM
Using iptables to only allow certain subnets access ThePlague Linux - Networking 7 12-29-2004 11:11 AM
DSL: confiuring internet access from 2 subnets kosie Linux - Networking 2 10-05-2004 11:12 AM
samba and subnets mirko72 Linux - Networking 8 11-26-2003 12:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration