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.
New to Linux but done alot of research...have the following problem
Using debain 5.0.4 with webmin 1.500 and dhcp3.
i have two subnets (192.168.1.0 & 192.168.2.0)at home.
The debain dhcp server has 1 NIC using eth0 and eth0:1 (virtual).
I have configured the dhcpd.conf file using webmin, with a shared network, given the two subents are on the same physical network. each subnet has a pool of about 20 addresses.
Problem is that when a host boots up which is under the 192.168.2.0 subnet (using its MAC add - no fixed ip assignment), it gets the associated DNS and gateway ip addresses for this subnet, however, the ip address is assigned from the 192.168.1.0 address pool.
I have checked the net extensivly finding all sorts of discussions and solutions. My problem occurs in the same manner irrespective of whether i connect a host direct to the dhcp server or via a (netgear) switch!
Please can someone advise on what settings i might be missing, or do i need to set up DNS/DDNS and/or a firewall/router before this works properly?
Thats what i understood as well, which is why i'm wondering other people must have a similar configuration. So how can ip requests for hosts tagged to the 192.168.2.0 subnet (as configured on the dhcp server using MAC) be recognised appropriately given i'm using the alias eth0:1 on the eth0 (subnet 192.168.1.0)? Is some kind of local port forwarding required or something (complete NooB!)
You can't. You should *NEVER* *EVER* use an alias with a different subnet. That's what vlans and "buying more nics" are for. when eth0:1 does a dhcp request, the request looks *EXACTLY* the same as from eth0, so no way to provide a different subnet. Additionally the server could not respond to it right even if it did look different, as it would only be listening on known valid local subnets without an additionall relay.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.