<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ipv6 sourceguard and leasequeries in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/ipv6-sourceguard-and-leasequeries/m-p/4503035#M1085102</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have a problem with the recovery mechanism in ipv6 that uses DHCP leasequeries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to implement ipv6 security measures in our network, the equivalent of dhcp snooping and arp inspection on ipv4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this i try to use the SISF-based snooping implementation.&lt;/P&gt;&lt;P&gt;It has been a real hassle so far, documentation describing different implementations, devices reporting duplicate addresses because of the probes etc..&lt;/P&gt;&lt;P&gt;I think i have an implementation now that is ok when it comes to raguard and dhcp-guard.&lt;/P&gt;&lt;P&gt;There does not seem to be a real equivalent of the dynamic arp inspection, so i am looking to implement ipv6 source-guard in order to provide a bit of security on host-level.&lt;/P&gt;&lt;P&gt;The idea is that we force the hosts to get an ip-address through dhcp, that way they get into the device-tracking table and there we can then implement that the host is allowed to send traffic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IPv6 source guard seems to work ok, as long as your device sends a solicit, so it can properly snoop the data and set the info in the database.&lt;/P&gt;&lt;P&gt;But if you fe. disconnect your cable and reconnect, the entry will be deleted when you disconnect and when you reconnect the host is sending DHCP CONFIRM's, not solicit's.&lt;/P&gt;&lt;P&gt;The CONFIRM arguably does not contain the necessary info to update the database, so normally then a recovery mechanism joins in.&lt;/P&gt;&lt;P&gt;Now it's this recovery mechanism that doesn't seem to work when it should.&lt;/P&gt;&lt;P&gt;So as I understand it, when the host sends out traffic, and the entry is not in the database, the switch will then send a leasequery out to the dhcp-server in order to find out if the host has a dhcp-entry.&lt;/P&gt;&lt;P&gt;For this the switch needs to have an ipv6-adres, it only has a SVI in a mgmt-vlan, so in order to send the leasequery for a host in the uservlan, the switch will send a leasequery via the management-vlan to the dhcp-server.&lt;BR /&gt;(note: we have different dhcp-servers per vrf, meaning we will have to list ALL the dhcp-servers as we have all those vlans on a switch?)&lt;/P&gt;&lt;P&gt;There is nice debug option "debug ipv6 dhcp leasequery" so i can track them, and I can see that on some occasions the leasequeries are indeed being sent and the entry get placed into the database.&lt;/P&gt;&lt;P&gt;(it's set as a PKT entry, not DH6, but that seems ok for source-guard)&lt;/P&gt;&lt;P&gt;The problem is that I cannot predict when the leasequeries are being sent.&lt;/P&gt;&lt;P&gt;If I plug in a PC it does not seem to work, fe. disconnect and reconnect the cable.&lt;BR /&gt;Usually after about 30 minutes or so, the switch would suddenly start sending leasequeries.&lt;/P&gt;&lt;P&gt;If I reboot the switch, the leasequery sometimes seem to happen, sometimes not.&lt;/P&gt;&lt;P&gt;If i want to have this implemented it should always work straight away.&lt;BR /&gt;I am doing something wrong, do other people have the same problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;configuration used is&amp;nbsp;&lt;/P&gt;&lt;P&gt;ipv6 source-guard policy ipv6-sg-host&lt;BR /&gt;permit link-local&lt;BR /&gt;validate address&lt;BR /&gt;deny global-autoconf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;device-tracking policy SOURCE_GUARD_HOST&lt;BR /&gt;data-glean recovery dhcp&lt;BR /&gt;no protocol udp&lt;BR /&gt;tracking disable&lt;BR /&gt;!&lt;BR /&gt;device-tracking policy SWITCH-TRUSTED&lt;BR /&gt;trusted-port&lt;BR /&gt;security-level glean&lt;BR /&gt;device-role switch&lt;BR /&gt;no protocol udp&lt;BR /&gt;tracking disable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on the user-interface&lt;/P&gt;&lt;P&gt;device-tracking attach-policy SOURCE_GUARD_HOST&lt;BR /&gt;ipv6 source-guard attach-policy ipv6-sg-host&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on the uplink&lt;/P&gt;&lt;P&gt;device-tracking attach-policy SWITCH-TRUSTED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 16:48:40 GMT</pubDate>
    <dc:creator>tom.vanhout</dc:creator>
    <dc:date>2021-11-15T16:48:40Z</dc:date>
    <item>
      <title>ipv6 sourceguard and leasequeries</title>
      <link>https://community.cisco.com/t5/network-security/ipv6-sourceguard-and-leasequeries/m-p/4503035#M1085102</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have a problem with the recovery mechanism in ipv6 that uses DHCP leasequeries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to implement ipv6 security measures in our network, the equivalent of dhcp snooping and arp inspection on ipv4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this i try to use the SISF-based snooping implementation.&lt;/P&gt;&lt;P&gt;It has been a real hassle so far, documentation describing different implementations, devices reporting duplicate addresses because of the probes etc..&lt;/P&gt;&lt;P&gt;I think i have an implementation now that is ok when it comes to raguard and dhcp-guard.&lt;/P&gt;&lt;P&gt;There does not seem to be a real equivalent of the dynamic arp inspection, so i am looking to implement ipv6 source-guard in order to provide a bit of security on host-level.&lt;/P&gt;&lt;P&gt;The idea is that we force the hosts to get an ip-address through dhcp, that way they get into the device-tracking table and there we can then implement that the host is allowed to send traffic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IPv6 source guard seems to work ok, as long as your device sends a solicit, so it can properly snoop the data and set the info in the database.&lt;/P&gt;&lt;P&gt;But if you fe. disconnect your cable and reconnect, the entry will be deleted when you disconnect and when you reconnect the host is sending DHCP CONFIRM's, not solicit's.&lt;/P&gt;&lt;P&gt;The CONFIRM arguably does not contain the necessary info to update the database, so normally then a recovery mechanism joins in.&lt;/P&gt;&lt;P&gt;Now it's this recovery mechanism that doesn't seem to work when it should.&lt;/P&gt;&lt;P&gt;So as I understand it, when the host sends out traffic, and the entry is not in the database, the switch will then send a leasequery out to the dhcp-server in order to find out if the host has a dhcp-entry.&lt;/P&gt;&lt;P&gt;For this the switch needs to have an ipv6-adres, it only has a SVI in a mgmt-vlan, so in order to send the leasequery for a host in the uservlan, the switch will send a leasequery via the management-vlan to the dhcp-server.&lt;BR /&gt;(note: we have different dhcp-servers per vrf, meaning we will have to list ALL the dhcp-servers as we have all those vlans on a switch?)&lt;/P&gt;&lt;P&gt;There is nice debug option "debug ipv6 dhcp leasequery" so i can track them, and I can see that on some occasions the leasequeries are indeed being sent and the entry get placed into the database.&lt;/P&gt;&lt;P&gt;(it's set as a PKT entry, not DH6, but that seems ok for source-guard)&lt;/P&gt;&lt;P&gt;The problem is that I cannot predict when the leasequeries are being sent.&lt;/P&gt;&lt;P&gt;If I plug in a PC it does not seem to work, fe. disconnect and reconnect the cable.&lt;BR /&gt;Usually after about 30 minutes or so, the switch would suddenly start sending leasequeries.&lt;/P&gt;&lt;P&gt;If I reboot the switch, the leasequery sometimes seem to happen, sometimes not.&lt;/P&gt;&lt;P&gt;If i want to have this implemented it should always work straight away.&lt;BR /&gt;I am doing something wrong, do other people have the same problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;configuration used is&amp;nbsp;&lt;/P&gt;&lt;P&gt;ipv6 source-guard policy ipv6-sg-host&lt;BR /&gt;permit link-local&lt;BR /&gt;validate address&lt;BR /&gt;deny global-autoconf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;device-tracking policy SOURCE_GUARD_HOST&lt;BR /&gt;data-glean recovery dhcp&lt;BR /&gt;no protocol udp&lt;BR /&gt;tracking disable&lt;BR /&gt;!&lt;BR /&gt;device-tracking policy SWITCH-TRUSTED&lt;BR /&gt;trusted-port&lt;BR /&gt;security-level glean&lt;BR /&gt;device-role switch&lt;BR /&gt;no protocol udp&lt;BR /&gt;tracking disable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on the user-interface&lt;/P&gt;&lt;P&gt;device-tracking attach-policy SOURCE_GUARD_HOST&lt;BR /&gt;ipv6 source-guard attach-policy ipv6-sg-host&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on the uplink&lt;/P&gt;&lt;P&gt;device-tracking attach-policy SWITCH-TRUSTED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 16:48:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ipv6-sourceguard-and-leasequeries/m-p/4503035#M1085102</guid>
      <dc:creator>tom.vanhout</dc:creator>
      <dc:date>2021-11-15T16:48:40Z</dc:date>
    </item>
  </channel>
</rss>

