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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
"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? |
|
|||
|
"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. |
|
|||
|
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. > > > > |
|
|||
|
"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. >> >> >> >> > > > |
|
|||
|
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? |