Replies: 5 comments 12 replies
-
In a typical FHRP group setup with two routers providing a gateway VIP to a common segment, there are three IP addresses involved. Using 192.0.2.0/24 as an example, this might be:
All three of these IPs should belong to the same VRF (or to the global table). If you have multiple VRFs, just replicate this setup for each VRF. Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
I think the way it works is that if you were templating the config for router A interface 1 (/dcim/interfaces/12345/) you'd see the related IPs 192.0.2.1 and 192.0.2.2 but not 192.0.2.3 which is on router B, router B interface 1 (/dcim/interfaces/23456/) would be related to 192.0.2.1 and 192.0.2.3, from the IP record you can see that one is assigned to a group/cluster/HA and the other directly assigned to a device/interface.
* 192.0.2.1 - Assigned to FHRP group
* 192.0.2.2 - Assigned to router A interface 1
* 192.0.2.3 - Assigned to router B interface 1
netbox automatically creates an L3 VLAN interface on the mapped device if it doesn't exist already.
This kind of logic would be better in a Custom Script which can be coded for your particular kind of device and rules about how it should work, there is nothing built-in Netbox which is going to create an Interface database record automatically, those are either created from the Device Type/Module Type templates (with some ability to template a slot number/stack number into the interface name), manually through the UI or using a Script or API client.
If you wanted to make a Script where you could pick a Prefix and two Devices and have it auto-allocate the IPs, create the FHRP group, create the Interfaces and associate them all together then that could solve the problem the way you want.
—
Mark Tinberg ***@***.***>
Division of Information Technology-Network Services
University of Wisconsin-Madison
…________________________________
From: dasfliege ***@***.***>
Sent: Thursday, February 2, 2023 3:52 PM
To: netbox-community/netbox ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [netbox-community/netbox] Bind FHRP IP to a device (Discussion #11649)
Yeah exactly. But in your example and in my logic, 192.0.2.2 and 192.0.2.3 should be mappable to the FHRP as well which is not possible. If i open a FHRP group it would be nice to not only see the VRRP IP but also all the devices with their dedicated router IPs that are participating in this particular VRRP group.
If i map the router IPs to a manually created VLAN interface on each switch, i see the device as "Member" in the FHRP details page, but it is not showing the IP, which would be a useful information.
I hoped it would work like this:
I create a FHRP group
I create a VRRP IP for that group
I create all the IPs for every participating device/router as role"router" or something, define the priority and map those to a specific device
netbox automatically creates an L3 VLAN interface on the mapped device if it doesn't exist already.
That would be quite handy :-)
—
Reply to this email directly, view it on GitHub<#11649 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAS7UM5UUSFWRUYK4PEBPQ3WVQUBRANCNFSM6AAAAAAUPLIYDE>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hello guys, |
Beta Was this translation helpful? Give feedback.
-
Hello @candlerb, |
Beta Was this translation helpful? Give feedback.
-
I am evaluating network documentation tools for my company and i am pretty pleased with what netbox has to offer so far.
But i am stuck a little bit with trying to get all our information represented correctly. Especially with FHRP.
On a network with two sites and full redundancy, we usually have one VRF for each segment. Each VRF contains three VLAN's/Prefixes. One for devices in site A, one for devices in site B and one for the Transit to the router/firewall. All those VRF are present on the switches in site A and in site B. Each switch hosts a dedicated IP for each VLAN, while they share a common VRRP IP.
So my problem is: While it's super easy to create FHRP groups and adding all the IPs involved, i am not able to map some of the IPs to specific devices. An IP can only be mapped to either an FHRP group OR a device, but no to both. But in every VRRP, there are IPs bound to each participating device.
What am i overseeing?
Beta Was this translation helpful? Give feedback.
All reactions