Thank you so much Ross, I will give it a try

Regards
________________________________
De: Russ Auld <russa...@comcast.net>
Enviado: quinta-feira, 9 de julho de 2020 10:22
Para: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Assunto: Re: [xcat-user] What is the right way to add new DHCP client to xCAT 
that is not a node nor a switch

If you have devices that obtain addresses via DHCP and would like to make those 
addresses static, one way to do it would be to add your own, manually-created 
leases to "/var/lib/dhcpd/dhcpd.leases"

You could either hand-edit the file (make sure that dhcpd is not running when 
you edit it), or use "omshell" (see man page) to add DHCP lease objects to the 
running dhcpd daemon process. Running 'makedhcp -n' will only update the dhcp 
configuration file in /etc, so the leases file should be safe. I would make a 
copy of the working configuration after you have it all setup correctly.

If you want xCAT to manage the leases you would need to have a separate network 
object (defines the subnet and dhcp range), then manually add the node objects 
using their MAC addresses and set the IP address on the node object. You would 
run 'makedhcp <node>' to make the leases in the lease file. Under the hood, 
xCAT just runs "omshell" to add the leases.

You could leave the node objects as basic as possible. You could also set the 
chain value to 'boot' to ensure that nothing funny happens with regard to 
discovery. You may have to experiment a little to get it just right.

Of course, the MN should have an address in each of the networks. Ensure that 
the 'dhcpinterfaces' field in the 'site' table has a valid interface name for 
each of the networks. Be sure to run 'makedhcp -n' after adding the network 
object and updating 'dhcpinterfaces'.




On 07/06/2020 10:10 AM Daniel Hilst via xCAT-user 
<xcat-user@lists.sourceforge.net> wrote:


Thanks Russ,

This surely helps to get devices in an isolated network but my question is, if 
I want to assign them specific IP addresses I still need to create node 
objects, and assign IP and mac addresses to this node objects right?

Regards

________________________________
De: Russ Auld <russa...@comcast.net>
Enviado: domingo, 5 de julho de 2020 11:42
Para: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Assunto: Re: [xcat-user] What is the right way to add new DHCP client to xCAT 
that is not a node nor a switch

xCAT will serve DHCP leases to the network segment used by your compute nodes. 
Check the man page for 'networks'. If you want the extra devices to be in a 
separate network segment, you can create another network xCAT object. You set 
the address range on the network object.
Then 'makedhcp' will rebuild the dhcp files will the correct address ranges.
On 06/23/2020 12:42 PM Daniel Hilst via xCAT-user 
<xcat-user@lists.sourceforge.net> wrote:


Hi,

I need to get some peripherals to get IP from DHCP that runs in the headnode. 
My guess is that I should not edit dhcpd.conf because it will be overwritten by 
`makedhcp -n`. I look at the node manual (man node) and see that there is no 
"other" option in nodetype attribute.

So how to add clients (I want they to have fixed address based on MAC) that are 
not nodes nor switches, to xCAT dhcpd?

Regards,
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to