cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

1700
Views
7
Helpful
1
Replies
junxu2
Cisco Employee

How to set Static IP address to PaaS/LXC

  • 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
Beginner

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.

Create
Recognize Your Peers
Content for Community-Ad