Authorisation des ip des dhcp légitimes

This commit is contained in:
chirac 2018-07-08 19:26:06 +02:00
parent d1b4f56913
commit adf81b8b3a
2 changed files with 7 additions and 1 deletions

View file

@ -88,6 +88,11 @@ aaa port-access mac-based addr-format multi-colon
no cdp run
{%- if additionals.dhcp_snooping_vlans %}
;--- DHCP Snooping ---
{%- for server in additionals.dhcp_servers %}
{%- for interface in server.interface %}
dhcp-snooping authorized-server {{ interface.ipv4 }}
{%- endfor %}
{%- endfor %}
dhcp-snooping vlan {{ additionals.dhcp_snooping_vlans|join(' ') }}
dhcp-snooping
{%- endif %}