LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   DHCP Problum (https://www.linuxquestions.org/questions/linux-server-73/dhcp-problum-714029/)

mail2mphani 03-24-2009 05:41 AM

DHCP Problum
 
hi to all

i am using RHEL5

i have a small network of 200 system

so i want to setup dhcp server. with 2 sub nets

i server have 2 nics.

eth0 ip=192.168.147.10(for internet)
eth1 ip=192.168.10.254
eth1:1 ip=192.168.20.254

my configa ration file is like given below
Quote:

ddns-update-style interim;
ignore client-updates;

subnet 192.168.10.0 netmask 255.255.255.0 {

# --- default gateway
option routers 192.168.10.254;
option subnet-mask 255.255.255.0;

option domain-name "example.com";
option domain-name-servers 192.168.10.254;

option time-offset -18000; # Eastern Standard Time
# --- 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.10.120 192.168.10.140;
default-lease-time 21600;
max-lease-time 43200;
}
shared-network two-subnets{
option routers 192.168.10.254;
option subnet-mask 255.255.255.0;
option domain-name "example.com";
option domain-name-servers 192.168.10.254;
default-lease-time 21600;
max-lease-time 43200;
}
subnet 192.168.20.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.20.120 192.168.20.140;
}
i am not understanding what to do

plz help me....

grizly 03-24-2009 05:53 AM

I don't think you need the "dynamic-bootp" part..

http://www.centos.org/docs/5/html/De...ng-server.html

Also, after reading some docs to refresh my memory: http://www.redhat.com/docs/manuals/e...tml#DYNAMIC-IP

It's because you have separated the subnets from the shared-network block.

mail2mphani 03-24-2009 06:31 AM

is this
Quote:

eth1:1 ip=192.168.20.254
needed or not.
the system is also DNS and proxy server.

is it required virtual ip ? or want another lan card/

any on plz explain clearly.

if i use only one network it is (DHCP server) working fine.

how can i split the network

grizly 03-24-2009 07:32 PM

You should be able to run with as many virtual interfaces as you like mate, another of your problems is that your ranges are too small..

200 systems you said, why are you only allocating 20 IP's on each subnet?

Try something like this:

Quote:

ddns-update-style interim;
ignore client-updates;

shared-network two-subnets{

option subnet-mask 255.255.255.0;
option domain-name "example.com";
option domain-name-servers 192.168.10.254;
default-lease-time 21600;
max-lease-time 43200;

subnet 192.168.20.0 netmask 255.255.255.0 {
option routers 192.168.20.254;
range 192.168.20.120 192.168.20.240;
}

subnet 192.168.10.0 netmask 255.255.255.0 {
option routers 192.168.10.254;
range 192.168.10.120 192.168.10.240;
}

}
Did you read the docs?

The problem will be of course, that you will have 2 DHCP servers running on one physical network.. so which will the clients connect to?

If you had another nic, you could physically segment it to prevent this.

mail2mphani 03-25-2009 04:15 AM

thank u for given solution .

now dhcp server is runnig on virtual ips.

thank you


All times are GMT -5. The time now is 01:49 AM.