Example to explain how to assign an IP address to a device #2252

Closed
opened 2025-12-29 17:24:08 +01:00 by adam · 2 comments
Owner

Originally created by @lboue on GitHub (Dec 29, 2018).

Hello,

I didn't find how to assign an IP address to a device in the documentation:

It seems to be a basic feature. Could you add an exemple ?

Change Type

[X ] Addition
[ ] Correction
[ ] Deprecation
[ ] Cleanup (formatting, typos, etc.)

Proposed Changes

Could you add an exemple ?

Regards,
Ludovic

Originally created by @lboue on GitHub (Dec 29, 2018). Hello, I didn't find how to assign an IP address to a device in the documentation: - https://netbox.readthedocs.io/en/stable/core-functionality/ipam/ - https://netbox.readthedocs.io/en/stable/core-functionality/devices/ It seems to be a basic feature. Could you add an exemple ? ### Change Type [X ] Addition [ ] Correction [ ] Deprecation [ ] Cleanup (formatting, typos, etc.) ### Proposed Changes Could you add an exemple ? Regards, Ludovic
adam closed this issue 2025-12-29 17:24:08 +01:00
Author
Owner

@pzhivov commented on GitHub (Dec 29, 2018):

Hello,
As fas as I can see you cannot assign an IP address to a device interface. Instead, you add an IP address for an interface and define that address from an IP-prefix you created beforehand. Netbox creates that IP within the prefix, marks it as "existing" and assign it to the interface. I.e. the workflow is not IP -> device, but device -> IP.
On the other hand, it would be handy to have the workflow where I can go from an IP side and assign it to an interface I need.

Pavel

@pzhivov commented on GitHub (Dec 29, 2018): Hello, As fas as I can see you cannot assign an IP address to a device interface. Instead, you add an IP address for an interface and define that address from an IP-prefix you created beforehand. Netbox creates that IP within the prefix, marks it as "existing" and assign it to the interface. I.e. the workflow is not IP -> device, but device -> IP. On the other hand, it would be handy to have the workflow where I can go from an IP side and assign it to an interface I need. Pavel
Author
Owner

@DanSheps commented on GitHub (Dec 30, 2018):

@pzhivov is correct, you do not assign a device an ip, you assign an IP to a interface and mark that IP as the primary IP for the interfaces related device.

@DanSheps commented on GitHub (Dec 30, 2018): @pzhivov is correct, you do not assign a device an ip, you assign an IP to a interface and mark that IP as the primary IP for the interfaces related device.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2252