Change tcp port range to support telemetry and gnmi (#17907)

* Reserve tcp port for telemetry and gnmi

* Use ip_local_port_range instead

* Fix sysctl config
This commit is contained in:
ganglv 2024-01-27 01:31:09 +08:00 committed by mssonicbld
parent 1e758d4538
commit 6a76a73b0f

View File

@ -15,6 +15,7 @@ net.ipv4.conf.all.arp_announce=1
net.ipv4.conf.all.arp_filter=0 net.ipv4.conf.all.arp_filter=0
net.ipv4.conf.all.arp_notify=1 net.ipv4.conf.all.arp_notify=1
net.ipv4.conf.all.arp_ignore=2 net.ipv4.conf.all.arp_ignore=2
net.ipv4.ip_local_port_range="32768 50001"
net.ipv4.neigh.default.base_reachable_time_ms=1800000 net.ipv4.neigh.default.base_reachable_time_ms=1800000
net.ipv6.neigh.default.base_reachable_time_ms=1800000 net.ipv6.neigh.default.base_reachable_time_ms=1800000
net.ipv4.neigh.default.gc_thresh1=1024 net.ipv4.neigh.default.gc_thresh1=1024