How to Bring up Secondary VNICs in an Oracle Cloud Infrastructure(OCI) Oracle Linux 7 Instance
How to add a secondary VNIC that is persistent through reboots in OL7 using systemd Unit File
1. Use the OCI Web Console to create and attach a secondary VNIC, see:
https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm
2. Create a directory and download the secondary_vnic_all_configure.sh script:
# mkdir /opt/secondary_vnic
# cd /opt/secondary_vnic
# wget https://docs.cloud.oracle.com/iaas/Content/Resources/Assets/secondary_vnic_all_configure.sh
# chmod u+x secondary_vnic_all_configure.sh
3. Create the Unit File:
# vi /etc/systemd/system/secondary_vnic_all_configure.service
## Paste the below lines into the file.
Tagged:
1