File: network-test-default

package info (click to toggle)
ifupdown-extra 0.34
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 176 kB
  • sloc: sh: 1,064; makefile: 15
file content (46 lines) | stat: -rw-r--r-- 2,199 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Defaults for ifupdown-extra testing scripts
# sourced by scripts at /etc/network/if-{pre-,-}up.d
# installed at /etc/default/network-test by the maintainer scripts
# while respecting exported shell environment variables

# Tells scripts to log to syslog the tests done before an interface
# is configured. Since standard output of the scripts is sent to the
# logging system, the default is to not log directly.
# Set this to "yes" if you just want to force the use of syslog
# (you could get duplicate logs)
DO_SYSLOG=${DO_SYSLOG:-no}

# Abort scripts (do not continue) if the network link is not up
ABORT_NO_LINK=${ABORT_NO_LINK:-no}

# Run the network cable test
# Please bear in mind that depending on your hardware and the time
# required for it to set the link up the cable test might return that
# an Ethernet cable is not connected when it is still being negotiated.
# If this happens in your system replace this option with "no"
DO_CABLETEST=${DO_CABLETEST:-yes}

# Additional options that are passed to ARPING scripts
#
# DO_ARPING tells the scripts to test if an IPv4 or IPv6 address is already
# assigned in the network (using arping for IPv4 and ndisc6 for IPv6, if
# available). The scripts provided will log this event to syslog and can be
# used to detect network configuration errors.
#
# Please bear in mind that these type of network probes will introduce a delay
# when configuring the interface (if everything is OK) since the scripts will
# have to wait until the tool sends the probes and finishes before configuring
# an interface. Set this to 'no' if you do not want this delay and want to skip
# these tests.
DO_ARPING=${DO_ARPING:-yes}
#
# These values control how many arp pings are sent when doing ARP tests
# The higher the count (or timeout) the more time it will take for those
# scripts to finish but it might make it more easy to detect faulty
# counditions in overloaded networks.
ARP_COUNT=${ARP_COUNT:-2}
ARP_TIMEOUT=${ARP_TIMEOUT:-3}

# NOTE: ARP_TIMEOUT is set for 3 seconds, which is valid if you are using
# iputils-arping (/usr/bin/arping). If you are using the arping package then
# the value should be set in milliseconds and it should be at least 1500