-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sonic-buildimage] Changes to make network specific sysctl common for…
… both host and docker namespace (#4838) * [sonic-buildimage] Changes to make network specific sysctl common for both host and docker namespace (in multi-npu). This change is triggered with issue found in multi-npu platforms where in docker namespace net.ipv6.conf.all.forwarding was 0 (should be 1) because of which RS/RA message were triggered and link-local router were learnt. Beside this there were some other sysctl.net.ipv6* params whose value in docker namespace is not same as host namespace. So to make we are always in sync in host and docker namespace created common file that list all sysctl.net.* params and used both by host and docker namespace. Any change will get applied to both namespace. Signed-off-by: Abhishek Dosi <[email protected]> * Address Review Comments and made sure to invoke augtool only one and do string concatenation of all set commands * Address Review Comments.
- Loading branch information
Showing
6 changed files
with
58 additions
and
51 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# All the sysctl for ipv4/ipv6 network. | ||
# Same will be used in host or docker namespace | ||
# It should be provided as key=value format for parsing | ||
net.ipv6.conf.all.disable_ipv6=0 | ||
net.ipv4.conf.default.forwarding=1 | ||
net.ipv4.conf.all.forwarding=1 | ||
net.ipv4.conf.eth0.forwarding=0 | ||
net.ipv4.conf.default.arp_accept=0 | ||
net.ipv4.conf.default.arp_announce=0 | ||
net.ipv4.conf.default.arp_filter=0 | ||
net.ipv4.conf.default.arp_notify=0 | ||
net.ipv4.conf.default.arp_ignore=0 | ||
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 | ||
net.ipv4.neigh.default.base_reachable_time_ms=1800000 | ||
net.ipv6.neigh.default.base_reachable_time_ms=1800000 | ||
net.ipv4.neigh.default.gc_thresh1=1024 | ||
net.ipv6.neigh.default.gc_thresh1=1024 | ||
net.ipv4.neigh.default.gc_thresh2=2048 | ||
net.ipv6.neigh.default.gc_thresh2=2048 | ||
net.ipv4.neigh.default.gc_thresh3=4096 | ||
net.ipv6.neigh.default.gc_thresh3=4096 | ||
net.ipv6.conf.default.forwarding=1 | ||
net.ipv6.conf.all.forwarding=1 | ||
net.ipv6.conf.eth0.forwarding=0 | ||
net.ipv6.conf.default.accept_dad=0 | ||
net.ipv6.conf.all.accept_dad=0 | ||
net.ipv6.conf.eth0.accept_dad=0 | ||
net.ipv6.conf.default.keep_addr_on_down=1 | ||
net.ipv6.conf.all.keep_addr_on_down=1 | ||
net.ipv6.conf.eth0.keep_addr_on_down=1 | ||
net.ipv4.tcp_l3mdev_accept=1 | ||
net.ipv4.udp_l3mdev_accept=1 | ||
net.core.rmem_max=2097152 | ||
net.core.wmem_max=2097152 | ||
net.core.somaxconn=512 |
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