My Oracle Support Banner

Shell Script to Determine which Network Interfaces have a Link Detected and their Respective Link's Speed (Doc ID 2094870.1)

Last updated on MAY 26, 2021

Applies to:

Linux OS - Version Enterprise Linux 4.0 and later
Oracle VM - Version 3.0.1 and later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64


 This document provides a sample script detecting which interfaces are configured on the system, and in them, which ones do have their links up and at which speed they are operating.

This sample code is provided for educational purposes only, and is not supported by Oracle Support. It has been tested internally, however, we do not guarantee that it will work for you. Ensure that you run it in your test environment before using.

 Note, that the reported speed within virtual machines may not be correct - See Document 2020437.1.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.