Manually Configuring the IP Address for an Application You can set up the IP address of a container using the following methods: • Log into the container, and configure the ifconfig Linux command. 1. Log in to the application by using the following command: app-hosting connect appid APPID {session | console} 2. Based on the application's Linux support, use the standard Linux interface configuration commands: - ifconfig dev IFADDR/subnet-mask-length Or - ip address {add|change|replace} IFADDR dev IFNAME [ LIFETIME ] [ CONFFLAG-LIST ] • Enable the Dynamic Host Configuration Protocol (DHCP) in the container, and configure the DHCP server and relay agent in the Cisco IOS configuration.
• Cisco IOx provides a DHCP client to run within the application container that is used for an application DHCP interface. Overriding App Resource Configuration For resource changes to take effect, you must first stop and deactivate an app using the app-hosting stop and app-hosting deactivate commands, and then restart the app using the app-hosting activate and app-hosting start commands. If you are using the start command in application-hosting configuration mode, configure the no start and start commands. You can use these commands to reset both resources and the app-hosting appid iox_app configuration. SUMMARY STEPS 1. enable 2. configure terminal 3. app-hosting appid name 4.
app-resource profile name 5. cpu unit 6. memory memory 7. vcpu number 8. end DETAILED STEPS Procedure Application Hosting Manually Configuring the IP Address for an Application Command or Action Purpose Step 1 enable Enables privileged EXEC mode. Application Hosting 25