-----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-----
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to