I have been scratching my head about this all day. Basically, I have several servers on a private network, each with a private IPv6 address assigned and a public IPv4 and IPv6 assigned. I want the servers to only communicate with each other using their private IPv6 addresses.
I have set up the IP addresses using Netplan, but am now trying to set up the routes so that if Server A is trying to communicate with Server B it does so via Server A's private IPv6 not through any other IP assigned to the server.
This is my Netplan configuration file so far (I've XXX'd out parts of the IP addresses for security):
network: version: 2 renderer: networkd ethernets: eth0: dhcp4: no dhcp6: no addresses: - 139.XXX.XXX.132/24 - "2a01:XXXX::XXXX:XXXX:XXXX:0f9c/64" gateway4: 139.XXX.XXX.1 gateway6: "fe80::1" routes: - to: "2a01:XXXX:e000:01e6:1111:1111:1111:1111/64" via: "2a01:XXXX:e000:01e5:1111:1111:1111:1111/64" on-link: true - to: "2a01:XXXX:e000:01e7:1111:1111:1111:1111/64" via: "2a01:XXXX:e000:01e5:1111:1111:1111:1111/64" on-link: true - to: "2a01:XXXX:e000:01e8:1111:1111:1111:1111/64" via: "2a01:XXXX:e000:01e5:1111:1111:1111:1111/64" on-link: true nameservers: addresses: [22.214.171.124, 126.96.36.199]
The problem that I have is that the routes are not showing when I do the command
ip route list or
ip -6 route show.
Any help would be greatly appreciated. I'm fairly new to networking and Netplan and I'm struggling with the official documentation.