# What is needed to change the default Gateway to another ip?

**URL:** <https://forum.opennebula.io/t/what-is-needed-to-change-the-default-gateway-to-another-ip/1620>\
**Category:** Product Support\
**Created:** [December 19, 2015, 10:21pm UTC](https://forum.opennebula.io/t/what-is-needed-to-change-the-default-gateway-to-another-ip/1620 "2015-12-19T22:21:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sysM](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@sysM](https://forum.opennebula.io/u/sysM)\
**Post date:** [December 19, 2015, 10:21pm UTC](https://forum.opennebula.io/t/what-is-needed-to-change-the-default-gateway-to-another-ip/1620/1 "2015-12-19T22:21:24Z")

</div>

Hi all,

Hopefully someone can help me with this request. My setup:

vCenter environment running 5.5  
OpenNebula 4.14.2  
vCenter template with TTYLinux-vmware  
Using the below template to deploy VM:

> CONTEXT=[DNS\_HOSTNAME=“YES”,  
> NETWORK=“YES”,  
> SSH\_PUBLIC\_KEY=“$USER[SSH\_PUBLIC\_KEY]”]  
> CPU=“2”  
> ETH0\_DNS=“8.8.8.8 8.8.4.4”  
> ETH0\_GATEWAY=“11.55.232.254”  
> GRAPHICS=[LISTEN=“0.0.0.0”,TYPE=“vnc”]  
> HYPERVISOR=“vcenter”  
> KEEP\_DISKS\_ON\_DONE=“NO”  
> LOGO=“images/logos/linux.png”  
> MEMORY=“384”  
> NIC=[NETWORK=“1232”,NETWORK\_UNAME=“oneadmin”]  
> PUBLIC\_CLOUD=[TYPE=“vcenter”,VM\_TEMPLATE=“421987bb-c41e-b862-8d67-72cbf187f828”]  
> VCPU=“4”

The network is:

> BRIDGE=“1232”  
> DNS=“8.8.8.8”  
> GATEWAY=“11.55.232.254”  
> IP\_GEN=“11.55.232.254”  
> PHYDEV=  
> SECURITY\_GROUPS=“0”  
> VCENTER\_TYPE=“Distributed Port Group”  
> VLAN=“NO”  
> VLAN\_ID=

The problem is that everything deploys and works but the default gateway is set to 11.55.232.1 . I have set the default gateway in the network and in the template but both do not work.

Is there a ruby script which set the .1 behind the default gateway?  
Or do I forget something?

Please advies.  
Thanks in advance,

Maarten.

---

<div class="post-metadata">

**Author:** ![tinova](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/tinova/32/25_2.png) [@tinova](https://forum.opennebula.io/u/tinova)\
**Post date:** [December 21, 2015, 9:05am UTC](https://forum.opennebula.io/t/what-is-needed-to-change-the-default-gateway-to-another-ip/1620/2 "2015-12-21T09:05:46Z")

</div>

Hi,

Quick question, are you using the contextualization packages?

---

<div class="post-metadata">

**Author:** ![sysM](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@sysM](https://forum.opennebula.io/u/sysM)\
**Post date:** [December 23, 2015, 2:56pm UTC](https://forum.opennebula.io/t/what-is-needed-to-change-the-default-gateway-to-another-ip/1620/3 "2015-12-23T14:56:52Z")

</div>

Yes, I have downloaded the TTY image from the marketplace.

---

<div class="post-metadata">

**Author:** ![malfonso](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@malfonso](https://forum.opennebula.io/u/malfonso)\
**Post date:** [December 28, 2015, 11:54am UTC](https://forum.opennebula.io/t/what-is-needed-to-change-the-default-gateway-to-another-ip/1620/4 "2015-12-28T11:54:00Z")

</div>

Hi,

I think Tino means If you’ve installed the contextualization package. You can locate it through [this](http://docs.opennebula.org/4.14/user/virtual_machine_setup/bcont.html) link.

Regards
