Linux - NetworkingThis 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.
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.
I'm a bit crossed on how routers handle broadcast traffic. As I am aware, routers will pass broadcast messages within a LAN but not the WAN. Is this correct? Or do routers not pass broadcasts at all, not even on their own subnet? Thanks for taking the time to help!
I'm a bit crossed on how routers handle broadcast traffic.
very simple: They don't. ;-)
Quote:
Originally Posted by RootMason
As I am aware, routers will pass broadcast messages within a LAN but not the WAN. Is this correct? Or do routers not pass broadcasts at all, not even on their own subnet?
To understand this, you should be aware that the boxes sold as "routers" on the consumer market are actually compound devices - a combination of a router, a switch, and very often additional components (like a WLAN access point, a VoIP gateway). A switch links several networking devices in one network, a router links two distinct networks together.
Let's consider a unit with four LAN ports, one WAN, and a WLAN access point. A block diagram of it would look like this:
Broadcast messages are distributed normally within the LAN (which often includes the WLAN) by the Switch component, as every regular switch would do. Broadcast messages are also forwarded to the Router component. However, the router ignores them by design; it's not a router's job to route broadcasts.
Picking up the above remark in parantheses: There are so-called routers that set up a separate network for WLAN, which requires an extra Router block between the switch and the AP. The "Fritz" boxes used to do that with some older firmware releases; recently, however, that feature was dismissed. :-(
It sure does, and thanks for going all out on the explanation! Much appreciated, buddy! If I might expand the idea a bit more (yes, you are now a victim of your own awesomeness), if I were to turn off DHCP on my router (Linksys EA4500) I could serve DHCP from a CentOS6 server (HP ProLiant ml310) to other devices on my network through the router? How about if the server only has one NIC? Would that also cause a problem?
If I might expand the idea a bit more (yes, you are now a victim of your own awesomeness), if I were to turn off DHCP on my router (Linksys EA4500) I could serve DHCP from a CentOS6 server (HP ProLiant ml310) to other devices on my network through the router?
that's exactly what I'm doing in my home office setup: The router/modem connecting me to the internet via DSL would also supply DHCP, but I chose to turn that function off and instead I'm running a small Linux-based server (currently Gentoo, but I'm on the verge of installing it anew using Debian as a basis). This little box has DHCP, a local DNS, a local mail server, Apache, Samba - the full story. The advantage is that using a Linux-based PC as a DHCP server (I'm running dnsmasq for that purpose), I have much more control of the DHCP process than using the router's built-in DHCP server.
Quote:
Originally Posted by RootMason
How about if the server only has one NIC? Would that also cause a problem?
None that I can imagine at the moment. A router should have two NICs - one for each network it connects. However, from a theoretical point of view, a router (in the strict sense of the word) with only one NIC is possible as well. The practical fitness of such a router would be limited, of course, because it's the equivalent of a post office with only one counter where incoming and outgoing mail gets mixed.
But a server that only offers local services? What would be the point of having two NICs?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.