how to execute multiple server(dhcpd) in a single machine using ISC dhcp-4.2.3

ameen.shajahan at wipro.com ameen.shajahan at wipro.com
Fri Dec 23 13:26:00 UTC 2011


Hi,
                I want to execute multiple server in a machine.
                I am using ISC dhcp-4.2.3 free source code.

                I am executing dhcpd executable in server side.
                So I am using ixp1 interface for this test.
                Since we cant able to run two executable in a single interface I have created one virtual interface like ixp1:1 . It was created also
                But my problem is while executing using virtual interface its throwing an error like Not configured to listen on any interface
                Actually I have added subnet declaration for ixp1:1
                But executing using ixp1 interface , there is no problem. It was executed smoothly.

                I want to know what would be the procedure for executing multiple server in a machine.

                Is there any procedure actually??

                I have added snapshots , please look into that.
                What would be the reason.
                I want to execute multiple server executable in a machine, what would be the procedur.


# ifconfig
ixp0      Link encap:EthernetHWaddr 00:60:43:80:41:92
inet addr:25.1.1.1  Bcast:25.255.255.255  Mask:255.0.0.0
inet6addr: fe80::260:43ff:fe80:4192/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4767 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3397 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:256
          RX bytes:451824 (441.2 KiB)  TX bytes:677416 (661.5 KiB)

ixp1      Link encap:EthernetHWaddr 00:60:43:80:41:93
inet addr:65.1.1.1  Bcast:65.255.255.255  Mask:255.0.0.0
inet6addr: fe80::260:43ff:fe80:4193/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1504  Metric:1
          RX packets:1251 errors:0 dropped:0 overruns:0 frame:0
          TX packets:590 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:256
          RX bytes:143248 (139.8 KiB)  TX bytes:205548 (200.7 KiB)

ixp1:1    Link encap:EthernetHWaddr 00:60:43:80:41:93
inet addr:75.1.1.1  Bcast:75.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1504  Metric:1

lo        Link encap:Local Loopback
inet addr:127.0.0.1  Mask:255.0.0.0
inet6addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:397 errors:0 dropped:0 overruns:0 frame:0
          TX packets:397 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
          RX bytes:29628 (28.9 KiB)  TX bytes:29628 (28.9 KiB)



..........................................................................................

# ./dhcpd -d -4 -cf /opt/v1/etc/dhcpd.conf ixp1:1                         its throwing an error for ixp1:1
Internet Systems Consortium DHCP Server 4.2.3
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 class decls to leases file.
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 1 leases to leases file.

No subnet declaration for ixp1:1 (no IPv4 addresses).
** Ignoring requests on ixp1:1.  If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface ixp1:1 is attached. **


Not configured to listen on any interfaces!

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server at isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
#


.............................................................................................

./dhcpd -d -4 -cf /opt/v1/etc/dhcpd.conf ixp1                              its running normallyfor ixp1
Internet Systems Consortium DHCP Server 4.2.3
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 class decls to leases file.
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 1 leases to leases file.
Listening on LPF/ixp1/00:60:43:80:41:93/65.1.1.0/24
Sending on   LPF/ixp1/00:60:43:80:41:93/65.1.1.0/24
Sending on   Socket/fallback/fallback-net






My changes in default conf file for different interfaces

subnet 25.1.1.0 netmask 255.255.255.0 {
   option routers 25.1.1.1;                                                 --------------> for ixp0
   range 25.1.1.2 25.1.1.10;
}


subnet 65.1.1.0 netmask 255.255.255.0 {
  option routers 65.1.1.1;
  range 65.1.1.2 65.1.1.10;                                                      --------------> for ixp1
 }



 subnet 75.1.1.0 netmask 255.255.255.0 {
  option routers 75.1.1.1;                                                          --------------> for ixp1:1
  range 75.1.1.2 75.1.1.10;
 }


Regards,
Ameen S




Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20111223/f70a4c0f/attachment.html>


More information about the dhcp-users mailing list