Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Dec 2004 11:57:02 UT
From:      "goose bla" <goosefreebsd@zoznam.sk>
To:        "Joerg Pulz" <Joerg.Pulz@frm2.tum.de>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: DHCP and 2 subnets
Message-ID:  <200412141157.iBEBv2Np005931@web7.zoznam.sk>

next in thread | raw e-mail | index | archive | help

GREAT,=20

it's running for me OK.

Thanks very much..=20

best regards=20
goose



----- Original Message -----=20
From:    "Joerg Pulz" <Joerg.Pulz@frm2.tum.de>
To:      "goose bla" <goosefreebsd@zoznam.sk>
Cc:      freebsd-questions@freebsd.org
Sent:    Mon, 13 Dec 2004 08:03:57 +0100 (CET)
Subject: Re: DHCP and 2 subnets

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>=20
> On Sun, 12 Dec 2004, goose bla wrote:
>=20
> > 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
>=20
> > only with one subnet. i can allot IP only to one subnet.
> >
> > [stripped]
>=20
> Hi,
>=20
> 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=
=20
>=20
> have to define a shared network.
> here is an example. (remeber, host declarations have to be inside! the=20
> subnet they belong to)
>=20
> 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;
>=20
>		  host pc1 {
>			  hardware ethernet 00:33:11:22:bb:94;
>			  fixed-address 10.1.0.10;
>		  }
>	  }
>=20
>	  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;
>=20
>		  host pc2 {
>			  hardware ethernet 00:44:44:22:bb:94;
>			  fixed-address 10.2.0.10;
>		  }
>	  }
> }
>=20
> as far as i can tell, this setups work here for me. i don't know the
> exact=20
> behavior of dhcpd if you declare dynamic ranges in more than one ip=20
> subnet. i've only one dynamic range in one! subnet.
>=20
> regards
> Joerg
>=20
> - --=20
> The beginning is the most important part of the work.
>				  -Plato
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.6 (FreeBSD)
>=20
> iD8DBQFBvT7fSPOsGF+KA+MRAntAAKCVOy85a1hGnjzJPPZZrBHEszQ+kACcCT7x
> d/2WSZOBLILhENRRV3BnJqc=3D
> =3Dv6L+
> -----END PGP SIGNATURE-----



--- reklama -----------------------------------------------------
Viete, =C4=8Do V=C3=A1s dnes =C4=8Dak=C3=A1? Pozrite si Horoskop.
http://horoskop.zoznam.sk



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412141157.iBEBv2Np005931>