You have two Consul datacenters and you want to enable federation so services in dc1 can discover services in dc2. You run the consul join wan node2.example.com.
However, servers in dc1 can not communicate with servers in dc2 and vice versa. Based on the snippets of the server configuration files can be found below, why would
this be assuming network connectivity is working as expected?
dc1 configuration
1. "datacenter": "dc1",
2. "server": true,
3. "key_file": "/etc/consul.d/cert.key",
4. "cert_file": "/etc/consul.d/client.pem",
5. "ca_file": "/etc/consul.d/chain.pem",
6. "verify_incoming": true,
7. "verify_outgoing": true,
8. "verify_server_hostname": true,
9. "ui": true,
10. "encrypt": "XIUEktl3YjG9KPJfaBU1xE69IZ0XhsNCSH423FyknJE=",
11. "bootstrap_expect": 5,
12. "enable_syslog": true,
dc2 configuration
1. "datacenter": "dc2",
2. "server": true,
3. "key_file": "/etc/consul.d/cert.key",
4. "cert_file": "/etc/consul.d/client.pem",
5. "ca_file": "/etc/consul.d/chain.pem",
6. "verify_incoming": true,
7. "verify_outgoing": true,
8. "verify_server_hostname": true,
9. "ui": true,
10. "encrypt": "LSBSOZI5+9EX/kdY8u27mX50rk1ywcprfUCoSZjnpUg=",
11. "bootstrap_expect": 5,
12. "enable_syslog": false,