Networking Forums

Networking Forums > Computer Networking > Linux Networking > dhcp relay?

Reply
 
 
Nick
Guest
Posts: n/a

 
      01-14-2004, 05:44 PM
I have a cable modem/router which have a built-in dhcp server. I have a
route PC with multiple network cards connecting to the cable modem and
other PCs connect to the route PC.

How to let other PCs get the dhcp address from the cable modem?

Thanks.

 
Reply With Quote
 
 
 
 
peter pilsl
Guest
Posts: n/a

 
      01-14-2004, 08:06 PM
Nick wrote:

> I have a cable modem/router which have a built-in dhcp server. I have a
> route PC with multiple network cards connecting to the cable modem and
> other PCs connect to the route PC.
>
> How to let other PCs get the dhcp address from the cable modem?
>


I think you dont want that ! (If I'm wrong, I peg your pardon - then you
should google about dhcp relays or bridging)


each networkcard should represent one subnet. Otherwise your route-PC will
not know on which networkcard it should send a certain network-packet.

Your dhcp-server on the cable-modem only gives ip's for one subnet.

So what you want is maybe something like this:

A) the cable-modem and all your PC's are connected via a switch. Then all
PC's will get their adress inside one subnet from the cable-modem

B) each PC is in its own subnet and the route-PC masquerades the
connections. Then you could setup a dhcp-server on the route-PC or just
assign static adresses.

peter



--
peter pilsl
(E-Mail Removed)
http://www.goldfisch.at

 
Reply With Quote
 
Cameron Kerr
Guest
Posts: n/a

 
      01-14-2004, 10:46 PM
Nick <(E-Mail Removed)> wrote:
> I have a cable modem/router which have a built-in dhcp server. I have a
> route PC with multiple network cards connecting to the cable modem and
> other PCs connect to the route PC.
>
> How to let other PCs get the dhcp address from the cable modem?


Firstly, I would suggest disabling the DHCP on the modem, and moving it
to your Linux router. More control that way, and better flexibility.

If you really wanted DHCP to work across broadcast domains (across
routers), then you can install dhcp-relay on the Linux router. Under
Debian, you can use the dhcp3-relay package. Otherwise, it may come in
your dhcp server package.

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
 
Tech Support for IDE-CF
Guest
Posts: n/a

 
      01-15-2004, 12:49 AM
Nick <(E-Mail Removed)> wrote in message news:<bu42mq$dls$(E-Mail Removed)>...
> I have a cable modem/router which have a built-in dhcp server. I have a
> route PC with multiple network cards connecting to the cable modem and
> other PCs connect to the route PC.
>
> How to let other PCs get the dhcp address from the cable modem?


The network interface connecting to the cable modem should be running
dhcp client, for example: dhcpcd eth0 (assuming eth0 is to the cable
modem). The second interface should be running dhcp server, for
example: dhcpd -i eth1, serving a local subnet. Other PCs are then
dhcp clients to this local subnet.

see: http://ide-cf.info-for.us/firewall.html

>
> Thanks.

 
Reply With Quote
 
Nick
Guest
Posts: n/a

 
      01-15-2004, 03:16 AM
Looks the moderm dhcp server can issue an public Internet IP, that's why
I want to do relay...

Cameron Kerr wrote:
> Nick <(E-Mail Removed)> wrote:
>
>>I have a cable modem/router which have a built-in dhcp server. I have a
>>route PC with multiple network cards connecting to the cable modem and
>>other PCs connect to the route PC.
>>
>>How to let other PCs get the dhcp address from the cable modem?

>
>
> Firstly, I would suggest disabling the DHCP on the modem, and moving it
> to your Linux router. More control that way, and better flexibility.
>
> If you really wanted DHCP to work across broadcast domains (across
> routers), then you can install dhcp-relay on the Linux router. Under
> Debian, you can use the dhcp3-relay package. Otherwise, it may come in
> your dhcp server package.
>


 
Reply With Quote
 
Cameron Kerr
Guest
Posts: n/a

 
      01-15-2004, 05:06 AM
Nick <(E-Mail Removed)> wrote:
> Looks the moderm dhcp server can issue an public Internet IP, that's why
> I want to do relay...


That doesn't sound right. Do you have bridging turned on? Surely it
should be doing NAT, unless you intend to do NAT on the Linux router.

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not all DHCP options are going through DHCP relay JN Windows Networking 14 07-09-2009 10:15 PM
How DHCP decide which scope to give thourgh dhcp relay agent? cs Windows Networking 3 01-04-2007 03:48 AM
DHCP Relay and 2003 DHCP Server AndrewZirkel@gmail.com Windows Networking 12 11-08-2005 10:55 PM
DHCP Scopes with Cisco dhcp-relay Matthew Reath Linux Networking 1 08-18-2004 09:02 AM
DHCP Scopes with Cisco dhcp-relay Matthew Reath Linux Networking 0 08-18-2004 02:12 AM



1 2 3 4 5 6 7 8 9 10 11