# Node template in vSphere with cloud-init static IP

**URL:** <https://forums.suse.com/t/node-template-in-vsphere-with-cloud-init-static-ip/19912>\
**Category:** SUSE Rancher Prime\
**Created:** [March 25, 2021, 6:43pm UTC](https://forums.suse.com/t/node-template-in-vsphere-with-cloud-init-static-ip/19912 "2021-03-25T18:43:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![biancoda](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@biancoda](https://forums.suse.com/u/biancoda)\
**Post date:** [March 25, 2021, 6:43pm UTC](https://forums.suse.com/t/node-template-in-vsphere-with-cloud-init-static-ip/19912/1 "2021-03-25T18:43:26Z")

</div>

I’m trying to create a node template for vSphere.  
The problem is that my vlans doesn’t have dhcp.

I have created this cloud-int definition with static IP, but its not creating the network-scripts.

```
network:
  version: 2
  ethernets:
    Prod:
      wakeonlan: true
      dhcp4: false
      dhcp6: false
      addresses:
        - (ip)/(nm)
      gateway4: (gw)
      nameservers:
        search: [(servers)]
        addresses: [(ips)]
  vlans:
    (vlan name):
      id: (id)
      link: Prod
      dhcp4: yes

```

Is this possible?

---

<div class="post-metadata">

**Author:** ![davenport](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/davenport/32/2351_2.png) [@davenport](https://forums.suse.com/u/davenport)\
**Post date:** [March 25, 2021, 7:20pm UTC](https://forums.suse.com/t/node-template-in-vsphere-with-cloud-init-static-ip/19912/2 "2021-03-25T19:20:39Z")

</div>

It is possible, check out:

[![](https://img.youtube.com/vi/ozLPpyrqwf8/maxresdefault.jpg "Kubernetes Master Class - Provision Kubernetes in vSphere with Rancher") ](https://www.youtube.com/watch?v=ozLPpyrqwf8)

at ~ 1:15 (one hour and 15 minutes)
