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

nodes with same subnet in cluster #345

Open
andypeng2015 opened this issue Jan 13, 2023 · 0 comments
Open

nodes with same subnet in cluster #345

andypeng2015 opened this issue Jan 13, 2023 · 0 comments

Comments

@andypeng2015
Copy link

andypeng2015 commented Jan 13, 2023

Hi,
Thanks for the great work on kilo. I added a new backend to work with VM instead of pod.

And I try to setup 2 nodes with same subnet 192.168.130/0/24 in one cluster, but I cannot ping VM behind the bridge, any suggestion? Thanks.

image

image

WireGuard subnet 192.168.2.0/24
Node subnet 192.168.130.0/24

# Node-X
# Private IP 192.168.130.2/32
# wireguard
[Interface]
ListenPort = 51820
PrivateKey = xxx

[Peer]
PublicKey = xxx
AllowedIPs = 192.168.130.5/32, 192.168.2.1/32, 192.168.130.15/32
Endpoint = 10.0.0.5:51820
PersistentKeepalive = 30
# ip route
default via 10.0.0.251 dev ens0 proto dhcp src 10.0.0.2 metric 101
10.0.0.0/24 dev ens0 proto kernel scope link src 10.0.0.2 metric 101
192.168.2.0/24 dev wg0 proto kernel scope link src 192.168.2.2
192.168.130.0/24 dev brq0 proto kernel scope link src 192.168.130.2
192.168.130.5 via 192.168.2.1 dev wg0 proto static onlink
192.168.130.15 via 192.168.2.1 dev wg0 proto static onlink


# Node-Y
# Private IP 192.168.130.5/32
# wireguard
[Interface]
ListenPort = 51820
PrivateKey = xxx

[Peer]
PublicKey = xxx
AllowedIPs = 192.168.130.2/32, 192.168.130.1/32, 192.168.2.2/32, 192.168.130.12/32, 192.168.130.20/32
Endpoint = 10.0.0.2:51820
PersistentKeepalive = 30
# ip route
default via 10.0.0.251 dev ens0 proto dhcp src 10.0.0.5 metric 101
10.0.0.0/24 dev ens0 proto kernel scope link src 10.0.0.5 metric 101
192.168.2.0/24 dev wg0 proto kernel scope link src 192.168.2.1
192.168.130.0/24 dev brq0 proto kernel scope link src 192.168.130.5
192.168.130.1 via 192.168.2.2 dev wg0 proto static onlink
192.168.130.2 via 192.168.2.2 dev wg0 proto static onlink
192.168.130.12 via 192.168.2.2 dev wg0 proto static onlink
192.168.130.20 via 192.168.2.2 dev wg0 proto static onlink

Thanks @squat

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

1 participant