-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DHCPv6 relay] [202106] Fix DHCPv6 design to support multiple VLANS (#…
…9163) - Why I did it If multiple Vlans are configured to have DHCPv6 relay, only one relay instance is able to capture DHCP packets received from upstream, this is as a result of kernel design to operate this way (SO_REUSEPORT). DHCPv6 transmit unicast packets to clients, only multicast packets can be captured on multiple application listening on the same UDP port. This issue causing only one Vlan interface to get packets from servers. - How I did it Change the design to neglect Vlan isolation and run only one relay instance serving all Vlans with all configured DHCP servers. - How to verify it Run DHCPv6 relay test with 2 Vlans configured do have a DHCP relay. Signed-off-by: Shlomi Bitton <shlomibi@nvidia.com>
- Loading branch information
1 parent
e0209f7
commit 1ebe528
Showing
7 changed files
with
40 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
[group:isc-dhcp-relay] | ||
programs= | ||
{%- set add_preceding_comma = { 'flag': False } %} | ||
{% for vlan_name in VLAN_INTERFACE %} | ||
{# Append DHCPv4 agents #} | ||
{% if ipv4_num_relays.count > 0 %} | ||
{% for vlan_name in VLAN_INTERFACE %} | ||
{% if VLAN and vlan_name in VLAN and 'dhcp_servers' in VLAN[vlan_name] and VLAN[vlan_name]['dhcp_servers']|length > 0 %} | ||
{% if add_preceding_comma.flag %},{% endif %} | ||
{% set _dummy = add_preceding_comma.update({'flag': True}) %} | ||
isc-dhcpv4-relay-{{ vlan_name }} | ||
{%- endif %} | ||
{# Append DHCPv6 agents #} | ||
{% endfor %} | ||
{% endif %} | ||
{# Append DHCPv6 agent #} | ||
{% if ipv6_num_relays.count > 0 %} | ||
{% for vlan_name in VLAN_INTERFACE %} | ||
{% if VLAN and vlan_name in VLAN and 'dhcpv6_servers' in VLAN[vlan_name] and VLAN[vlan_name]['dhcpv6_servers']|length > 0 %} | ||
{% if add_preceding_comma.flag %},{% endif %} | ||
{% set _dummy = add_preceding_comma.update({'flag': True}) %} | ||
isc-dhcpv6-relay-{{ vlan_name }} | ||
{% set _dummy = v6_vlan_list.append( vlan_name ) %} | ||
{%- endif %} | ||
{% endfor %} | ||
{% if add_preceding_comma.flag %},{% endif %} | ||
isc-dhcpv6-relay-{{ v6_vlan_list|join("-") }} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters