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

Last updated on JANUARY 12, 2016

Applies to:

Linux OS - Version Enterprise Linux 4.0 and later
Oracle VM - Version 3.0.1 and later
Linux x86-64

Goal

 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.

Solution

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms