How to Bring up Secondary VNICs in an Oracle Cloud Infrastructure(OCI) Oracle Linux 7 Instance — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

How to Bring up Secondary VNICs in an Oracle Cloud Infrastructure(OCI) Oracle Linux 7 Instance

edited Jun 30, 2022 1:56PM in Linux

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!