Date: Mon, 13 Dec 2004 08:03:57 +0100 (CET) From: Joerg Pulz <Joerg.Pulz@frm2.tum.de> To: goose bla <goosefreebsd@zoznam.sk> Cc: freebsd-questions@freebsd.org Subject: Re: DHCP and 2 subnets Message-ID: <20041213074945.M12124@hades.admin.frm2> In-Reply-To: <200412121313.iBCDDMfh071011@web7.zoznam.sk> References: <200412121313.iBCDDMfh071011@web7.zoznam.sk>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 12 Dec 2004, goose bla wrote: > hello, > > I have router with inet and allias. 10.1.0.0/24 10.2.0.0/24. > i want allot to pc(client) their IP by their MAC adress. but it's going > only with one subnet. i can allot IP only to one subnet. > > [stripped] Hi, don't know if i got you roght, but here are my thoughts. if you want to serve more than one ip network over one physical wire you have to define a shared network. here is an example. (remeber, host declarations have to be inside! the subnet they belong to) shared-network MYNETWORK { subnet 10.1.0.0 netmask 255.255.255.0 { range 10.1.0.31 10.1.0.60; default-lease-time 600; max-lease-time 7200; option subnet-mask 255.255.255.0; option domain-name "bla.org"; option domain-name-servers 222.222.222.22; option routers 10.1.0.1; host pc1 { hardware ethernet 00:33:11:22:bb:94; fixed-address 10.1.0.10; } } subnet2 10.2.0.0 netmask 255.255.255.0 { range 10.2.0.31 10.2.0.60; default-lease-time 600; max-lease-time 7200; option subnet-mask 255.255.255.0; option domain-name "bla.org"; option domain-name-servers 222.222.222.22; option routers 10.2.0.1; host pc2 { hardware ethernet 00:44:44:22:bb:94; fixed-address 10.2.0.10; } } } as far as i can tell, this setups work here for me. i don't know the exact behavior of dhcpd if you declare dynamic ranges in more than one ip subnet. i've only one dynamic range in one! subnet. regards Joerg - -- The beginning is the most important part of the work. -Plato -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBvT7fSPOsGF+KA+MRAntAAKCVOy85a1hGnjzJPPZZrBHEszQ+kACcCT7x d/2WSZOBLILhENRRV3BnJqc= =v6L+ -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041213074945.M12124>