How To Change external IP address of Management Host?
Problem
- How to change external IP address of Management Host?
Environment
- Platform9 Edge Cloud - All Versions
Procedure
- Add a second interface (10.128.143.200) to the Deployment Host.
- Modify the
externalIP
field in the/opt/pf9/airctl/conf/airctl-config.yaml
configuration file with the new IP address of the management Plane.
externalIp: 10.128.143.200
- Make sure that the default route is reachable through the interface which has the new external IP assigned.
- Run configure-localhost which will update the iptables rule with the new management IP address.
sudo /opt/pf9/airctl/airctl configure-localhost --config /opt/pf9/airctl/conf/airctl-config.yaml
- Restart the
HAPROXY
daemon on the airctl host:
sudo pkill haproxy
- Run configure-hosts to update the hosts and re-establish connection with the management plane:
/opt/pf9/airctl/airctl configure-hosts --config=/opt/pf9/airctl/conf/airctl-config.yaml
- Remove the rules corresponding to old IP address:
x
$ sudo iptables -S -t nat
$ sudo iptables -t nat -D OUTPUT -d 10.128.145.101/32 -p tcp -m tcp --dport 443 -j DNAT --to-destination 10.128.145.101:8443
$ sudo iptables -t nat -D PREROUTING -d 10.128.145.101/32 -p tcp -m tcp --dport 443 -j DNAT --to-destination 10.128.145.101:8443
Was this page helpful?