Step 1
|
configure terminal
switch# configure terminal
|
Enters global configuration mode.
|
Step 2
|
app-hosting bridge bridge-index
switch(config)# app-hosting bridge 1
|
Configures the App-hosting bridge and enters App Hosting Bridge configuration mode.
<1-8> Bridge index
|
Step 3
|
ip address ip-address/mask
switch(config-app-hosting-bridge)# ip address 172.25.44.1/30
|
Configures the App Bridge IPv4 address which acts as the gateway to the Application Container.
|
Step 4
|
vrf member name
switch(config-app-hosting-bridge)# vrf member overlay-VRF
|
Sets the VRF context. If not configured, it would be part of VRF default.
|
Step 5
|
exit
switch(config-app-hosting-bridge)# exit
|
Exits App Bridge configuration mode and returns to global configuration mode.
|
Step 6
|
app-hosting appid name
switch(config)# app-hosting appid te_app
|
Configures an application and enters application-hosting configuration mode.
|
Step 7
|
app-vnic gateway bridge bridge-index guest-interface guest-interface-number
switch(config-app-hosting)# app-vnic bridge 1 guest-interface 0
|
Configures the guest VNIC interface for an application and enters application-hosting vnic interface mode.
|
Step 8
|
guest-ipaddress ip-address/mask
switch(config-config-app-hosting-app-vnic)# guest-ipaddress 172.25.44.2/30
|
Configures one of the available IPv4 address from the bridge 1 subnet.
|
Step 9
|
exit
switch(config-config-app-hosting-vlan-access-ip)# exit
|
Exits App vnic interface configuration mode and returns to app-hosting configuration mode.
|
Step 10
|
app-default-gateway ip-address guest-interfacenumber
switch(config-app-hosting-)# app-default-gateway 172.25.44.1
|
Configures the available IPv4 address from the bridge1 subnet.
|
Step 11
|
nameserver# ip-address
Device(config-app-hosting)# name-server0 10.2.2.2
|
Configures the DNS server.
|
Step 12
|
app-resource docker
switch(config-app-hosting)# app-resource docker
|
Enters application-hosting docker-configuration mode to specify application resource updates.
|
Step 13
|
run-opts options
switch(config-app-hosting-docker)# run-opts 1
"-e TEAGENT_ACCOUNT_TOKEN=[account-token]"
run-opts 10 "-e TEAGENT_DEF_IPV4_GW_ETH1=172.25.44.65"
run-opts 11 "-e TEAGENT_DEF_IPV6_GW_ETH1=2001:420:287:2003:7:110:1205:1"
run-opts 12 "-e TEAGENT_DEF_IPV4_GW_ETH2=172.25.44.73"
run-opts 13 "-e TEAGENT_DEF_IPV6_GW_ETH2=2001:420:287:2003:7:110:1206:1"
run-opts 14 "-e TEAGENT_DEF_IPV4_GW_ETH3=172.25.44.81"
run-opts 15 "-e TEAGENT_DEF_IPV6_GW_ETH3=2001:420:287:2003:7:110:1207:1"
|
Specifies the Docker run time options.
You can configure additional default gateways through the run-opts option. The TEAGENT_DEF_IPV[4/6]_GW_ETH[0-3] command is used to indicate IPv4 and IPv6 and the index is between 0-3.You can only configure 1 gateway using the app-default-gateway command.
|
Step 14
|
prepend-pkg-opts
switch(config-app-hosting-docker)# prepend-pkg-opts
|
Merges the package options with the Docker runtime options.
Any duplicate variable is overwritten.
|
Step 15
|
end
switch(config-app-hosting-docker)# end
|
Exits application-hosting docker-configuration mode and returns to privileged EXEC mode.
|