dhcpd.conf

This is a discussion on dhcpd.conf within the Linux Networking forums, part of the Linux Forums category; how can I assign more than 1 ip to other computers. I want to assign ips that are in different ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-24-2005
Damir Galič
 
Posts: n/a
Default dhcpd.conf

how can I assign more than 1 ip to other computers. I want to assign ips
that are in different subnets for example: 10.38.111.111 and 192.168.0.11
dhcpd will choose only the one to which network is computer booting.


Reply With Quote
  #2 (permalink)  
Old 08-24-2005
James Knott
 
Posts: n/a
Default Re: dhcpd.conf

Damir Galič wrote:

> how can I assign more than 1 ip to other computers. I want to assign ips
> that are in different subnets for example: 10.38.111.111 and 192.168.0.11
> dhcpd will choose only the one to which network is computer booting.


????

You either assign an address to an interface or you use dhcp, not both.

As for adding more addresses to a NIC, you can use ifconfig.

Reply With Quote
  #3 (permalink)  
Old 08-25-2005
Damir Galič
 
Posts: n/a
Default Re: dhcpd.conf


"James Knott" <james.knott@rogers.com> wrote in message
news:NJGdncVO7aKMXpHeRVn-pA@rogers.com...
> Damir Gali wrote:
>
>> how can I assign more than 1 ip to other computers. I want to assign ips
>> that are in different subnets for example: 10.38.111.111 and 192.168.0.11
>> dhcpd will choose only the one to which network is computer booting.

>
> ????
>
> You either assign an address to an interface or you use dhcp, not both.
>
> As for adding more addresses to a NIC, you can use ifconfig.
>

no, I am talking about clients connecting to computer with linux. I am using
dhcpd to assign ips to those computers which use automatic settings. so is
it possible to assign more than 1 ip to 1 computer which is connecting to
the computer with linux?



Reply With Quote
  #4 (permalink)  
Old 08-25-2005
Llanzlan Klazmon
 
Posts: n/a
Default Re: dhcpd.conf

"Damir Galič" <damirg@email.si> wrote in news:4m3Pe.1703$cE1.243279
@news.siol.net:

> how can I assign more than 1 ip to other computers. I want to assign ips
> that are in different subnets for example: 10.38.111.111 and 192.168.0.11
> dhcpd will choose only the one to which network is computer booting.
>
>


I'm not sure I correctly understand what you are asking here but I assume
you are meaning that you plug your client PC's into either of the two LANs
and they will pick up an appropriate IP address?

That sounds like normal operation to me. You configure your DHCP server
with an address pool for each of the two subnets. Then when a client PC
boots it will broadcast a DHCP request. If the DHCP server is not on that
same physical network you need to have a device on the local lan that is
configured to act as a DHCP relay. If the device is a Cisco router you
configure the interface on the router with the "iphelper" specifying the ip
address of the DHCP server. If the device is a Linux box then you need to
set up DHCP relay. In either case the DHCP relay(or iphelper) tells the
DHCP server what subnet the original broadcast DHCP request came from and
therefore selects an address from the correct address pool. If the DHCP
server itself was on the same subnet that the client PC did its' broadcast
on, then the DHCP server knows which pool to use because it knows the
physical interface that it received the broadcast on.

Klazmon.




Reply With Quote
  #5 (permalink)  
Old 08-26-2005
Damir Galič
 
Posts: n/a
Default Re: dhcpd.conf

yes I was unclear. What I want is to assign more than one ip to one computer
by using dhcp (on my lan). Is that possible?


"Llanzlan Klazmon" <Klazmon@llurdiaxorb.govt> wrote in message
news:Xns96BE6EFDB9443Klazmonllurdiaxorbgo@203.97.3 7.6...
> "Damir Galič" <damirg@email.si> wrote in news:4m3Pe.1703$cE1.243279
> @news.siol.net:
>
>> how can I assign more than 1 ip to other computers. I want to assign ips
>> that are in different subnets for example: 10.38.111.111 and 192.168.0.11
>> dhcpd will choose only the one to which network is computer booting.
>>
>>

>
> I'm not sure I correctly understand what you are asking here but I assume
> you are meaning that you plug your client PC's into either of the two LANs
> and they will pick up an appropriate IP address?
>
> That sounds like normal operation to me. You configure your DHCP server
> with an address pool for each of the two subnets. Then when a client PC
> boots it will broadcast a DHCP request. If the DHCP server is not on that
> same physical network you need to have a device on the local lan that is
> configured to act as a DHCP relay. If the device is a Cisco router you
> configure the interface on the router with the "iphelper" specifying the
> ip
> address of the DHCP server. If the device is a Linux box then you need to
> set up DHCP relay. In either case the DHCP relay(or iphelper) tells the
> DHCP server what subnet the original broadcast DHCP request came from and
> therefore selects an address from the correct address pool. If the DHCP
> server itself was on the same subnet that the client PC did its' broadcast
> on, then the DHCP server knows which pool to use because it knows the
> physical interface that it received the broadcast on.
>
> Klazmon.
>
>
>
>



Reply With Quote
  #6 (permalink)  
Old 08-29-2005
Llanzlan Klazmon
 
Posts: n/a
Default Re: dhcpd.conf

"Damir Galič" <damirg@email.si> wrote in
news:_sKPe.1759$cE1.252046@news.siol.net:

> yes I was unclear. What I want is to assign more than one ip to one
> computer by using dhcp (on my lan). Is that possible?


I don't believe so. At least it would be one ip address per NIC. If you
want multiple ip addresses on the same interface, you would have to
manually configure them AFAIK.

Klazmon.



>
>
> "Llanzlan Klazmon" <Klazmon@llurdiaxorb.govt> wrote in message
> news:Xns96BE6EFDB9443Klazmonllurdiaxorbgo@203.97.3 7.6...
>> "Damir Galič" <damirg@email.si> wrote in news:4m3Pe.1703$cE1.243279
>> @news.siol.net:
>>
>>> how can I assign more than 1 ip to other computers. I want to assign
>>> ips that are in different subnets for example: 10.38.111.111 and
>>> 192.168.0.11 dhcpd will choose only the one to which network is
>>> computer booting.
>>>
>>>

>>
>> I'm not sure I correctly understand what you are asking here but I
>> assume you are meaning that you plug your client PC's into either of
>> the two LANs and they will pick up an appropriate IP address?
>>
>> That sounds like normal operation to me. You configure your DHCP server
>> with an address pool for each of the two subnets. Then when a client PC
>> boots it will broadcast a DHCP request. If the DHCP server is not on
>> that same physical network you need to have a device on the local lan
>> that is configured to act as a DHCP relay. If the device is a Cisco
>> router you configure the interface on the router with the "iphelper"
>> specifying the ip
>> address of the DHCP server. If the device is a Linux box then you need
>> to set up DHCP relay. In either case the DHCP relay(or iphelper) tells
>> the DHCP server what subnet the original broadcast DHCP request came
>> from and therefore selects an address from the correct address pool. If
>> the DHCP server itself was on the same subnet that the client PC did
>> its' broadcast on, then the DHCP server knows which pool to use because
>> it knows the physical interface that it received the broadcast on.
>>
>> Klazmon.
>>
>>
>>
>>

>
>
>


Reply With Quote
  #7 (permalink)  
Old 08-30-2005
James Knott
 
Posts: n/a
Default Re: dhcpd.conf

Damir Galič wrote:

>
> "James Knott" <james.knott@rogers.com> wrote in message
> news:NJGdncVO7aKMXpHeRVn-pA@rogers.com...
>> Damir Gali wrote:
>>
>>> how can I assign more than 1 ip to other computers. I want to assign ips
>>> that are in different subnets for example: 10.38.111.111 and
>>> 192.168.0.11 dhcpd will choose only the one to which network is computer
>>> booting.

>>
>> ????
>>
>> You either assign an address to an interface or you use dhcp, not both.
>>
>> As for adding more addresses to a NIC, you can use ifconfig.
>>

> no, I am talking about clients connecting to computer with linux. I am
> using dhcpd to assign ips to those computers which use automatic settings.
> so is it possible to assign more than 1 ip to 1 computer which is
> connecting to the computer with linux?


Think about this for a minute.

The DHCP server normally knows the client only by the MAC address.
The client requests an IP address and the server assigns one, to the
client's MAC.
Then the client asks for another, using the same MAC. What does the server
do, when it has already assigned an IP address to that MAC? How does it
know that a different address is required? Does it assume that the
previous offer was lost? How is the server to know what a client wants?


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 07:00 AM.


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