<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'><font face="times new roman, new york, times, serif"><span style="font-size: 12pt;">Tomek, this is just part of log....in the same log, Kea tries to find the same MAC on correct subnet id....but I guess I found the 'problem'.</span></font><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">Actually, I need some explanations from experts....</div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">DHCP works on Layer 2? And VLAN's, works on layer 2 too?</div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">This is what I have:</div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">One VM with only one interface.....this interface has VLAN 227 as untagged and a lot of other VLAN"s tagged, including VLAN 209</div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">On OS of this VM (CentOS 7), I have two interfaces:</div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">eth0 => 'normal interface', configured with static IP and nothing related to VLAN. Untagged VLAN = 227, but receives a lot of other tagged VLAN's. network-id = 1025 for this IP range/VLAN</div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">eth0.209 => interface configured with VLAN ID 209.  Network-id = 1024 for this range/VLAN.</div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">In Kea configuration, I had:</div><div><div><font face="times new roman, new york, times, serif"><b><i>"interfaces-config": {</i></b></font></div><div><font face="times new roman, new york, times, serif"><b><i>    "interfaces": [ "eth0", "eth0.209" ]</i></b></font></div><div><font face="times new roman, new york, times, serif"><b><i>  },</i></b></font></div></div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">and nothing more.</div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">The 'problem' is that Kea is seeing more traffic on eth0....I mean, Kea is receiving DHCP requests from ALL other VLAN's that is tagged, even if my linux is not configured for these VLAN's. So I'm guessing that Kea is intercepting DHCP packages before my linux could 'ignore' these tagged packets on eth0 (I could see this on log with debug). Since my VLAN 209 came untagged to interface eth0.209 and tagged to interface eth0, I think Kea is guetting crazy with same packet on both network cards and subnets.</div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">I have added 'interface' to specific subnetworks and It's working for now. </div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div style="font-size: 12pt;">"subnet4": [</div><div style="font-size: 12pt;">  {</div><div style="font-size: 12pt;">      "subnet": "143.107.205.0/24",</div><div style="font-size: 12pt;">      "id": 1024,</div><div style="font-size: 12pt;">      "option-data": [   {</div><div style="font-size: 12pt;">           "name": "routers",</div><div style="font-size: 12pt;">           "code": 3,</div><div style="font-size: 12pt;">           "space": "dhcp4",</div><div style="font-size: 12pt;">           "csv-format": true,</div><div style="font-size: 12pt;">           "data": "143.107.205.1"</div><div style="font-size: 12pt;">        }</div><div style="font-size: 12pt;">        ],</div><div style="font-size: 12pt;">      <b>"interface": "eth0.209"</b></div><div style="font-size: 12pt;"><span style="font-size: 12pt;">  },</span></div><div style="font-size: 12pt;">  {</div><div style="font-size: 12pt;">     "subnet": "143.107.158.0/24",</div><div style="font-size: 12pt;">     "id": 1025,</div><div style="font-size: 12pt;">     "option-data": [   {</div><div style="font-size: 12pt;">           "name": "routers",</div><div style="font-size: 12pt;">           "code": 3,</div><div style="font-size: 12pt;">           "space": "dhcp4",</div><div style="font-size: 12pt;">           "csv-format": true,</div><div style="font-size: 12pt;">           "data": "143.107.158.1"</div><div style="font-size: 12pt;">        }</div><div style="font-size: 12pt;">        ],</div><div style="font-size: 12pt;">     <b>"interface": "eth0"</b></div><div style="font-size: 12pt;">  },</div><div><br></div></div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br><br><div><span name="x"></span>Jonis Maurin CearĂ¡<br>Analista de Sistemas<br>FEA-RP<br>Help Desk +55 (16) 3315-3898<br>Audiovisual +55 (16) 3315-3927<br>Desenv. Sistemas +55 (16) 3315-4485<br>Infraestrutura +55 (16) 3315-8539 / 0672<br>Atendimento Web: http://suporte.fearp.usp.br<span name="x"></span><br></div><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>De: </b>"Tomek Mrugalski" <tomasz@isc.org><br><b>Para: </b>kea-users@lists.isc.org<br><b>Enviadas: </b>Quinta-feira, 19 de Maio de 2016 14:11:53<br><b>Assunto: </b>Re: [Kea-users] Can't get KEA to work here<br><br>I think I found the issue.<br><br>On 16.05.2016 15:15, Jonis Maurin Ceara wrote:<br>> Another example of log and a registry on database:<br>><br>> 2016-05-16 10:02:01.754 DEBUG [kea-dhcp4.packets/30560]<br>> DHCP4_SUBNET_SELECTED [hwtype=1 6c:62:6d:bd:1a:18],<br>> cid=[01:6c:62:6d:bd:1a:18], tid=0x1fcfffa7: the subnet with ID 1025<br>> was selected for client assignments<br>> 2016-05-16 10:02:01.754 DEBUG [kea-dhcp4.packets/30560]<br>> DHCP4_SUBNET_DATA [hwtype=1 6c:62:6d:bd:1a:18],<br>> cid=[01:6c:62:6d:bd:1a:18], tid=0x1fcfffa7: the selected subnet<br>> details: 143.107.158.0/24<br>> 2016-05-16 10:02:01.754 DEBUG [kea-dhcp4.hosts/30560]<br>> HOSTS_CFG_GET_ONE_SUBNET_ID_HWADDR_DUID get one host with IPv4<br>> reservation for subnet id 1025, HWADDR hwtype=1 6c:62:6d:bd:1a:18,<br>> DUID 01:6c:62:6d:bd:1a:18<br>This query is for subnet-id 1025.<br>> Registry:<br>><br>><br>This image above shows entry for with subnet-id 1024.<br><br>I don't know your deployment scenario, so can't make any specific<br>recommendations. Just make sure that your host reservation data matches<br>the subnet id in your config file.<br><br>Let me know if that was it.<br>Tomek<br><br>_______________________________________________<br>Kea-users mailing list<br>Kea-users@lists.isc.org<br>https://lists.isc.org/mailman/listinfo/kea-users<br></blockquote><br></div></div></body></html>