Replies: 1 comment 3 replies
-
You're right: making it "Anycast" (or "VIP" etc) will do the trick. Another option is to create a fake VRF, e.g. "migrated" or "shutdown", and put the old IP address in that VRF. Personally, I simply reassign the IP address from the old device interface directly to the new device interface, instead of creating a new one. This does lose the record that the address was assigned to the old device (except in ChangeLog); however I see Netbox more as a record of how the network is now rather than as a historical record. If an interface is intentionally shut down, I don't consider the address assigned there, even if there's stale config. In your use case, you are keeping the old address assigned (albeit with the interface shut down). So really you are assigning duplicate IP addresses. As you say, you could disable the uniqueness check, but that will allow lots of other errors that you don't want to allow. |
Beta Was this translation helpful? Give feedback.
-
Hi guys,
Can anyone give me a hint about how you deal with situation when the same IP exists on a multiple devices, please?
Generally speaking, an IP should be unique (per VRF or global).
But sometimes it happens that more than one device may have the same IPs configured - for example when a company is migrating from an old router to a new one.
In that case the old interface may be just shut but its whole config may be left intact.
At the same time a new device is installed and duplicated config (with duplicated IPs) is applied.
I hoped that making the "old" IP's status as "Reserved" or even "Deprecated" would let me create another "Active" IP but that did not work.
I am aware about two "workarounds" - A) make it "Anycast" or B) disabling IP uniqueness check in config would let me do that but it comes with significant "side effects" IMO.
Wondering how you tackle situations like that?
Cheers.
Beta Was this translation helpful? Give feedback.
All reactions