Thanks for sharing, I wish you didn't have beg somebody to contribute to
the wiki...



On Jun 7, 2017 6:11 PM, "Ján Poctavek" <jan.pocta...@erigones.com> wrote:

> Just to add credits, I've done it with great help of jurajlutter.
>
> Thanks
>
>
> On 7. 6. 2017 23:59, Ján Poctavek wrote:
>
>> Okay, seems I've figured it out. But it was not an easy one. The
>> documentation about this is nonexistent.
>>
>> When using overlays with VMs, the overlays are created automatically and
>> they don't need to be created by dladm command.
>>
>> Here's the thing:
>>
>> - on each server, you need to create this file with parameters how to
>> (automatically) create an overlay:
>> # mkdir -p /var/run/smartdc/networking/
>> # vim /var/run/smartdc/networking/overlay_rules.json
>> {
>>     "myoverlay": "-e vxlan -s direct -p vxlan/listen_ip=158.69.227.172
>> -p direct/dest_ip=95.168.205.35 -p direct/dest_port=4789 -p vnetid=666
>> -p mtu=1400"
>> }
>> - on the other server, swap listen and dest IP
>> - test that your overlay is recognized:
>> # nictagadm list | grep myoverlay
>> - and when creating a VM, reference the nic tag this way:
>>   "nics": [
>>     {
>>       "interface": "net0",
>>       "nic_tag": "myoverlay/7",
>>       "vlan_id": 555,
>>       ...
>>     }
>> - note that overlays as nic_tag need to be referenced by name and a
>> (random) number after slash
>>
>> - and also note that "-s direct" overlay can be created only between two
>> (and no more) SmartOS servers
>>
>> Hope it will help somebody.
>>
>> Jan
>>
>> On 7. 6. 2017 14:55, Ján Poctavek wrote:
>>
>>> Hi guys,
>>>
>>> I'm trying to work with SmartOS overlays and it seems I'd really
>>> utilize some help here. I have created a simple point-to-point
>>> (direct) overlay between two servers:
>>>
>>> -  node1:
>>> dladm create-overlay -e vxlan -s direct -p
>>> vxlan/listen_ip=158.69.227.172 -p direct/dest_ip=95.168.205.35 -p
>>> direct/dest_port=4789 -v 666 olay0
>>> dladm create-vnic -l olay0 -v 555 olayvlan0
>>> ipadm create-if olayvlan0
>>> ipadm create-addr -t -T static -a 10.79.79.101 olayvlan0/olay
>>>  node2:
>>> dladm create-overlay -e vxlan -s direct -p
>>> direct/dest_ip=158.69.227.172 -p vxlan/listen_ip=95.168.205.35 -p
>>> direct/dest_port=4789 -v 666 olay0
>>> dladm create-vnic -l olay0 -v 555 olayvlan0
>>> ipadm create-if olayvlan0
>>> ipadm create-addr -t -T static -a 10.79.79.100 olayvlan0/olay
>>>
>>> To this point, everything is working fine and I can ping the
>>>                addresses.
>>>
>>> But I'm unable to figure out how can I use the overlays in vmadm.
>>> Nictagadm refuses to add nic tag on overlay (as it does with etherstubs).
>>>
>>> Any hints?
>>>
>>> Thank you.
>>>
>>> Jan
>>>
>>>
>>
>>
> 
> 



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to