app-default-gateway
To set the default gateway for an application, use the app-default-gateway command in application hosting configuration mode. To remove the default gatway, use the no form of this command.
app-default-gateway ip-address guest-interface network-interface-number
no app-default-gateway [ip-address guest-interface network-interface-number]
Syntax Description
ip-address |
IP address of the default gateway. |
guest-interface network-interface-number |
Configures the guest interface. The network-interface-number maps to the container Ethernet number. |
Command Default
The default gateway is not configured.
Command Modes
Application hosting configuration (config-app-hosting)
Command History
Release | Modification |
---|---|
Cisco IOS XE Gibraltar 16.12.1 |
This command was introduced. |
Examples
The following example shows how to set the default gateway for the application:
Device# configure terminal
Device(config)# app-hosting appid lxc_app
Device(config-app-hosting)# app-default-gateway 10.3.3.31 guest-interface 1
Device(config-app-hosting)#