<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=DE link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi guys,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am struggling in getting my KEA DHCP Server to work with my VLAN Environment. I was assuming that defining a list of virtual interfaces and subnets matching those is sufficient, but it seems that the „dhcp-socket-type: raw“ is skipping the VLAN handling in the Linux kernel and thus this Information is Kind of lost… I have read a lot About Client classes, shared Networks and so on but I have not found any solution in how to get the DHCP Server to assign correct ip pools based on the VLAN. Here is my configuration:</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Interfaces:</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>eth0 => physical interface</p><p class=MsoNormal>eth0.30 => virtual interface<o:p></o:p></p><p class=MsoNormal>eth0.50 => virtual interface<o:p></o:p></p><p class=MsoNormal>eth0.100 => virtual interface<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>KEA DHCP conf:</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>{</p><p class=MsoNormal>        "Dhcp4": {</p><p class=MsoNormal>                "interfaces-config": {</p><p class=MsoNormal>                        "interfaces": [ "eth0", "eth0.30", "eth0.50", "eth0.100" ],</p><p class=MsoNormal>                        "dhcp-socket-type": "raw"</p><p class=MsoNormal>                },</p><p class=MsoNormal>                "control-socket": {</p><p class=MsoNormal>                        "socket-type": "unix",</p><p class=MsoNormal>                        "socket-name": "/tmp/kea4-ctrl-socket"</p><p class=MsoNormal>                },</p><p class=MsoNormal>                "lease-database": {</p><p class=MsoNormal>               …</p><p class=MsoNormal>                },</p><p class=MsoNormal>                "hosts-database": {</p><p class=MsoNormal>               …</p><p class=MsoNormal>                },</p><p class=MsoNormal>                "sanity-checks": {</p><p class=MsoNormal>                        "lease-checks": "fix-del"</p><p class=MsoNormal>                },</p><p class=MsoNormal>                "valid-lifetime": 28800,</p><p class=MsoNormal>                "rebind-timer": 21600,</p><p class=MsoNormal>                "subnet4": [</p><p class=MsoNormal>                        {</p><p class=MsoNormal>                                "pools": [</p><p class=MsoNormal>                                        {</p><p class=MsoNormal>                                                "pool": "192.168.20.100-192.168.20.200"</p><p class=MsoNormal>                                        }</p><p class=MsoNormal>                                ],</p><p class=MsoNormal>                                "id": 1,</p><p class=MsoNormal>                                "subnet": "192.168.20.0/24",</p><p class=MsoNormal>                                "interface": "eth0",</p><p class=MsoNormal>                                "option-data": [</p><p class=MsoNormal>                       …</p><p class=MsoNormal>                                ]</p><p class=MsoNormal>                        },</p><p class=MsoNormal>                        {</p><p class=MsoNormal>                                "pools": [</p><p class=MsoNormal>                                        {</p><p class=MsoNormal>                                                "pool": "192.168.30.100-192.168.30.200"</p><p class=MsoNormal>                                        }</p><p class=MsoNormal>                                ],</p><p class=MsoNormal>                                "id": 30,</p><p class=MsoNormal>                                "subnet": "192.168.30.0/24",</p><p class=MsoNormal>                                "interface": "eth0.30",</p><p class=MsoNormal>                                "option-data": [</p><p class=MsoNormal>                       …</p><p class=MsoNormal>                                ]</p><p class=MsoNormal>                        },</p><p class=MsoNormal>                        {</p><p class=MsoNormal>                                "pools": [</p><p class=MsoNormal>                                        {</p><p class=MsoNormal>                                                "pool": "192.168.50.100-192.168.50.200"</p><p class=MsoNormal>                                        }</p><p class=MsoNormal>                                ],</p><p class=MsoNormal>                                "id": 50,</p><p class=MsoNormal>                                "interface" : "eth0.50",</p><p class=MsoNormal>                                "subnet": "192.168.50.0/24",</p><p class=MsoNormal>                                "option-data": [</p><p class=MsoNormal>                       …</p><p class=MsoNormal>                                ]</p><p class=MsoNormal>                        },</p><p class=MsoNormal>                        {</p><p class=MsoNormal>                                "pools": [</p><p class=MsoNormal>                                        {</p><p class=MsoNormal>                                                "pool": "192.168.100.100-192.168.100.200"</p><p class=MsoNormal>                                        }</p><p class=MsoNormal>                                ],</p><p class=MsoNormal>                                "id": 100,</p><p class=MsoNormal>                                "subnet": "192.168.100.0/24",</p><p class=MsoNormal>                                "interface": "eth0.100",</p><p class=MsoNormal>                                "option-data": [</p><p class=MsoNormal>                       …</p><p class=MsoNormal>                                ]</p><p class=MsoNormal>                        }</p><p class=MsoNormal>                ],</p><p class=MsoNormal>                "hooks-libraries": [</p><p class=MsoNormal>               …</p><p class=MsoNormal>                ],</p><p class=MsoNormal>                "loggers": [</p><p class=MsoNormal>                        …</p><p class=MsoNormal>                ]</p><p class=MsoNormal>        }</p><p class=MsoNormal>}</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>What do I Need to do to force the DHCP Server to assign an IP address from a subnet based on the tagged VLAN of the request?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am using KEA DHCP Server Version 1.6.1.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Help is much appreciated!</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks!</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Gesendet von <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> für Windows 10</p><p class=MsoNormal><o:p> </o:p></p></div></body></html>