LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-24-2009, 06:41 AM   #1
mail2mphani
Member
 
Registered: Jan 2009
Location: INDIA
Distribution: REDHAT
Posts: 64

Rep: Reputation: 16
Thumbs up 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....
 
Old 03-24-2009, 06:53 AM   #2
grizly
Member
 
Registered: Nov 2006
Location: Melbourne Australia
Distribution: Centos, RHEL, Debian, Ubuntu, Mint
Posts: 128

Rep: Reputation: 16
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.
 
Old 03-24-2009, 07:31 AM   #3
mail2mphani
Member
 
Registered: Jan 2009
Location: INDIA
Distribution: REDHAT
Posts: 64

Original Poster
Rep: Reputation: 16
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
 
Old 03-24-2009, 08:32 PM   #4
grizly
Member
 
Registered: Nov 2006
Location: Melbourne Australia
Distribution: Centos, RHEL, Debian, Ubuntu, Mint
Posts: 128

Rep: Reputation: 16
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.

Last edited by grizly; 03-24-2009 at 08:44 PM.
 
Old 03-25-2009, 05:15 AM   #5
mail2mphani
Member
 
Registered: Jan 2009
Location: INDIA
Distribution: REDHAT
Posts: 64

Original Poster
Rep: Reputation: 16
thank u for given solution .

now dhcp server is runnig on virtual ips.

thank you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problum while making raid BurhanKhan Red Hat 1 11-25-2007 09:39 PM
Problum Shutting Down Suse 10.1.. hep3005 Linux - Newbie 1 07-15-2006 07:26 PM
Suse 10.0 installation problum!!!!! hep3005 SUSE / openSUSE 1 04-11-2006 08:25 AM
problum with my wi-fi card VERY IMPORTANT syqher Linux - Laptop and Netbook 3 04-30-2004 02:11 AM
network problum with windows2000 prashu_bvp Linux - Networking 1 10-29-2002 11:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration