Hi,
I have added 3 networks on single nic card. And it works for me.
[root@map007~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1C:C0:9E:58:94
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21c:c0ff:fe9e:5894/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:207456 errors:0 dropped:0 overruns:0 frame:0
TX packets:153054 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:70309118 (67.0 MiB) TX bytes:21958886 (20.9 MiB)
eth0:1 Link encap:Ethernet HWaddr 00:1C:C0:9E:58:94
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth0:2 Link encap:Ethernet HWaddr 00:1C:C0:9E:58:94
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[root@map007~]# yum install dhcp
Open your dhcpd.conf file, you need to edit this file depending on your network.
This is my dhcpd.conf file :-
ddns-update-style interim;
ignore client-updates;
shared-network mynetwork{
subnet 192.168.0.1 netmask 255.255.255.0 {
# — default gateway
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option nis-domain “example.com”;
option domain-name “example.com”;
option domain-name-servers 192.168.0.1;
option time-offset -18000; # Eastern Standard Time
option ntp-servers 192.168.0.5;
# option netbios-name-servers 192.168.1.1;
# — Selects point-to-point node (default is hybrid). Don’t change this unless
# — you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.0.10 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host ntpserver {
hardware ethernet 00:27:0E:2C:23:5B;
fixed-address 192.168.0.5;
}
}
subnet 192.168.1.0 netmask 255.255.255.0 {
# — default gateway
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option nis-domain “example.com”;
option domain-name “example.com”;
option domain-name-servers 192.168.1.1;
option time-offset -18000; # Eastern Standard Time
option ntp-servers 192.168.0.5;
# option netbios-name-servers 192.168.1.1;
# — Selects point-to-point node (default is hybrid). Don’t change this unless
# — you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.1.10 192.168.1.250;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
}
subnet 192.168.2.0 netmask 255.255.255.0 {
# — default gateway
option routers 192.168.2.1;
option subnet-mask 255.255.255.0;
option nis-domain “example.com”;
option domain-name “example.com”;
option domain-name-servers 192.168.2.1;
option time-offset -18000; # Eastern Standard Time
option ntp-servers 192.168.0.5;
# option netbios-name-servers 192.168.1.1;
# — Selects point-to-point node (default is hybrid). Don’t change this unless
# — you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.2.10 192.168.2.250;
default-lease-time 21600;
max-lease-time 43200;
min-secs 5;
}
}
I just added the below line in dhcpd.conf file and multiple scoops on single nic card working great for me.
shared-network mynetwork {
Now start your dhcp server.
[root@map007~]# service dhcpd start
[root@map007~]# chkconfig dhcpd on
==========================================================================================
Enjoy Linux !!!












