Linux系统中sysctl命令详解 sysctl -p、sysctl -a、sysctl -w

Linux系统中sysctl命令详解 sysctl -p、sysctl -a、sysctl -w

sysctl命令用于运行时配置内核参数,这些参数位于/proc/sys目录下。sysctl配置与显示在/proc/sys目录中的内核参数.可以用sysctl来设置或重新设置联网功能,如IP转发、IP碎片去除以及源路由检查等。用户只需要编辑/etc/sysctl.conf文件,即可手工或自动执行由sysctl控制的功能。

    命令格式:

    sysctl [-n] [-e] -w variable=value

    sysctl [-n] [-e] -p <filename> (default /etc/sysctl.conf)

    sysctl [-n] [-e] -a

    常用参数的意义:

    -w   临时改变某个指定参数的值,如

         sysctl -w net.ipv4.ip_forward=1

    -a   显示所有的系统参数

    -p   从指定的文件加载系统参数,如不指定即从/etc/sysctl.conf中加载

    如果仅仅是想临时改变某个系统参数的值,可以用两种方法来实现,例如想启用IP路由转发功能:

    1) #echo 1 > /proc/sys/net/ipv4/ip_forward

    2) #sysctl -w net.ipv4.ip_forward=1

    以上两种方法都可能立即开启路由功能,但如果系统重启,或执行了

    # service network restart

 命令,所设置的值即会丢失,如果想永久保留配置,可以修改/etc/sysctl.conf文件

 将 net.ipv4.ip_forward=0改为net.ipv4.ip_forward=1


1, sysctl命令的作用
     在运行时配置内核参数
2,用法举例:
      -w 用此选项来改变一个sysctl设置
     例:sysctl -w net.ipv4.ip_forward=1
     -p   载入sysctl配置文件
           如-p后未指定路径,则载入 /etc/sysctl.conf
     例: sysctl -p /etc/sysctl.conf


001了解这些内核参数的意义对于解决问题会很有帮助。
002sh-# sysctl -a
003kernel.sched_child_runs_first = 0
004kernel.sched_min_granularity_ns = 750000
005kernel.sched_latency_ns = 6000000
006kernel.sched_wakeup_granularity_ns = 1000000
007kernel.sched_tunable_scaling = 1
008kernel.sched_migration_cost = 500000
009kernel.sched_nr_migrate = 32
010kernel.sched_time_avg = 1000
011kernel.sched_shares_window = 10000000
012kernel.timer_migration = 1
013kernel.sched_rt_period_us = 1000000
014kernel.sched_rt_runtime_us = 950000
015kernel.panic = 0
016kernel.core_uses_pid = 0
017kernel.core_pattern = core
018kernel.core_pipe_limit = 0
019kernel.tainted = 1
020kernel.print-fatal-signals = 0
021kernel.ctrl-alt-del = 0
022kernel.modprobe = /sbin/modprobe
023kernel.modules_disabled = 0
024kernel.hotplug = /sbin/hotplug
025kernel.sg-big-buff = 32768
026kernel.cad_pid = 1
027kernel.threads-max = 4606
028kernel.random.poolsize = 4096
029kernel.random.entropy_avail = 152
030kernel.random.read_wakeup_threshold = 64
031kernel.random.write_wakeup_threshold = 128
032kernel.random.boot_id = 9e7b0657-6f91-4e94-9c05-55c49dd99da9
033kernel.random.uuid = 309f03a1-28d0-47e0-9616-a390bb0349ba
034kernel.usermodehelper.bset = 4294967295 4294967295
035kernel.usermodehelper.inheritable = 4294967295  4294967295
036kernel.overflowuid = 65534
037kernel.overflowgid = 65534
038kernel.pid_max = 32768
039kernel.panic_on_oops = 0
040kernel.printk = 7       4       1       7
041kernel.printk_ratelimit = 5
042kernel.printk_ratelimit_burst = 10
043kernel.printk_delay = 0
044kernel.dmesg_restrict = 0
045kernel.kptr_restrict = 0
046kernel.ngroups_max = 65536
047kernel.randomize_va_space = 1
048kernel.max_lock_depth = 1024
049kernel.poweroff_cmd = /sbin/poweroff
050kernel.blk_iopoll = 1
051kernel.ostype = Linux
052kernel.osrelease = 3.0.13
053kernel.version = #1 PREEMPT Tue Oct 8 16:24:52 CST 2013
054kernel.hostname = 1234
055kernel.domainname = (none)
056kernel.shmmax = 33554432
057kernel.shmall = 2097152
058kernel.shmmni = 4096
059kernel.msgmax = 8192
060kernel.msgmni = 575
061kernel.msgmnb = 16384
062kernel.sem = 250        32000   32      128
063kernel.auto_msgmni = 1
064kernel.pty.max = 4096
065kernel.pty.nr = 0
066vm.overcommit_memory = 0
067vm.panic_on_oom = 0
068vm.oom_kill_allocating_task = 0
069vm.oom_dump_tasks = 1
070vm.overcommit_ratio = 50
071vm.page-cluster = 3
072vm.dirty_background_ratio = 10
073vm.dirty_background_bytes = 0
074vm.dirty_ratio = 20
075vm.dirty_bytes = 0
076vm.dirty_writeback_centisecs = 500
077vm.dirty_expire_centisecs = 3000
078vm.nr_pdflush_threads = 0
079vm.swappiness = 60
080vm.lowmem_reserve_ratio = 256   32      32
081vm.drop_caches = 0
082vm.min_free_kbytes = 2188
083vm.min_free_order_shift = 1
084vm.percpu_pagelist_fraction = 0
085vm.max_map_count = 65530
086vm.laptop_mode = 0
087vm.block_dump = 0
088vm.vfs_cache_pressure = 100
089vm.mmap_min_addr = 4096
090vm.highmem_is_dirtyable = 0
091vm.scan_unevictable_pages = 0
092fs.inode-nr = 2145      0
093fs.inode-state = 2145   0       0       0       0       0       0
094fs.file-nr = 297        0       29469
095fs.file-max = 29469
096fs.nr_open = 1048576
097fs.dentry-state = 2777  2184    45      0       0       0
098fs.overflowuid = 65534
099fs.overflowgid = 65534
100fs.leases-enable = 1
101fs.dir-notify-enable = 1
102fs.lease-break-time = 45
103fs.aio-nr = 0
104fs.aio-max-nr = 65536
105fs.inotify.max_user_instances = 128
106fs.inotify.max_user_watches = 8192
107fs.inotify.max_queued_events = 16384
108fs.epoll.max_user_watches = 111805
109fs.suid_dumpable = 0
110fs.pipe-max-size = 1048576
111fs.mqueue.queues_max = 256
112fs.mqueue.msg_max = 10
113fs.mqueue.msgsize_max = 8192
114dev.scsi.logging_level = 0
115net.core.somaxconn = 128
116net.core.xfrm_aevent_etime = 10
117net.core.xfrm_aevent_rseqth = 2
118net.core.xfrm_larval_drop = 1
119net.core.xfrm_acq_expires = 30
120net.core.wmem_max = 108544
121net.core.rmem_max = 108544
122net.core.wmem_default = 108544
123net.core.rmem_default = 108544
124net.core.dev_weight = 64
125net.core.netdev_max_backlog = 1000
126net.core.netdev_tstamp_prequeue = 1
127net.core.message_cost = 5
128net.core.message_burst = 10
129net.core.optmem_max = 10240
130net.core.netdev_budget = 300
131net.core.warnings = 1
132net.ipv4.route.gc_thresh = 4096
133net.ipv4.route.max_size = 65536
134net.ipv4.route.gc_min_interval = 0
135net.ipv4.route.gc_min_interval_ms = 500
136net.ipv4.route.gc_timeout = 300
137net.ipv4.route.gc_interval = 60
138net.ipv4.route.redirect_load = 4
139net.ipv4.route.redirect_number = 9
140net.ipv4.route.redirect_silence = 4096
141net.ipv4.route.error_cost = 200
142net.ipv4.route.error_burst = 1000
143net.ipv4.route.gc_elasticity = 8
144net.ipv4.route.mtu_expires = 600
145net.ipv4.route.min_pmtu = 552
146net.ipv4.route.min_adv_mss = 256
147net.ipv4.neigh.default.mcast_solicit = 3
148net.ipv4.neigh.default.ucast_solicit = 3
149net.ipv4.neigh.default.app_solicit = 0
150net.ipv4.neigh.default.retrans_time = 100
151net.ipv4.neigh.default.base_reachable_time = 30
152net.ipv4.neigh.default.delay_first_probe_time = 5
153net.ipv4.neigh.default.gc_stale_time = 60
154net.ipv4.neigh.default.unres_qlen = 3
155net.ipv4.neigh.default.proxy_qlen = 64
156net.ipv4.neigh.default.anycast_delay = 100
157net.ipv4.neigh.default.proxy_delay = 80
158net.ipv4.neigh.default.locktime = 100
159net.ipv4.neigh.default.retrans_time_ms = 1000
160net.ipv4.neigh.default.base_reachable_time_ms = 30000
161net.ipv4.neigh.default.gc_interval = 30
162net.ipv4.neigh.default.gc_thresh1 = 128
163net.ipv4.neigh.default.gc_thresh2 = 512
164net.ipv4.neigh.default.gc_thresh3 = 1024
165net.ipv4.neigh.lo.mcast_solicit = 3
166net.ipv4.neigh.lo.ucast_solicit = 3
167net.ipv4.neigh.lo.app_solicit = 0
168net.ipv4.neigh.lo.retrans_time = 100
169net.ipv4.neigh.lo.base_reachable_time = 30
170net.ipv4.neigh.lo.delay_first_probe_time = 5
171net.ipv4.neigh.lo.gc_stale_time = 60
172net.ipv4.neigh.lo.unres_qlen = 3
173net.ipv4.neigh.lo.proxy_qlen = 64
174net.ipv4.neigh.lo.anycast_delay = 100
175net.ipv4.neigh.lo.proxy_delay = 80
176net.ipv4.neigh.lo.locktime = 100
177net.ipv4.neigh.lo.retrans_time_ms = 1000
178net.ipv4.neigh.lo.base_reachable_time_ms = 30000
179net.ipv4.neigh.eth0.mcast_solicit = 3
180net.ipv4.neigh.eth0.ucast_solicit = 3
181net.ipv4.neigh.eth0.app_solicit = 0
182net.ipv4.neigh.eth0.retrans_time = 100
183net.ipv4.neigh.eth0.base_reachable_time = 30
184net.ipv4.neigh.eth0.delay_first_probe_time = 5
185net.ipv4.neigh.eth0.gc_stale_time = 60
186net.ipv4.neigh.eth0.unres_qlen = 3
187net.ipv4.neigh.eth0.proxy_qlen = 64
188net.ipv4.neigh.eth0.anycast_delay = 100
189net.ipv4.neigh.eth0.proxy_delay = 80
190net.ipv4.neigh.eth0.locktime = 100
191net.ipv4.neigh.eth0.retrans_time_ms = 1000
192net.ipv4.neigh.eth0.base_reachable_time_ms = 30000
193net.ipv4.neigh.sit0.mcast_solicit = 3
194net.ipv4.neigh.sit0.ucast_solicit = 3
195net.ipv4.neigh.sit0.app_solicit = 0
196net.ipv4.neigh.sit0.retrans_time = 100
197net.ipv4.neigh.sit0.base_reachable_time = 30
198net.ipv4.neigh.sit0.delay_first_probe_time = 5
199net.ipv4.neigh.sit0.gc_stale_time = 60
200net.ipv4.neigh.sit0.unres_qlen = 3
201net.ipv4.neigh.sit0.proxy_qlen = 64
202net.ipv4.neigh.sit0.anycast_delay = 100
203net.ipv4.neigh.sit0.proxy_delay = 80
204net.ipv4.neigh.sit0.locktime = 100
205net.ipv4.neigh.sit0.retrans_time_ms = 1000
206net.ipv4.neigh.sit0.base_reachable_time_ms = 30000
207net.ipv4.tcp_timestamps = 1
208net.ipv4.tcp_window_scaling = 6
209net.ipv4.tcp_sack = 1
210net.ipv4.tcp_retrans_collapse = 1
211net.ipv4.ip_default_ttl = 64
212net.ipv4.ip_no_pmtu_disc = 0
213net.ipv4.ip_nonlocal_bind = 0
214net.ipv4.tcp_syn_retries = 5
215net.ipv4.tcp_synack_retries = 5
216net.ipv4.tcp_max_orphans = 8192
217net.ipv4.tcp_max_tw_buckets = 8192
218net.ipv4.ip_dynaddr = 0
219net.ipv4.tcp_keepalive_time = 7200
220net.ipv4.tcp_keepalive_probes = 9
221net.ipv4.tcp_keepalive_intvl = 75
222net.ipv4.tcp_retries1 = 3
223net.ipv4.tcp_retries2 = 15
224net.ipv4.tcp_fin_timeout = 60
225net.ipv4.tcp_tw_recycle = 0
226net.ipv4.tcp_abort_on_overflow = 0
227net.ipv4.tcp_stdurg = 0
228net.ipv4.tcp_rfc1337 = 0
229net.ipv4.tcp_max_syn_backlog = 128
230net.ipv4.ip_local_port_range = 32768    61000
231net.ipv4.ip_local_reserved_ports =
232net.ipv4.igmp_max_memberships = 20
233net.ipv4.igmp_max_msf = 10
234net.ipv4.inet_peer_threshold = 65664
235net.ipv4.inet_peer_minttl = 120
236net.ipv4.inet_peer_maxttl = 600
237net.ipv4.inet_peer_gc_mintime = 10
238net.ipv4.inet_peer_gc_maxtime = 120
239net.ipv4.tcp_orphan_retries = 0
240net.ipv4.tcp_fack = 1
241net.ipv4.tcp_reordering = 3
242net.ipv4.tcp_ecn = 2
243net.ipv4.tcp_dsack = 1
244net.ipv4.tcp_mem = 7014 9354    14028
245net.ipv4.tcp_wmem = 4096        16384   299328
246net.ipv4.tcp_rmem = 4096        87380   299328
247net.ipv4.tcp_app_win = 31
248net.ipv4.tcp_adv_win_scale = 2
249net.ipv4.tcp_tw_reuse = 0
250net.ipv4.tcp_frto = 2
251net.ipv4.tcp_frto_response = 0
252net.ipv4.tcp_low_latency = 0
253net.ipv4.tcp_no_metrics_save = 0
254net.ipv4.tcp_moderate_rcvbuf = 1
255net.ipv4.tcp_tso_win_divisor = 3
256net.ipv4.tcp_congestion_control = cubic
257net.ipv4.tcp_abc = 0
258net.ipv4.tcp_mtu_probing = 0
259net.ipv4.tcp_base_mss = 512
260net.ipv4.tcp_workaround_signed_windows = 0
261net.ipv4.tcp_slow_start_after_idle = 1
262net.ipv4.tcp_available_congestion_control = cubic reno
263net.ipv4.tcp_allowed_congestion_control = cubic reno
264net.ipv4.tcp_max_ssthresh = 0
265net.ipv4.tcp_cookie_size = 0
266net.ipv4.tcp_thin_linear_timeouts = 0
267net.ipv4.tcp_thin_dupack = 0
268net.ipv4.udp_mem = 7014 9354    14028
269net.ipv4.udp_rmem_min = 4096
270net.ipv4.udp_wmem_min = 4096
271net.ipv4.conf.all.forwarding = 0
272net.ipv4.conf.all.mc_forwarding = 0
273net.ipv4.conf.all.accept_redirects = 1
274net.ipv4.conf.all.secure_redirects = 1
275net.ipv4.conf.all.shared_media = 1
276net.ipv4.conf.all.rp_filter = 0
277net.ipv4.conf.all.send_redirects = 1
278net.ipv4.conf.all.accept_source_route = 0
279net.ipv4.conf.all.accept_local = 0
280net.ipv4.conf.all.src_valid_mark = 0
281net.ipv4.conf.all.proxy_arp = 0
282net.ipv4.conf.all.medium_id = 0
283net.ipv4.conf.all.bootp_relay = 0
284net.ipv4.conf.all.log_martians = 0
285net.ipv4.conf.all.tag = 0
286net.ipv4.conf.all.arp_filter = 0
287net.ipv4.conf.all.arp_announce = 0
288net.ipv4.conf.all.arp_ignore = 0
289net.ipv4.conf.all.arp_accept = 0
290net.ipv4.conf.all.arp_notify = 0
291net.ipv4.conf.all.proxy_arp_pvlan = 0
292net.ipv4.conf.all.disable_xfrm = 0
293net.ipv4.conf.all.disable_policy = 0
294net.ipv4.conf.all.force_igmp_version = 0
295net.ipv4.conf.all.promote_secondaries = 0
296net.ipv4.conf.default.forwarding = 0
297net.ipv4.conf.default.mc_forwarding = 0
298net.ipv4.conf.default.accept_redirects = 1
299net.ipv4.conf.default.secure_redirects = 1
300net.ipv4.conf.default.shared_media = 1
301net.ipv4.conf.default.rp_filter = 0
302net.ipv4.conf.default.send_redirects = 1
303net.ipv4.conf.default.accept_source_route = 1
304net.ipv4.conf.default.accept_local = 0
305net.ipv4.conf.default.src_valid_mark = 0
306net.ipv4.conf.default.proxy_arp = 0
307net.ipv4.conf.default.medium_id = 0
308net.ipv4.conf.default.bootp_relay = 0
309net.ipv4.conf.default.log_martians = 0
310net.ipv4.conf.default.tag = 0
311net.ipv4.conf.default.arp_filter = 0
312net.ipv4.conf.default.arp_announce = 0
313net.ipv4.conf.default.arp_ignore = 0
314net.ipv4.conf.default.arp_accept = 0
315net.ipv4.conf.default.arp_notify = 0
316net.ipv4.conf.default.proxy_arp_pvlan = 0
317net.ipv4.conf.default.disable_xfrm = 0
318net.ipv4.conf.default.disable_policy = 0
319net.ipv4.conf.default.force_igmp_version = 0
320net.ipv4.conf.default.promote_secondaries = 0
321net.ipv4.conf.lo.forwarding = 0
322net.ipv4.conf.lo.mc_forwarding = 0
323net.ipv4.conf.lo.accept_redirects = 1
324net.ipv4.conf.lo.secure_redirects = 1
325net.ipv4.conf.lo.shared_media = 1
326net.ipv4.conf.lo.rp_filter = 0
327net.ipv4.conf.lo.send_redirects = 1
328net.ipv4.conf.lo.accept_source_route = 1
329net.ipv4.conf.lo.accept_local = 0
330net.ipv4.conf.lo.src_valid_mark = 0
331net.ipv4.conf.lo.proxy_arp = 0
332net.ipv4.conf.lo.medium_id = 0
333net.ipv4.conf.lo.bootp_relay = 0
334net.ipv4.conf.lo.log_martians = 0
335net.ipv4.conf.lo.tag = 0
336net.ipv4.conf.lo.arp_filter = 0
337net.ipv4.conf.lo.arp_announce = 0
338net.ipv4.conf.lo.arp_ignore = 0
339net.ipv4.conf.lo.arp_accept = 0
340net.ipv4.conf.lo.arp_notify = 0
341net.ipv4.conf.lo.proxy_arp_pvlan = 0
342net.ipv4.conf.lo.disable_xfrm = 1
343net.ipv4.conf.lo.disable_policy = 1
344net.ipv4.conf.lo.force_igmp_version = 0
345net.ipv4.conf.lo.promote_secondaries = 0
346net.ipv4.conf.eth0.forwarding = 0
347net.ipv4.conf.eth0.mc_forwarding = 0
348net.ipv4.conf.eth0.accept_redirects = 1
349net.ipv4.conf.eth0.secure_redirects = 1
350net.ipv4.conf.eth0.shared_media = 1
351net.ipv4.conf.eth0.rp_filter = 0[ 2414.137398] process `sysctl' is using deprecated sysctl (syscall) net.ipv6.neigh.default.retrans_time; Use net.ipv6.neigh.default.retrans_time_ms instead.
352 
353net.ipv4.conf.eth0.send_redirects = 1
354net.ipv4.conf.eth0.accept_source_route = 1
355net.ipv4.conf.eth0.accept_local = 0
356net.ipv4.conf.eth0.src_valid_mark = 0
357net.ipv4.conf.eth0.proxy_arp = 0
358net.ipv4.conf.eth0.medium_id = 0
359net.ipv4.conf.eth0.bootp_relay = 0
360net.ipv4.conf.eth0.log_martians = 0
361net.ipv4.conf.eth0.tag = 0
362net.ipv4.conf.eth0.arp_filter = 0
363net.ipv4.conf.eth0.arp_announce = 0
364net.ipv4.conf.eth0.arp_ignore = 0
365net.ipv4.conf.eth0.arp_accept = 0
366net.ipv4.conf.eth0.arp_notify = 0
367net.ipv4.conf.eth0.proxy_arp_pvlan = 0
368net.ipv4.conf.eth0.disable_xfrm = 0
369net.ipv4.conf.eth0.disable_policy = 0
370net.ipv4.conf.eth0.force_igmp_version = 0
371net.ipv4.conf.eth0.promote_secondaries = 0
372net.ipv4.conf.sit0.forwarding = 0
373net.ipv4.conf.sit0.mc_forwarding = 0
374net.ipv4.conf.sit0.accept_redirects = 1
375net.ipv4.conf.sit0.secure_redirects = 1
376net.ipv4.conf.sit0.shared_media = 1
377net.ipv4.conf.sit0.rp_filter = 0
378net.ipv4.conf.sit0.send_redirects = 1
379net.ipv4.conf.sit0.accept_source_route = 1
380net.ipv4.conf.sit0.accept_local = 0
381net.ipv4.conf.sit0.src_valid_mark = 0
382net.ipv4.conf.sit0.proxy_arp = 0
383net.ipv4.conf.sit0.medium_id = 0
384net.ipv4.conf.sit0.bootp_relay = 0
385net.ipv4.conf.sit0.log_martians = 0
386net.ipv4.conf.sit0.tag = 0
387net.ipv4.conf.sit0.arp_filter = 0
388net.ipv4.conf.sit0.arp_announce = 0
389net.ipv4.conf.sit0.arp_ignore = 0
390net.ipv4.conf.sit0.arp_accept = 0
391net.ipv4.conf.sit0.arp_notify = 0
392net.ipv4.conf.sit0.proxy_arp_pvlan = 0
393net.ipv4.conf.sit0.disable_xfrm = 0
394net.ipv4.conf.sit0.disable_policy = 0
395net.ipv4.conf.sit0.force_igmp_version = 0
396net.ipv4.conf.sit0.promote_secondaries = 0
397net.ipv4.ip_forward = 0
398net.ipv4.xfrm4_gc_thresh = 32768
399net.ipv4.ipfrag_high_thresh = 262144
400net.ipv4.ipfrag_low_thresh = 196608
401net.ipv4.ipfrag_time = 30
402net.ipv4.icmp_echo_ignore_all = 0
403net.ipv4.icmp_echo_ignore_broadcasts = 1
404net.ipv4.icmp_ignore_bogus_error_responses = 1
405net.ipv4.icmp_errors_use_inbound_ifaddr = 0
406net.ipv4.icmp_ratelimit = 1000
407net.ipv4.icmp_ratemask = 6168
408net.ipv4.rt_cache_rebuild_count = 4
409net.ipv4.ping_group_range = 1   0
410net.ipv4.ipfrag_secret_interval = 600
411net.ipv4.ipfrag_max_dist = 64
412net.ipv6.neigh.default.mcast_solicit = 3
413net.ipv6.neigh.default.ucast_solicit = 3
414net.ipv6.neigh.default.app_solicit = 0
415net.ipv6.neigh.default.retrans_time = 200
416net.ipv6.neigh.default.base_reachable_time = 30
417net.ipv6.neigh.default.delay_first_probe_time = 5
418net.ipv6.neigh.default.gc_stale_time = 60
419net.ipv6.neigh.default.unres_qlen = 3
420net.ipv6.neigh.default.proxy_qlen = 64
421net.ipv6.neigh.default.anycast_delay = 100
422net.ipv6.neigh.default.proxy_delay = 80
423net.ipv6.neigh.default.locktime = 0
424net.ipv6.neigh.default.retrans_time_ms = 1000
425net.ipv6.neigh.default.base_reachable_time_ms = 30000
426net.ipv6.neigh.default.gc_interval = 30
427net.ipv6.neigh.default.gc_thresh1 = 128
428net.ipv6.neigh.default.gc_thresh2 = 512
429net.ipv6.neigh.default.gc_thresh3 = 1024
430net.ipv6.neigh.lo.mcast_solicit = 3
431net.ipv6.neigh.lo.ucast_solicit = 3
432net.ipv6.neigh.lo.app_solicit = 0
433net.ipv6.neigh.lo.retrans_time = 200
434net.ipv6.neigh.lo.base_reachable_time = 30
435net.ipv6.neigh.lo.delay_first_probe_time = 5
436net.ipv6.neigh.lo.gc_stale_time = 60
437net.ipv6.neigh.lo.unres_qlen = 3
438net.ipv6.neigh.lo.proxy_qlen = 64
439net.ipv6.neigh.lo.anycast_delay = 100
440net.ipv6.neigh.lo.proxy_delay = 80
441net.ipv6.neigh.lo.locktime = 0
442net.ipv6.neigh.lo.retrans_time_ms = 1000
443net.ipv6.neigh.lo.base_reachable_time_ms = 30000
444net.ipv6.neigh.eth0.mcast_solicit = 3
445net.ipv6.neigh.eth0.ucast_solicit = 3
446net.ipv6.neigh.eth0.app_solicit = 0
447net.ipv6.neigh.eth0.retrans_time = 200
448net.ipv6.neigh.eth0.base_reachable_time = 30
449net.ipv6.neigh.eth0.delay_first_probe_time = 5
450net.ipv6.neigh.eth0.gc_stale_time = 60
451net.ipv6.neigh.eth0.unres_qlen = 3
452net.ipv6.neigh.eth0.proxy_qlen = 64
453net.ipv6.neigh.eth0.anycast_delay = 100
454net.ipv6.neigh.eth0.proxy_delay = 80
455net.ipv6.neigh.eth0.locktime = 0
456net.ipv6.neigh.eth0.retrans_time_ms = 1000
457net.ipv6.neigh.eth0.base_reachable_time_ms = 30000
458net.ipv6.neigh.sit0.mcast_solicit = 3
459net.ipv6.neigh.sit0.ucast_solicit = 3
460net.ipv6.neigh.sit0.app_solicit = 0
461net.ipv6.neigh.sit0.retrans_time = 200
462net.ipv6.neigh.sit0.base_reachable_time = 30
463net.ipv6.neigh.sit0.delay_first_probe_time = 5
464net.ipv6.neigh.sit0.gc_stale_time = 60
465net.ipv6.neigh.sit0.unres_qlen = 3
466net.ipv6.neigh.sit0.proxy_qlen = 64
467net.ipv6.neigh.sit0.anycast_delay = 100
468net.ipv6.neigh.sit0.proxy_delay = 80
469net.ipv6.neigh.sit0.locktime = 0
470net.ipv6.neigh.sit0.retrans_time_ms = 1000
471net.ipv6.neigh.sit0.base_reachable_time_ms = 30000
472net.ipv6.xfrm6_gc_thresh = 1024
473net.ipv6.conf.all.forwarding = 0
474net.ipv6.conf.all.hop_limit = 64
475net.ipv6.conf.all.mtu = 1280
476net.ipv6.conf.all.accept_ra = 1
477net.ipv6.conf.all.accept_redirects = 1
478net.ipv6.conf.all.autoconf = 1
479net.ipv6.conf.all.dad_transmits = 1
480net.ipv6.conf.all.router_solicitations = 3
481net.ipv6.conf.all.router_solicitation_interval = 4
482net.ipv6.conf.all.router_solicitation_delay = 1
483net.ipv6.conf.all.force_mld_version = 0
484net.ipv6.conf.all.max_addresses = 16
485net.ipv6.conf.all.accept_ra_defrtr = 1
486net.ipv6.conf.all.accept_ra_pinfo = 1
487net.ipv6.conf.all.proxy_ndp = 0
488net.ipv6.conf.all.accept_source_route = 0
489net.ipv6.conf.all.disable_ipv6 = 1