Running a Cisco IOx App on a Cisco IE3x00 Series Switch
This document describes how to enable IOx, configure an IOx application, and run an IOx application on Cisco Industrial Ethernet 3x00 switches. In Cisco IOS-XE Release 17.2.1, application hosting supports docker containers.
An additional license is not required to run IOx on Cisco IE3400 and CiscoIE3400H Switches as IOx is included in the Network Essentials feature set.
- Cisco Industrial Ethernet 3400 Rugged Series (IE3400)
- Cisco Industrial Ethernet 3400 Heavy Duty Series (IE3400H)
- Cisco Industrial Ethernet 3300 Rugged Series (IE3300) with Hardware revision V06 and above.
Note: Use the “show inventory” CLI to find the H/W revision.
Before you begin, ensure that Cisco IOS-XE Release 17.2.1 is running on your switch. For more information about the Cisco IE3400 and Cisco IE3400H Switches, see the following documentation:
Cisco IE3300
https://www.cisco.com/c/en/us/support/switches/catalyst-ie3300-rugged-series/series.html
Cisco IE3400
https://www.cisco.com/c/en/us/support/switches/catalyst-ie3400-rugged-series/series.html#~tab-documents
Cisco IE3400H
https://www.cisco.com/c/en/us/support/switches/catalyst-ie3400-heavy-duty-series/series.html#~tab-documents
Platform |
CPU Architecture |
CPU (Units) |
Memory (MB) |
Storage (MB) |
IE-3300 |
ARM 64-bit |
1400 |
1248 |
3800 |
System Resources Available for IOx
For the system resources requirements, see the Platform Matrix on DevNet:
https://developer.cisco.com/docs/iox/#!platform-support-matrix/platform-support-matrix
An SD card must be formatted with the ext4 file system before you can enable Cisco IOx on the card. Note that a Cisco IE3400 and Cisco IE3400H Switch cannot boot from a card that is formatted with this file system.
Formatting an SD card permanently deletes any data that is on that card.
To format an SD card:
- Put the SD card in the card reader on the device.
- Enter the format sdflash: ext4 command to format the SD card with the ext4 file system. Leave the card in the drive when the operation completes.
Enabling Cisco IOx
IOx is disabled by default and needs to be enabled. During enablement, IOx copies a number of essential files to the SD card. Disable IOx before removing the card.
Use an SSH client to access the switch, and enter the following commands to enter terminal monitor mode and enable IOx:
Enter the following commands to verify that CAF, IOxman, Libvirtd, and Dockerd are in Running state:
Configuring the AppGigabitEthernet Interface
For network connectivity to IOx applications, Cisco IE3400 and Cisco IE3400H Switches provide an internal virtual switch interface called AppGigabitEthernet1/1. This interface connects to an internal Linux bridge to which the different IOx apps are connected. Apps can have one or more interfaces and be placed in any VLAN.
Note: Only L2 mode ("switchport") is supported for an AppGigabitEthernet1/1 interface.
Enter the following commands to configure the AppGigabitEthernet1/1interface as a trunk and to allow the VLANs that IOx apps require:
- conf t
- interface AppGigabitEthernet1/1
- switchport mode trunk
- switchport trunk allowed vlan 1-4
- end
Before you can install an IOx app on a device, you must configure the appid, VLANs, and the IP address for the app.
The appid parameter is string that you enter to identify the app.
You can configure one app with several interfaces (for example, one for management and one for monitoring).
- Network interfaces are represented as eth0, eth1… inside the app.
- Configurable app resources include CPU, Memory, VCPU(s), and persistent disk.
Here is an example of the configuration that is needed. In this example:
- appid is configured as iperf3.
- eth0 network interface is in vlan 1.
Installing and Starting an App
This section explains how to copy, install, activate, and start an app.
If changes are to be made to the IOx application (network, resources, and so forth), the IOx application needs to be stopped, deactivated, activated where changed will be made and then the IOx application can be started.
Follow these steps in terminal monitor mode:
Enter this command to copy the app package file to flash or sdflash, where file is the path and name of your app package:
IE3400# copy file.tar [flash|sdflash]:
Enter this command to install the app package, where appid is the ID that is assigned to the app:
IE3400# app-hosting install appid appid package [flash|sdflash]:file.tar
Enter this command to activate the app:
IE3400# app-hosting activate appid appid
When you see the message that the app is activated successfully, enter the following command to start the app:
IE3400# app-hosting start appid appid
Here is an example: