Operating System - Linux
1825764 Members
2105 Online
109687 Solutions
New Discussion

broadcast between 2 lan cards

 
SOLVED
Go to solution
Mauro Gatti
Valued Contributor

broadcast between 2 lan cards

I've a linux box with 2 ethernet cards configured on 2 different network.
This linuxbox forward IP between two cards.
All network members use have default gateway configured on one of these cards.
Could I tell to my linuxbox to let pass broadcast packet from lan1 to lan2?
I'd like allow my windows workstation on lan2 to log to domain controller on lan1!
It is possible?

Thank You
Ubi maior, minor cessat!
3 REPLIES 3
Roberto_30
Frequent Advisor

Re: broadcast between 2 lan cards

I think that is better use
LHhosts on your Windows workstation, or use WINS or Proxy Wins !

Ciao Roberto.

Admin32_1
New Member
Solution

Re: broadcast between 2 lan cards

Firstly, you MUST ensure your using Netbios over TCP/IP otherwise what your trying to do will NOT work. Netbeui is not routable, therefor you must use tcp/ip to encapsulate the netbios packet in order to have the packet routed to the other network.

Once you ensure you have the above set correctly, for the machines that are on the network which dosent have a domain controller go to the \winnt\system32\drivers\etc\lmhosts file (for NT\2000\XP) or c:\windows\lmhosts for Win95\98\me and create a entry similair to the following :

domaincrtl ipaddress

where "domaincrtl" is the name of your domain controller located on the other network and "|ipaddress" is its ip address.

You can then test this configuration by a simple "ping" , e.g ping domaincrtl and you should get a reply. Then, when searching for a domain controller, you simply specify its name and it will contact it.

This should work.
J._1
Advisor

Re: broadcast between 2 lan cards

Roberto's solution is much better for larger implementations, but if you're a small setup, then manually editing all your PC's lmhosts files would work just fine. I'd recommend less manual administration whenever possible (WINS).

There is a third option, configuring bridging between the two NIC's along with the routing so the Netbuei packets can traverse the Linux gateway... but then the question becomes why bother having the gateway at all?

J
The faster you run, the faster you're done.