Network Management
How to change SolarWinds agent interface priority
This article provides a resolution to an issue that occurs when deploying an agent on a server with multiple NICs (or interfaces) and the SolarWinds agent does not use the expected IP address.
First published date
Last published date
Overview
This article provides a resolution to an issue that occurs when deploying an agent to a server with multiple Network Interface Cards (NICs) or interfaces and the SolarWinds agent does not use the expected interface IP Address. For example, the agent may detect the local IP address instead of the virtual IP address for a VPN tunnel.
Product section
Cause
Resolution
Here are some examples of PowerShell commands.
Step 1: Get interface details
To get the interface details, run the PowerShell command:
Get-NetIPInterface
Table of results:
IFINDEX | INTERFACEALIAS | ADDRESSFAMILY | NLMTU(BYTES) | INTERFACEMETRIC | DHCP | CONNECTIONSTATE | POLICYSTORE |
|---|---|---|---|---|---|---|---|
| 4 | blue | IPv4 | 1500 | 40 | Disabled | Disconnected | ActiveStore |
| 15 | Lan | IPv4 | 1400 | 50 | Disabled | Disconnected | ActiveStore |
| 10 | Wi-Fi | IPv4 | 1500 | 50 | Enabled | Disconnected | ActiveStore |
| 1 | Loopback 1 | IPv4 | 4294967295 | 50 | Disabled | Connected | ActiveStore |
Determine which interface to change the Interface Metric (or priority). In this example, we are changing the interface metric for Wi-Fi (or IfIndex of 10) and make this the prioritized interface.
Step 2: Change InterfaceMetric
Run the following command:
Set-NetIPInterface -InterfaceIndex 10 -InterfaceMetric 20
In this example, we are changing the InterfaceMetric to 20 for Wi-Fi interface (InterfaceIndex of 10) to ensure it is the lower number compared to the other interfaces.
Step 3: Confirm InterfaceMetric was changed
Get-NetIPInterface
Table of results:
IFINDEX | INTERFACEALIAS | ADDRESSFAMILY | NLMTU(BYTES) | INTERFACEMETRIC | DHCP | CONNECTIONSTATE | POLICYSTORE |
|---|---|---|---|---|---|---|---|
| 4 | blue | IPv4 | 1500 | 40 | Disabled | Disconnected | ActiveStore |
| 15 | Lan | IPv4 | 1400 | 50 | Disabled | Disconnected | ActiveStore |
| 10 | Wi-Fi | IPv4 | 1500 | 20 | Enabled | Disconnected | ActiveStore |
| 1 | Loopback 1 | IPv4 | 4294967295 | 50 | Disabled | Connected | ActiveStore |