LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-13-2009, 04:36 PM   #1
stenlyto
LQ Newbie
 
Registered: Mar 2009
Posts: 13

Rep: Reputation: 0
How to configure this DHCP <-> Router <-> 2 networks


So what i have:

3 networks connected to a router. In the 1 network I have s Slackware DHCP server for the same network. Now I have to configure the DHCP server to give addresses to the other 2 networks and ofcourse to do that through the router

The router is a Cisco product with Cisco IOS

I now that I clould configure the router to do that for every of the networks or to move the DHCP server in the other networks, but my assignment is to configure the router to give addresses through the router.... Does anyone have an idea how am I supposed to do that ?

I am thinking of the idea to configure the 3 pools in the DHCP server and to make the router helper for that.... but I am not so sure that I could be so easy...
 
Old 07-13-2009, 04:51 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Yes, that's really quite simple, just define additional scopes on the dhcp server exactly as if they were locally connected, and then add an ip helper under IOS - "ip helper-address ip.of.dh.cp" under which interface you want to enable it on.
 
Old 07-13-2009, 08:49 PM   #3
Nille_kungen
Member
 
Registered: Jul 2005
Posts: 515

Rep: Reputation: 181Reputation: 181
I know that slackwarehelp.org has an guide for it.
But the firewall in the guide isn't too safe so you might want to make it more secure.
http://slackwarehelp.org/viewtopic.php?f=11&t=14
 
Old 07-14-2009, 05:04 PM   #4
exkor5000
Member
 
Registered: Nov 2003
Distribution: Slackware
Posts: 51

Rep: Reputation: 16
Quote:
add an ip helper under IOS - "ip helper-address ip.of.dh.cp" under which interface you want to enable it on.
not a good idea!

Take a look at what this command actually does:
http://www.cisco.com/en/US/docs/ios/...html#wp1169356
Why?
1. It's an interface command, but such configurations are generally put in global configuration. If you think about it, what if you have 20 networks, would you configure for 20 interfaces? what about 50?
2. This command will forward ALL broadcasts to this address and you don't want that really.

This is what you need to use:
http://www.cisco.com/en/US/docs/ios/...html#wp1168014

This is what I would do:
The configuration you are looking for is defining 3 VLANs each for each subnet.
The port that connects to the DHCP server will have 3 subinterfaces each with an address from each of the subnets. For instance you would have 10.0.1.0/24, 10.0.2.0/24 and 10.0.3.0/24 with fa0/4 (for example) going to the DHCP server.
Then fa0/4.1 will be 10.0.1.1/24, fa0/4.2 will be 10.0.2.1/24, and fa0/4.3 will be 10.0.3.1/24. fa0/4 goes to the DHCP server which also has subinterfaces defined for each of the subnets. Make sure all networks are in the routing table, that broadcast forwarding is allowed (or use the ip helper / ip dhcp-server commands) and you are good to go.
 
Old 07-15-2009, 10:54 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
It's perfectly fine idea thanks. I'd limit the helper ports to only forward 67, but as the OP does NOT have 50 interfaces, it's fine. And where did VLAN's come into the equation? You can't assume that there are tagging switches involved, and even if there are then that's nothing to do with DHCP in the slightest. and erm... my advice is apparently exactly the same as yours once you take away the bits that weren't asked about in the first place.

Last edited by acid_kewpie; 07-15-2009 at 10:58 AM.
 
  


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
DHCP Server with Multiple networks shahz Linux - Networking 22 03-18-2010 03:17 AM
Can't find /etc/networks or DHCP veeruk101 Red Hat 3 07-25-2007 01:06 PM
DHCP with Multiple Networks srikanthrao_d Linux - Networking 8 12-16-2005 04:23 AM
router box - unable to configure DHCP server BrianNJ Linux - Networking 1 06-09-2004 08:11 AM
dhcp server with multiple networks adamantium Linux - Networking 0 03-02-2004 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration