You can add a static route to the routing table when deploying API Connect on a VMware
virtual machine.
About this task
Add commands to your additional cloud-init
file. You can do this for the
Management, Analytics, and Portal subsystems.
Procedure
- Specify an additional cloud-init file:
apicup subsys set <subsys> additional-cloud-init-file <path-to-cloud-init-file>
-
Add lines to your cloud-init file.
Syntax:
bootcmd:
- ip route add <destination>/<mask> via <gateway> dev eth<n>
Example:
bootcmd:
- ip route add 172.27.218.0/24 via 172.27.218.1 dev eth1
- ip route add 172.26.203.0/24 via 172.27.218.1 dev eth1
- Regenerate the ISO file.
apicup subsys install <subsys> --out <plan-directory>
- Restart the ISO, and ensure that the node(s) have this updated ISO attached at
startup.