Hey,
I am setting up dhcpd to hand out addresses on one interface eth1 that I
would like to have multiple subnets. For each subnet I have created
virtual device for each subnet's gateway ie:
eth1 Link encap:Ethernet HWaddr 00:A0:CC:64:D4:09
inet addr:192.168.4.1 Bcast:192.168.4.255 Mask:255.255.255.0
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:1564 errors:0 dropped:0 overruns:0 frame:0
TX packets:177 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:5 Base address:0xa400
eth1:1 Link encap:Ethernet HWaddr 00:A0:CC:64:D4:09
inet addr:192.168.5.1 Bcast:192.168.5.255 Mask:255.255.255.0
UP BROADCAST RUNNING MTU:1500 Metric:1
Interrupt:5 Base address:0xa400
eth1:2 Link encap:Ethernet HWaddr 00:A0:CC:64:D4:09
inet addr:192.168.6.1 Bcast:192.168.6.255 Mask:255.255.255.0
UP BROADCAST RUNNING MTU:1500 Metric:1
Interrupt:5 Base address:0xa400
#/etc/dhcpd.conf to support multiple subnets on one device
default-lease-time 600;
max-lease-time 7200;
option domain-name-servers 192.168.1.100;
option domain-name "test.lan";
option subnet-mask 255.255.255.0;
subnet 192.168.4.0 netmask 255.255.255.0 {
range 192.168.4.10;
range 192.168.4.111;
option broadcast-address 192.168.4.255;
option routers 192.168.4.1 ;
}
subnet 192.168.5.0 netmask 255.255.255.0{
range 192.168.5.10 192.168.5.100;
range 192.168.5.150 192.168.5.200;
option broadcast-address 192.168.5.255;
option routers 192.168.5.1 ;
}
subnet 192.168.6.0 netmask 255.255.255.0{
range 192.168.6.10 192.168.6.100;
range 192.168.6.150 192.168.6.200;
option broadcast-address 192.168.6.255;
option routers 192.168.6.1 ;
}
#/etc/dhcpd.conf
when I start dhcpd I get the error:
[root@allan 13:47:35 /etc]# /usr/sbin/dhcpd eth1 eth1:1 eth1:2
No subnet declaration for eth1:1 (0.0.0.0).
Please write a subnet declaration for the network segment to
which interface eth1:1 is attached.
exiting.
If I start dhcpd with just eth1 as a parameter it will only use the first
subnet entry in dhcpd.conf which happens to be the 192.168.4.0.
any suggestions would be great.
Thanks Al
-- ------------------------------------------------------------------ Allan McIntosh, Software Technologist Atreus Systems Corp, http://www.atreuscorp.com Phone: (613) 233-1741 ext 217 Fax: (613) 233-8204 ------------------------------------------------------------------- To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org
This archive was generated by hypermail 2b29 : Fri Sep 15 2000 - 21:00:29 EST