Date: Tue, 14 Dec 2004 08:33:45 UT From: "goose bla" <goosefreebsd@zoznam.sk> To: freebsd-questions@freebsd.org Subject: RE: DHCP and 2 subnets Message-ID: <200412140833.iBE8Xjt9076184@web7.zoznam.sk>
next in thread | raw e-mail | index | archive | help
no no,, i have only 1 interface for LAN. and it has two ip address. (inet+allias)(in real it has 5 alliases, but i need only two subnets for dhcp client pc. another alliases are for clients with static IP. ----- Original Message -----=20 From: "Mike Oliveri" <moliveri@gmail.com> To: "goose bla" <goosefreebsd@zoznam.sk> Cc: freebsd-questions@freebsd.org Sent: Sun, 12 Dec 2004 21:44:32 -0600 Subject: Re: DHCP and 2 subnets > I assume you have two different interfaces on the box, one for each > box? Judging by the router addresses, these would be 10.1.0.1 and > 10.2.0.1. If the hardware-reserved hosts are connected to the > appropriate interface, I would guess the second would be working. >=20 > Otherwise, can you put the host declarations in with the subnet > definitions? It's been a while since I've read through man dhcpd, so > you might want to take a look at it to be sure. >=20 > Take care, > Mike >=20 >=20 > On Sun, 12 Dec 2004 13:13:22 UT, goose bla <goosefreebsd@zoznam.sk> > wrote: > > hello, > >=20 > > 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. > >=20 > > this is running > >=20 > > 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 > > but i need somethink like this: > >=20 > > 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 > > 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 pc1 { > > hardware ethernet 00:33:11:22:bb:94; > > fixed-address 10.1.0.10; > > } > >=20 > > host pc2 { > > hardware ethernet 00:44:44:22:bb:94; > > fixed-address 10.2.0.10; > > } > >=20 > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412140833.iBE8Xjt9076184>