dhcp relay?

This is a discussion on dhcp relay? within the Linux Networking forums, part of the Linux Forums category; I have a cable modem/router which have a built-in dhcp server. I have a route PC with multiple ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-14-2004
Nick
 
Posts: n/a
Default dhcp relay?

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
  #2 (permalink)  
Old 01-14-2004
peter pilsl
 
Posts: n/a
Default Re: dhcp relay?

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
pilsl_usenet@goldfisch.at
http://www.goldfisch.at

Reply With Quote
  #3 (permalink)  
Old 01-15-2004
Cameron Kerr
 
Posts: n/a
Default Re: dhcp relay?

Nick <nbdy9@hotmail.com.nospam> 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
cameron.kerr@paradise.net.nz : http://nzgeeks.org/cameron/
Empowered by Perl!
Reply With Quote
  #4 (permalink)  
Old 01-15-2004
Tech Support for IDE-CF
 
Posts: n/a
Default Re: dhcp relay?

Nick <nbdy9@hotmail.com.nospam> wrote in message news:<bu42mq$dls$1@news3.bu.edu>...
> 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
  #5 (permalink)  
Old 01-15-2004
Nick
 
Posts: n/a
Default Re: dhcp relay?

Looks the moderm dhcp server can issue an public Internet IP, that's why
I want to do relay...

Cameron Kerr wrote:
> Nick <nbdy9@hotmail.com.nospam> 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
  #6 (permalink)  
Old 01-15-2004
Cameron Kerr
 
Posts: n/a
Default Re: dhcp relay?

Nick <nbdy9@hotmail.com.nospam> 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
cameron.kerr@paradise.net.nz : http://nzgeeks.org/cameron/
Empowered by Perl!
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:00 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0