dhcp problem

i want to discuss one issue over here

in my org we have 245 pc computers assign ip address through our dhcp server, using 192.168.1.0 network address, our gateway server is 192.168.1.100 , my question is that near future if the number of nodes ll increase to 280 then i have to split our network in another subnet, like 192.168.2.0 , my question is that how i configure my dhcp server under linux for that, and one morething shold i install another lan card for that in my server? evertying is running under red hat linux.
LVL 5
ranadastidarAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kfullartonCommented:
In order to have dhcp work for the second subnet, you could do the following:

modify /etc/dhcpd.conf to reflect an expanded network.  On the subnet line, change it from 192.168.1.0 255.255.255.0 to 192.168.0.0 255.255.252.0.  You could also make the mask 255.255.0.0, it's up to you.  You won't need to add another card if you expand the range.  Under the range dynamic-bootp section, specify your ranges.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ravenplCommented:
First of all you may increase the IP space from 256 to 512, so all computers are still in same logical network. In such case You don't need buy anything.
Just instead /255.255.255.0 You may want use 192.168.1.100/255.255.128.0 which gives You IP space 192.168.0.0 - 192.168.1.255.

> my question is that how i configure my dhcp server under linux for that
Just add second subnet in dhcpd.conf and add to second IP on the gateway(the dhcp server itself) = 192.168.2.100
Alterantive: extend the existing subnet to wider netmask.

> and one morething shold i install another lan card for that in my server
No such need if all computers may exist in same phisical LAN. If You want separate them (therefore Your box become firewall and router) then buy new netcard. In this case each netcard should be plugged into different net switch, and those switches should be separated.
ranadastidarAuthor Commented:
On the subnet line, change it from 192.168.1.0 255.255.255.0 to 192.168.0.0 255.255.252.0.  You could also make the mask 255.255.0.0, it's up to you


what is the difference betwwen 255.255.0.0 and 255.255.252.0 ?


at present our ip address like 192.168.1.1 to 192.168.1.255

now if i change to 192.168.0.0 then what ll be the ip range?

some thing like 192.168.0.1 to 192.168.0.512  ?
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

ravenplCommented:
First of all - You right I'm wrong (i told You to change to 255.255.128.0 - which in fact gives You 256*128 addresses)

> what is the difference betwwen 255.255.0.0 and 255.255.252.0 ?
For netmask. First definies network which has 65536=256*256 hosts (different IPs), the second(widely used) definies network with 256 hosts(IPs) only.

> now if i change to 192.168.0.0 then what ll be the ip range?
You mean to: 255.255.0.0

> some thing like 192.168.0.1 to 192.168.0.512  ?
No. from 192.168.0.0 to 192.168.255.255 which ives 64K addresses

http://www.ceenet.org/workshops99/George_Macri/1day/labs/Netmask_Table.htm
http://en.wikipedia.org/wiki/Subnetwork
kfullartonCommented:
If you had a reason to conserver addresses, which you probably don't you could use the 252 mask.  In order for dhcp to advertise a particular range, the NICs IP needs to fall within the subnet.  192.168.2.0 does not fall within the 192.168.1.0/24 range, but ti does fall within the 192.168.0.0/16 range.
nedvisCommented:
You might wish to go "routing-to-subnet"  way.
here's and example: http://linuxgazette.net/issue51/tag/5.html 
nedvisCommented:
Setting up a Linux Router:
http://www.comptechdoc.org/os/linux/usersguide/linux_ugrouting.html
IP forwarding in IPv6:
http://staff.csc.fi/psavola/ipv6/rhl71/ipv6.html#forwarding
 Using Linux iptables or ipchains to set up an internet gateway / firewall / router for home or office:
 http://yolinux.com/TUTORIALS/LinuxTutorialIptablesNetworkGateway.html
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.