- 论坛徽章:
- 2
|
有个工程师告诉我配置这个文件:
NOTE: The changes will last until the next reboot. For permanent changes,
edit /etc/rc.config.d/nddconf:
TRANSPORT_NAME[X]=ip
NDD_NAME[X]=ip_ire_gw_probe
NDD_VALUE[X]=0
Replace the X in the brackets with the appropriate index, e.g. [0].
最后一句的意思就是 “括号中的X替换为相应的指数,例如[0]。”
请问我的这个配置文档中,我想加入上述工程师说的参数的话,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 "[0]", "[1]" 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[0]=tcp
- # NDD_NAME[0]=tcp_keepalive_interval
- # NDD_VALUE[0]=3600000
- #
- #
- # Example 2: Change the interval for sending keepalive probes to 1 minute
- # when TCP is detached. (e.g.FIN_WAIT_2)
- # TRANSPORT_NAME[1]=tcp
- # NDD_NAME[1]=tcp_keepalive_detached_interval
- # NDD_VALUE[1]=60000
- #
- #
- # Example 3: Change the amount of time TCP endpoints persist in TIME_WAIT
- # state to 30 seconds.
- # TRANSPORT_NAME[2]=tcp
- # NDD_NAME[2]=tcp_time_wait_interval
- # NDD_VALUE[2]=30000
- #
- # Example 4: Change the UDP default ttl parameter to 128
- # TRANSPORT_NAME[3]=udp
- # NDD_NAME[3]=udp_def_ttl
- # NDD_VALUE[3]=128
- #
- # Example 5: Change the amount of time that ARP entries can stay in
- # ARP cache to 10 minutes.
- #
- # TRANSPORT_NAME[4]=arp
- # NDD_NAME[4]=arp_cleanup_interval
- # NDD_VALUE[4]=600000
- #
复制代码 |
|