cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2452
Views
7
Helpful
1
Replies

How to set Static IP address to PaaS/LXC

junxu2
Cisco Employee
Cisco Employee
  • Make sure the version of IOx is 1.2.0.0 or later, which is latest IOx version in CCO.

1, Install the PaaS style application/LXC as usual

  "ioxclient app install test out/test.tar”

2, when activate the application in IOx, please use to set the static IP address.

  "ioxclient app activate --payload network.json javatest”

3, Then start the Paas Style Application via ioxclient and check the result

  " ioxclient app start test”

  " ioxclient app con test”



The sample of network.json is as follows, please make sure to set the value of “ip”, "prefix", “gateway” and “dns” by your address.

{

    "resources": {

        "profile": "c1.small",

        "network": [{

            "interface-name": "eth0",

            "network-name": "iox-bridge0",

           "mode": "static",

            "ipv4": {

                "ip": "192.168.100.20",

               "prefix": "24",

                "gateway": "192.168.100.1",

                "dns": "192.168.100.1",

                "default": true

            }

        }]

    }

}

1 Reply 1

joeb00001111
Level 1
Level 1

Thanks Jun, this works great. Be sure to adjust the IOS DHCP server exclusion settings.

Name resolution does not work in the container however, /etc/resolv.conf is empty.