DHCP and 2 subnets
goose bla
goosefreebsd at zoznam.sk
Sun Dec 12 05:14:08 PST 2004
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.
this is running
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;
}
but i need somethink like this:
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;
}
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 pc1 {
hardware ethernet 00:33:11:22:bb:94;
fixed-address 10.1.0.10;
}
host pc2 {
hardware ethernet 00:44:44:22:bb:94;
fixed-address 10.2.0.10;
}
More information about the freebsd-questions
mailing list