Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change global arp ignore level from "check ip within same subnet" to "all reply" #18785

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

irene-pan1202
Copy link

Why I did it

arp_ignore has different modes for sending replies in response to received ARP requests that resolve the local target IP address.
Due to the strict settings of the arp_ignore global configuration, there are more restrictions.

Work item tracking

support a new field that allows dynamic modification of arp_ignore for different interfaces.
sonic-net/sonic-swss#3122

How I did it

Change global arp ignore level from "check ip within same subnet" to "all reply".

How to verify it

admin@sonic:/$ sudo sysctl -a | grep all.arp_ignore
net.ipv4.conf.all.arp_ignore = 0

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@irene-pan1202 irene-pan1202 requested a review from lguohan as a code owner April 24, 2024 07:27
Copy link

linux-foundation-easycla bot commented Apr 24, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

…"all reply"

Support arp_reply in port/vlan/portchannel yang

Signed-off-by: irene_pan <[email protected]>
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Contributor

prsunny commented Apr 29, 2024

Can you please share the motivation of this PR?

@prsunny prsunny requested a review from theasianpianist April 29, 2024 17:41
@@ -14,7 +14,6 @@ net.ipv4.conf.all.arp_accept=0
net.ipv4.conf.all.arp_announce=1
net.ipv4.conf.all.arp_filter=0
net.ipv4.conf.all.arp_notify=1
net.ipv4.conf.all.arp_ignore=2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not change default values that break backward compatibility.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to linux documentation, https://github.com/torvalds/linux/blob/master/Documentation/networking/ip-sysctl.rst
The max value from conf/{all,interface}/arp_ignore is used when ARP request is received on the {interface}

arp_ignore will take the max value, therefore all interfaces will use the global value.
If this setting could be changed to be controlled via the interface, it would provide users with more flexibility.
Therefore, remove the global value and change the default arp_ignore setting of 2 to be configured per interface.
Related PR: sonic-net/sonic-swss#3122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants