Home › Forums › OS X Server and Client Discussion › Questions and Answers › Network issue with DHCP
- This topic has 7 replies, 4 voices, and was last updated 17 years, 9 months ago by
justyn.pride.
-
AuthorPosts
-
April 25, 2007 at 2:41 pm #368834
justyn.pride
ParticipantThe office I work in has 2 servers (one for each organisation in the office, and on different IP ranges – 192.168.168.x, subnet 255.255.0.0, and 192.168.167.0, subnet 255.255.0.0), we share a number of printers that have static IP address (192.168.168.x, on subnet 255.255.0.0.). Each organisations Laptops and Desktops access the network via their own Airport Extreme wireless network. DHCP is handled by each XServe.
Due to the desire to share printers, both networks are joined through a network hub. I have a problem in that I have no control over where each machine gets it’s IP & DNS info from. Does anyone have a suggestion, other than just not sharing printers, on how I can control the DHCP allocation
to the correct machines? Is this possible? Machines print directly to the printers and print sharing is not turned on on the servers.I hope someone can help as it is driving me made, as it interferes with my network clients logging into the network & their files.
Yours
Justyn
April 25, 2007 at 2:52 pm #368835deemery
ParticipantOne option would be to use IPNetRouter for DHCP. (This might be doable via the OS X Server, but I happen to know it can be done with IPNetRouter)
Each machine (laptop, printer, etc) has a unique MAC address, and you set up the DHCP servers so that it only works with known MAC addresses. Thus an arbitrary machine comes up with its MAC address identity, one DHCP server responds and grants that machine a known IP address and the other DHCP server ignores the request.
dave
April 25, 2007 at 3:21 pm #368836justyn.pride
ParticipantThat is very helpful. Do you knw if this is the same as Static Maps as in Server Admin / DHCP ?
April 26, 2007 at 5:14 pm #368851justyn.pride
ParticipantAm lacking in depth in knowledge on network stuff, but I hope this answer is what you were after. The two networks are connected by ethernet from one of the Extreme base stations into a, ethernet hub, that has the printers and the other network connected. I’m sure that this answer may not be what you are after?
April 27, 2007 at 8:27 am #368858-mcg-
Participantjustyn-
If the subnet mask you typed in your original post is in fact configured on your network as 255.255.0.0 (not 255.255.255.0), then in effect you have created one large LAN of 65535 addresses (a supernet, as opposed to a subnet). Essentially all address in the range of 192.168.0.1 – 192.168.255.254 are valid on each of your ‘subnets’. When you connect the two subnets together with a hub, you are creating one giant broadcast domain that overlaps which can lead to all kinds of odd problems and performance issues.
Not knowing how your network is designed, I can only offer a few ideas based on the info you’ve given thus far. Please take these options with a grain of salt as I might be barking up the wrong tree based on some assumptions I’m making…
Suggestions:
A — Fix the ‘supernet’ issue
– remove the hub
– give each subnet a mask of 255.255.255.0 thus cutting your LANs down to a more reasonable 254 usable addresses, i.e. 192.168.167.1 – 254 & 192.168.168.1 – 254
– now you’ve truly created two subnets…the problem is now you’ll need to route between the subnets for any communication to take placeB — Fix the routing issue
Options:
a) buy a cheap router (a multiport dsl/cable router would work) and configure it to pass traffic between subnets, then plug the two subnets in and try pinging to verify…you might be able to use your Airport Extreme for this by fixing the IP of the ethernet interface to one subnet while providing wireless connectivity to the other subnet…not sure though as I’ve never used an Airport station. The router will isolate DHCP requests to the subnet the requesting machine is physically/wirelessly connected to, so it should allow you to run a DHCP server per subnet as you currently do. Printing to the next subnet should be simple if the router IP for the respective subnet is used as the default gateway…if you already have a different default gateway, then you may need to fiddle with adding static routes. IIRC the Airport Extreme can provide DHCP services, so you might be able to offload this from the XServe if you so choose.b) pick one of the XServes and dual-home the network connections, i.e. connect one ethernet port to each subnet and IP the interfaces accordingly. Enable DHCP on this server and create two scopes, one for each subnet. Disable DHCP on the other server. This should provide for DHCP addresses to be served on the respective subnets. Configure print queues on the dual-homed XServe to be used as a print server for the common printers.
C — Ignore everything I’ve written and leave your network alone. Go to each DHCP server and create address ‘reservations’ for every device that will pull a dhcp address. In essence you will be tying an IP address to the MAC address (hardware address) of the network port on each client. This way your client systems will always pull the same IP from DHCP. You just have to remember to do this every time a new computer gets added to the network.
Hopefully that’s somewhat coherent…it’s a tad late as I’m writing this up!
April 30, 2007 at 3:24 pm #368876justyn.pride
ParticipantThanks for this. I went for option C and used static maps for my part of the network as it is currently more necessary for my machines to get the correct IP info.
July 19, 2007 at 3:37 pm #369567justyn.pride
ParticipantHave purchased a ethernet cable router, so that I can do option a). I have a few questions about how to set it up, as the questions are about items I’m not too clear on.Would the cables from both networks get plugged into the normal ethernet slots, or one in the internet port?
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed