Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define two dummy Interfaces in the config #31

Open
dude0815 opened this issue Jun 21, 2023 · 1 comment
Open

Define two dummy Interfaces in the config #31

dude0815 opened this issue Jun 21, 2023 · 1 comment

Comments

@dude0815
Copy link

Hello,

Is it possible to define two dummy interfaces with anycast addresses in the anycast configuration. I only found examples with a single lo interface, but we use two dummy interfaces to announce bgp anycast addresses?

@corubba
Copy link
Contributor

corubba commented Dec 23, 2023

While it is only possible to define a single default interface in the DEFAULT section of the main config, you can still set a (different) interface per service check. Also note that the interface is only used if ip_check_disabled is false (which is the default).

[service1]
interface = lo
ip_prefix = 192.0.2.1/32
check_cmd = /bin/true

[service2]
interface = eth2
ip_prefix = 192.0.2.2/32
check_cmd = /bin/true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants