To prepare a network device, all configurations must be completely erased from the device, which is then entered in the Cisco Network Plug and Play Solution (PnP) that provisions them for use with Cisco IoT OD. PnP also provides the device with the required security certificates and redirects it to Cisco IoT OD so it can be added to your organization's account.
Summary steps (existing devices)
After the existing network device is prepared, you can add the devices to Cisco IoT OD and complete the network configuration.
Existing device prerequisites
Create a Cisco Smart Account
A Cisco Smart Account is required to prepare your network device.
IMPORTANT Any existing configurations on an existing device must be removed before you add the device to the network. If any previous configuration exists on the device, provisioning will fail.
Enter the following command on your IR1101 or IR18xx series device. This will erase the configuration and reload the device:
#pnp service reset
Delete all IOS images in the flash except the current IOS image. To view the currently running IOS image:
#show version | include image
System image file is "flash:ir800-universalk9-mz.SPA.159-3.M2a
2. Remove the startup-configuration using the following commands:
#erase nvram: #reload
3. Remove or rename any files in the flash that have the .cfg extension.
4. Reboot the network device without saving the configuration. Do not save config when asked.
IMPORTANT: After the device reloads, DO NOT type anything on the console until it says PNP_DISCOVERY_DONE.
Add your network devices to Plug and Play (PnP) Connect
Supported network devices added to PnP will be provisioned using the connection details in the selected Controller Profile you just created. Once added, you can add the devices to your organization's IoT OD account.
Select your Cisco Smart Account or Virtual Smart Account (top right).
Click the Devices tab, then click Add Devices.
Accept the agreement if prompted.
Under Identify Source, select Enter device info manually and click Next.
Click Identify Device.
Enter the following information:
Serial number—The network device that will be added to Cisco IoT OD. For example: FTX2007800NNote: The Serial Number and Base PID are located on the back of the device.
Base PID—Enter the PID for your device, such as IR1101-K9 or IR18xx-K9.
Controller Profile—Select the profile you just created.
Enter an optional description and click Next.
The devices are added to your profile and will appear in the Pending Redirection state.
Background: The PnP process
The following illustration shows what happens when you use PnP to provision a network device so it can be claimed by Cisco IoT OD.
Note: Most of these steps occur in the background. Your task is to obtain the network device for the right Smart Account, connect it to the network, and claim it using Cisco IoT OD.
How to use a USB stick to bootstrap an IR1101 or IR1800 network device
If you power up a device and you don't get an IP address and the PnP process does not start, you can still pre-stage the network device using the USB port. Here are some scenarios where pre-staging the network device is necessary:
Cellular interface that requires an APN to be configured
MPLS tags for Gigabit uplinks
dot1q encapsulation and VLANs
static IP address in absence of DHCP server
While all those operations can be done on the console, for the Cisco IOS-XE on a Cisco IR1101 or IR18xx series network device, you can preconfigure using just a USB stick. When the network device boots without any configuration, it loads the configuration on the USB stick. This option will not load a full configuration, but enough to get the device internet access and start the PnP discovery process, while the rest of the configuration will be pushed by Cisco IoT Operations Dashboard later.
If there is no startup configuration, Cisco IOS-XE on the Cisco IR1101 will look for a file in the FAT-formatted USB stick called “ciscortr.cfg”. Here is a sample configuration that can be customized for your specific needs. It configures a specific APN, configures a dialer on Cellular 0/1/0, sets the default route, and configures a PnP profile.
Copy this file on a USB stick formatted in FAT. Save this file with name "ciscortr.cfg" on the root directory.
Here is an example you can adjust for your specific needs. For instance, use "m2m.tele2.com" in place of your company's APN cellular provider name. Use the same concept to configure a static IP address, or any other pre-staging before PnP starts.
! This file should be on a USB stick formatted in FAT
! Save this file with name "ciscortr.cfg" on the root directory
controller cellular 0/1/0
profile id 1 apn m2m.tele2.com
int cellular 0/1/0
ip address negotiated
dialer idle-timeout 0
access-list 1 permit any
dialer-list 1 protocol ip permit
dialer-list 1 protocol ipv6 permit
dialer watch-list 1 ip 18.104.22.168 255.255.255.255
dialer watch-list 1 delay route-check initial 60
dialer watch-list 1 delay connect 1
ip route 0.0.0.0 0.0.0.0 cellular 0/1/0
ipv6 route ::/0 Cellular0/1/0
pnp profile pnp_cco_profile
transport https host devicehelper.cisco.com port 443
do-exec write memory
Insert the stick in any IR1101 or IR18xx series device and boot. If this network device has no configuration, it will boot using this configuration file.