*** From dhcp-server -- To unsubscribe, see the end of this message. ***

Hello

I have a subnet that contacts the dhcp server via dhcp-relay (in this case a
cisco router).
Let's assume the following router config:
eth :
        primary address = 192.168.1.1 (255.255.255.0)
        second.address = 192.168.2.1 (255.255.255.0)

All clients are on the same phisical segment, so thy can assume any IP on
both networks. All clients requests reach the dhcp server with the router's
ethernet primary IP address ( 'via 192.168.1.1' ).

I need to assign the two C classes to the clients (192.168.1.0 / 192.168.2.0
).

The problem is the Option Routers / broadcast-address .. how do I specify a
different router and broadcast-address for each subnet ?

This (obviously) doesn't work:

shared-network Whatever {
        subnet 192.168.1.0 netmask 255.255.255.0 {
                option broadcast-address 192.168.1.255;
                option routers 192.168.1.1;
                option netbios-node-type 8;
                option domain-name "whatever.pt";
                range 192.168.1.10 192.168.1.250;
                }

        subnet 192.168.1.0 netmask 255.255.255.0 {
                option broadcast-address 192.168.2.255;
                option routers 192.168.2.1;
                option netbios-node-type 8;
                option domain-name "whatever.pt";
                range 192.168.2.10 192.168.2.250;
                }
}

Dhcpd exits with :

Warning: subnet 192.168.1.0/24 conflicts with subnet 192.168.2.0/24
Address range 192.168.2.10 to 192.168.2.250 not on net
192.168.1.0/255.255.255.0!
Exiting

Any clues ?
TIA

 ---------------------------------------------------------------
 Paulo Pinto                |        __
 [EMAIL PROTECTED]              |       / /  (_)__  __ ____  __
 Corporate Communications   |      / /__/ / _ \/ // /\ \/ /  
 Network Facilities Planning|     /____/_/_//_/\___/ /_/\_\ 
 Novis - A Telecom da SONAE |  *THE CHOICE OF A GNU GENERATION*
 http://www.novis.pt        |
 ---------------------------------------------------------------
 Tel.: 351-22-9574943  Fax: 351-22-9574900
 Mobile: 93-4014716
 Rua Henrique Pous�o, 432
 CP 4461-901 Sra da Hora
 ---------------------------------------------------------------





-----------------------------------------------------------------------
List Archives : http://www.isc.org/ml-archives/dhcp-server/
Unsubscribe   : http://www.isc.org/dhcp-lists.html    
-or-          : mailto:[EMAIL PROTECTED]?Subject�subscribe  
-----------------------------------------------------------------------

Reply via email to