# Vxlan / macvlan

**URL:** https://forums.suse.com/t/vxlan-macvlan/4803
**Category:** Rancher 1.x
**Created:** [December 5, 2016, 1:26pm UTC](https://forums.suse.com/t/vxlan-macvlan/4803 "2016-12-05T13:26:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![n4tiv3](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@n4tiv3](https://forums.suse.com/u/n4tiv3)
#### Post date: [December 5, 2016, 1:26pm UTC](https://forums.suse.com/t/vxlan-macvlan/4803/1 "2016-12-05T13:26:18Z")

</div>

So there is a new service called VXLAN in the catalog, after installation, where can I select so that rancher is using VXLAN?

Also I want use the macvlan driver, how can I achieve this?

---

<div class="post-metadata">

### Author: ![leodotcloud](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/leodotcloud/32/3103_2.png) [@leodotcloud](https://forums.suse.com/u/leodotcloud)
#### Post date: [December 6, 2016, 6:24am UTC](https://forums.suse.com/t/vxlan-macvlan/4803/2 "2016-12-06T06:24:31Z")

</div>

[http://docs.rancher.com/rancher/v1.2/en/environments/#adding-environment-templates](http://docs.rancher.com/rancher/v1.2/en/environments/#adding-environment-templates)

You first need to create an environment template with the VXLAN catalog item selected. Then create a new environment using this template and Add Hosts. Now the containers launched across different hosts in this environment use VXLAN for cross host networking.

Macvlan driver of Docker is a different plugin altogether and it’s not supported with Cattle.

---

<div class="post-metadata">

### Author: ![n4tiv3](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@n4tiv3](https://forums.suse.com/u/n4tiv3)
#### Post date: [December 6, 2016, 9:58pm UTC](https://forums.suse.com/t/vxlan-macvlan/4803/3 "2016-12-06T21:58:21Z")

</div>

Hi,

thanks for your answer, I didn’t notice that you can define your environments, this is really neat.

I just wanted to test this setup with 3 fresh Virtual Box VMs on Ubuntu Xenial, but I can’t start anything because there is an Error on all Stacks (including infra)

(Expected state running but got error: Timeout getting IP address)

I tried a fresh install too, without VXLAN and touching anything, just adding two hosts, so I guess this is a bigger issue?

---

<div class="post-metadata">

### Author: ![n4tiv3](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@n4tiv3](https://forums.suse.com/u/n4tiv3)
#### Post date: [December 7, 2016, 4:26pm UTC](https://forums.suse.com/t/vxlan-macvlan/4803/4 "2016-12-07T16:26:23Z")

</div>

Just for the record: the issue with timeout getting IP adresse has been caused by follow:

I just ran

> sudo hostnamectl set-hostname

although this changes the hostname, it does not update your /etc/hosts file.  
So you have to change 127.0.1.1 to your hostname manually.

This resolved my problem and VXLAN is working wonderfully!

Thank you very much for your assistance.
