Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-14-2005, 04:55 AM
|
#1
|
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350
Rep: 
|
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???
|
|
|
11-14-2005, 01:16 PM
|
#2
|
Member
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333
Rep:
|
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
|
|
|
11-21-2005, 03:28 AM
|
#3
|
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350
Original Poster
Rep: 
|
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 12:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|