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

"netplan" rules to the "ip rule" #1

Open
kislik opened this issue Sep 18, 2020 · 0 comments
Open

"netplan" rules to the "ip rule" #1

kislik opened this issue Sep 18, 2020 · 0 comments

Comments

@kislik
Copy link

kislik commented Sep 18, 2020

Matthias, can you please covert the netplan rules to the debian ip command?
I tried to convert by myself but it does not work.

My initial hetzner and cluster data:

subnet assigned to the vSwitch: 168.168.168.104/29
internal network range for cluster internal communication: 192.168.100.0/24
the default service IP range: 10.96.0.0/12
the Pod IP range: 10.244.0.0/16

My routing table /etc/iproute2/rt_tables:

# cat /etc/iproute2/rt_tables
255     local
254     main
253     default
0       unspec
1       vswitch

The settings that I tried in the /etc/network/interfaces

# cat /etc/network/interfaces
auto enp0s31f6.4000
iface enp0s31f6.4000 inet static
  # UP PRIVATE NETWORK
  address 192.168.100.3
  netmask 255.255.255.0
  vlan-raw-device enp0s31f6
  mtu 1400

  up ip rule add from 168.168.168.104/29 to 10.96.0.0/12 lookup main
  up ip rule add from 168.168.168.104/29 to 10.244.0.0/16 lookup main
  up ip rule add from 168.168.168.104/29 lookup vswitch
  up ip rule add to 10.244.0.0/16 lookup vswitch

  up ip route add default via 168.168.168.105 dev enp0s31f6.4000 onlink table vswitch

Thanks!

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