Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 859 Bytes

enable_ip_ip.rst

File metadata and controls

25 lines (17 loc) · 859 Bytes

Enable IP-in-IP Encapsulation

By default, Calico in MetalK8s is configured to use IP-in-IP encapsulation only for cross-subnet communication.

IP-in-IP is needed for any network which enforces source and destination fields of IP packets to correspond to the MAC address(es).

To configure IP-in-IP encapsulation for all communications, run the following command:

$ kubectl --kubeconfig /etc/kubernetes/admin.conf \
  patch ippool default-ipv4-ippool --type=merge \
  --patch '{"spec": {"ipipMode": "Always"}}'

For more information refer to IP-in-IP Calico configuration.