lgatuk 发表于 2013-12-02 09:49

配置文件里中括号里面的索引序号应该写多少

有个工程师告诉我配置这个文件:
NOTE:The changes will last until the next reboot.For permanent changes,
edit /etc/rc.config.d/nddconf:

   TRANSPORT_NAME=ip
   NDD_NAME=ip_ire_gw_probe
   NDD_VALUE=0

Replace the X in the brackets with the appropriate index, e.g. .
最后一句的意思就是 “括号中的X替换为相应的指数,例如。”

请问我的这个配置文档中,我想加入上述工程师说的参数的话,X应该是几呢? 0?5?

请看我的这个配置文件内容[/]#more /etc/rc.config.d/nddconf
# nddconf:network tunable parameters for Streams TCP/IP
#
# @(#)B.11.31_LR $Revision: 1.1.119.4 $ $Date: 97/04/23 15:18:44 $
#
# Network tunable parameters read in by the networking startup script -
# /sbin/init.d/net or by executing "ndd -c".
#
# TRANSPORT_NAME:   Name of transport component, valid names are:
#                     ip, tcp, udp, rawip, and arp.
#
# NDD_NAME:         Name of ndd tunable parameter
#
# NDD_VALUE:          Value for ndd tunable parameter
#
# Note: Set all clock time values in milliseconds.For example,
#      240000 = 4 minutes
#
# Note: The ndd tunable parameters specified in this file must be writable.
#       "ndd -c" can only handle the write operation.
#
# For each additional tunable parameter, add a set of variable assignments
# like the ones below, changing the index to "", "" et cetera.
# Index must be starting from 0 and they must be in sequential order.
# Missing index values inside the array range is not supported.   
#
#
# Example 1: Change the interval for sending the first keepalive probes
#            for idle TCP connection to one hour
# TRANSPORT_NAME=tcp
# NDD_NAME=tcp_keepalive_interval
# NDD_VALUE=3600000
#
#
# Example 2:Change the interval for sending keepalive probes to 1 minute
#             when TCP is detached. (e.g.FIN_WAIT_2)
# TRANSPORT_NAME=tcp
# NDD_NAME=tcp_keepalive_detached_interval
# NDD_VALUE=60000
#
#
# Example 3:Change the amount of time TCP endpoints persist in TIME_WAIT
#             state to 30 seconds.
# TRANSPORT_NAME=tcp
# NDD_NAME=tcp_time_wait_interval
# NDD_VALUE=30000
#
# Example 4:Change the UDP default ttl parameter to 128
# TRANSPORT_NAME=udp
# NDD_NAME=udp_def_ttl
# NDD_VALUE=128
#
# Example 5: Change the amount of time that ARP entries can stay in
#            ARP cache to 10 minutes.
#
# TRANSPORT_NAME=arp
# NDD_NAME=arp_cleanup_interval
# NDD_VALUE=600000
#

lbseraph 发表于 2013-12-02 10:56

按顺序下来,如果之前没有配过的话,先用0;如果有0和1了,则用2。

lgatuk 发表于 2013-12-02 12:57

回复 2# lbseraph


    我想问 之前不是有0到4嘛 但是都被#注释了那我想加入一个新的 是用0还是5?

lbseraph 发表于 2013-12-02 19:31

注释掉的那些都是例子而已~一切从0开始~:wink:

lgatuk 发表于 2013-12-03 09:18

回复 4# lbseraph


    谢谢
页: [1]
查看完整版本: 配置文件里中括号里面的索引序号应该写多少