This simple tool gets your IOx app networking configuration automatically on your IOS XE device. You don't need to configure anything in the CLI!
As a developer, you usually don't know how to configure IOS network settings. And that's okay! Especially, when you want to deploy your IOx application on your Cisco network device you need some CLI commands in order to access your container.
The good news is that this script takes care exactly of that: Via a simple JSON file you insert your desired configuration and these settings will simply be applied on the device via NETCONF. And you can enable NETCONF via the WebUI.
For example, in order to access the IOx file hosting application this IOS configuration would need to be applied:
interface VirtualPortGroup0 ip address 192.168.1.1 255.255.255.0 ip nat inside ip virtual-reassemblyinterface Vlan1 ip address 10.0.0.2 255.255.255.0 ip nat outside ip virtual-reassemblyip nat inside source static tcp 192.168.1.2 445 interface Vlan1 445ip nat inside source static tcp 192.168.1.2 5000 interface Vlan1 5000ip nat inside source static udp 192.168.1.2 136 interface Vlan1 136app-hosting appid filehosting app-vnic gateway0 virtualportgroup 0 guest-interface 0 guest-ipaddress 192.168.1.2 netmask 255.255.255.0 app-default-gateway 192.168.1.1 guest-interface 0
With the script, you just insert your data into the JSON file, run the script and you are good to go:
"IOX": { "appid": "filehosting", "ip-iox-app": "192.168.1.2", "ip-virtualportgroup0": "192.168.1.1", "subnetmask": "255.255.255.0", "port-mapping": ["tcp:445:445","tcp:5000:5000","udp:136:136"] }, "OUTSIDE-INTERFACE": { "vlan-id": 1, "ip-address": "172.19.89.14", "subnetmask": "255.255.255.0" }
Right now, only the IR1101 is supported, however, more devices will be added in the future!
Demo