]> git.pld-linux.org Git - projects/rc-scripts.git/blame - sysconfig/interfaces/ifcfg-description
- add support for CHECK_LINK_WAIT_TIMEOUT config variable (wait max x sec for interfa...
[projects/rc-scripts.git] / sysconfig / interfaces / ifcfg-description
CommitLineData
02bf0f4a 1
de1fc6ce 2DEVICE=<name>
5301b5f6
AM
3
4[ BOOTPRIO=number ]
5 ifcfg-* interfaces are configured in BOOTPRIO order starting
6 from lowest value first. You need to set BOOTPRIO in _all_ your
7 ifcfg* files because if you won't do that only these interfaces
8 with BOOTPRIO variable will be configured. Use the same schema
d584de99
AM
9 when setting variable for example BOOTPRIO=number
10 or BOOTPRIO="number" because sorting is done by sort command.
5301b5f6 11
16eb00d9 12[ BOOTPROTO={none|bootp|dhcp|pump} ]
de1fc6ce
JR
13 You can specify which dhcp client to use with the DHCP_CLIENT, if
14 the DHCP_CLIENT is not specified we trying to launch in order :
15 /sbin/dhcpcd
16 /sbin/dhclient
17 /sbin/dhcpxd
18 /sbin/pump
19 if you have a preferred client define the DHCP_CLIENT variable.
3b2875b6 20 You can also pass some options to dhcp client via DHCP_OPTIONS.
de1fc6ce 21
16eb00d9
JR
22[ BOOTPROTO6={none|dhcp6|v4compat}
23 dhcp6 isn't supported, yet.
de1fc6ce
JR
24 v4compat uses available IPv4 addresses (ie. from DHCPv4)
25 and then convert them to IPv6 (IPv4-compatible) to use with
26 automatic tunnels
27
28
29IPADDR="(IPv4 or IPv6 address)/prefix"
30IP_AOPTS="broadcast xxx etc" (by default broadcast is autocalculated)
31IP_ROPTS=""
a5663ae6 32IP_LABEL=""
de1fc6ce
JR
33
34IPADDR1=
35IP_AOPTS1= options for ip addr add
36IP_ROPTS1= options for ip route add (currently used only for IP4_PRIM_IF)
a5663ae6 37IP_LABEL1= IPv6 address label as per RFC 3484 (ip addrlabel ...)
de1fc6ce
JR
38
39IP4_PRIM_IF="1" # number of primary IPv4 interface (IPADDRx)
40IP4_SRC_IF="1" # number of IPv4 address for ip's ,,src'' parameter
3bbbad5c 41IP6_PRIM_IF="" #
de1fc6ce 42
03f9cfee 43[ ONBOOT={no|yes} ]
3bbbad5c 44[ HOTPLUG={no|yes} ] - bring up from hotplug (udev for example) (default to no)
6a2c03da 45[ MULTICAST={|no|yes} ] - for eth automatically set to yes
46[ ARP={no|yes} ] - for eth automatically set to yes
de1fc6ce
JR
47[ IPV6_DISABLE_AUTOCONF={yes|no} ] - disable IPv6 autoconfiguration
48
49[ IPX=yes|no ]
50if IPX=yes ; then
51
52 IPXNETNUM_{802_2,802_2TR,802_3,EtherII,SNAP}
53 IPXPRIMARY_{802_2,802_2TR,802_3,EtherII,SNAP}=yes|no
54 IPXACTIVE_{802_2,802_2TR,802_3,EtherII,SNAP}=yes|no
55fi
56
b2d62426
AM
57[ MTU= ]
58[ METRIC= ]
6a2c03da 59[ PROXYARP={yes|no} ]
b2d62426 60
45f7fc7c
AM
61QDISC=[sfq|teql0|red|prio|...] (queueing discipline)
62QDISC_CLASS=[htb|cbq|none] (use cbq|htb as class based discipline;
63 if none specified and bandwidth_out present
64 then tbf is used)
65BANDWIDTH_IN=[upstream limit in kilobites, supported on 2.4 only]
66BANDWIDTH_OUT=[downstream limit in kilobites]
642c5ec3 67
59c43d6f
JR
68VLAN_REORDER_HDR=[0|1] When this is set, the VLAN device will move the
69 ethernet header around to make it look exactly like a
70 real ethernet device. This may help programs such
71 as DHCPd which read the raw ethernet packet and
72 make assumptions about the location of bytes.
73 If you don't need it, don't turn it on, because there
74 will be at least a small performance degradation.
75 Default is ON.
76
3bf0ecee
AM
77[ VLAN_GVRP=yes|no ] Enable GVRP.
78
de1fc6ce
JR
79[ DEFAULTHANDLING=yes|no ] (used in configuration for ATM interfaces,
80 obsolete variable)
81[ HANDLING=0|1|2|3 ] (0 is default; used ie. in ATM configuration, for
82 details see ifup script)
83
f71a1391
AO
84[ CHECK_LINK_WAIT_TIMEOUT=<wait max x sec for interface link up> ]
85
2fb1e1f2 86if DEVICE=eth*; then
b2d62426
AM
87
88 [ MEDIA={auto|10baseT|10base2|AUI} ]
2fb1e1f2 89 [ MACADDR=<hw address> ]
a6c22d3d 90
d9ce326a
AM
91 if macvlan
92 MACVLAN_DEV=<exitsting base interface eg. eth0>
93 MACVLAN_MACADDR=<desired hw address of new interface>
a61559d7 94 MACVLAN_MODE=<desired mode of new interface (private, vepa, bridge, passthru, source)>
d9ce326a
AM
95 fi
96
97
a6c22d3d 98 if DEVICE=wireless interface (man iwconfig(8))
1c481055
AM
99 WLAN_UPEARLY=<yes>|<no> Up device before setting any WLAN parameters
100 (needed for some drivers)
a6c22d3d
AM
101 WLAN_ESSID=<ESSID or Network Name (Domain ID)>|any|off
102 WLAN_NWID=<Network ID (Domain ID)>|off
103 WLAN_FREQ=<frequency> (2.422G)
104 WLAN_CHANNEL=<channel number> (3)
105 WLAN_SENS=<the sensitivity threshold>
106 WLAN_MODE=ad-hoc|managed|master|repeater|secondary|auto
107 WLAN_AP=<Access Point address>|any|auto|off
108 WLAN_NICKNAME=<station nickname)
109 WLAN_BITRATE=<bitrate like 11M>|auto|fixed
110 WLAN_RTS_THRESHOLD=<rts/cts threshold>|auto|fixed|off
111 WLAN_FRAGMENTATION_THRESHOLD=<frag threshold>|auto|fixed|off
112 WLAN_KEY=XXXX-XXXX-XXXX-XXXX|XXXXXXXX|s:<ascii string>
2fb1e1f2
ER
113 if WLAN_KEY; then
114 WLAN_KEY_1=... <optional>
115 WLAN_KEY_2=... <optional>
116 WLAN_KEY_3=... <optional>
117 WLAN_KEY_4=... <optional>
118 WLAN_KEY_CURRENT=index <optional>
119 fi
a6c22d3d
AM
120 WLAN_ENCRYPTION=on|off|open|restricted
121 WLAN_POWER=period <value>|timeout <value>|on|off|all|unicast|multicast
122 WLAN_TXPOWER=<power in dBm>|<power in mW>mW|auto|on|off
123 WLAN_RETRY=limit <value>|lifetime <value>
124 WLAN_COMMIT=yes|no (some cards require manual commit of changes)
49ee1da7 125 if WLAN_WPA=yes; then
b0c1b021 126 WLAN_WPA_WAIT_TIMEOUT=<wait max x sec for wpa_suplicant>
e5fcee11 127 WLAN_WPA_DRIVER=<driver: see -D option of wpa_supplicant; default is wext>
49ee1da7
AM
128 WLAN_WPA_CONFIG=<path to wpa_supplicant config file>
129 WLAN_WPA_OPTIONS=[additional wpa_supplicant options]
130 fi
a6c22d3d 131 fi
3bbbad5c 132
de1fc6ce 133elif DEVICE=ppp* || DEVICE=sl* ; then
3bbbad5c 134
b2d62426
AM
135 PERSIST=yes|no
136 MODEMPORT=<device, say /dev/modem>
137 LINESPEED=<speed, say 115200>
3bbbad5c 138 DEFABORT=yes|no
ba4d0a62
AM
139 DIRECT_CONNECT=yes|no (direct connection without chat/wvdial used for example
140 on SDI or leased lines)
3bbbad5c 141
b2d62426 142 if DEVICE=ppp* ; then
3bbbad5c 143
03f9cfee 144 AUTH=yes|no
de1fc6ce 145 PEERDNS=yes|no
b2d62426
AM
146 DEFROUTE=yes|no
147 ESCAPECHARS=yes|no
78524463 148 SYNC=yes|no (yes implies "sync" option)
41d90072 149 HOLDOFF=30
9f120d98 150 HARDFLOWCTL=yes|no (yes implies "modem crtscts" options)
b2d62426
AM
151 PPPOPTIONS=<arbitrary option string>
152 PAPNAME=<"name $PAPNAME" on pppd command line>
de1fc6ce
JR
153 REMIP=<remote ip4 address, normally unspecified>
154 REMIP6=<remote ip6 address, normally unspecified>
b2d62426
AM
155 MRU=
156 DISCONNECTTIMEOUT=<number of seconds, default currently 5>
157 RETRYTIMEOUT=<number of seconds, default currently 60>
158 INITSCRIPT=<modem command>
159 DATAFORCHAT=<list of variables>
160 <anything>=<anything> (for chat script)
de1fc6ce
JR
161 IPV6_PPP=yes|no (use IPv6 for ppp ?)
162 if IPV6_PPP = yes ; then
163 IPV6_CP_USEV4=yes|no (use local IPv4 mapped addresses
164 as IPv6 addresses)
165 IPV6_CP_PERSISTENT=yes|no (use EUI-48 addresses
166 as IPv6 addresses; not
167 supported on Linux, yet)
168 or by default use address specified by IP6_PRIM_IF
169 and REMIP6
170 fi
b5931384
AM
171 PPPOA=yes|no (generic PPP over ATM)
172 if PPPOA = yes ; then
173 PPPOA_VPI=<VPI number>
174 PPPOA_VCI=<VCI number>
175 fi
c3bd5d9f 176 PPPOE_DEV=<ethX> (PPP over Ethernet device)
b5931384
AM
177 if PPPOE_DEV exists ; then
178 PPPOE_KERNEL=yes|no (use or not kernel space PPPoE support)
179 PPPOE_OPT=<options> (used only with userspace pppoe program)
180 fi
181 PPPOA_EAGLE=yes|no (eagle-usb support)
182 if PPPOA_EAGLE = yes ; then
183 PPPOA_OPT=<options> (used only with userspace pppoa program)
184 fi
185 PPPOA_SPEEDTOUCH=yes|no (speedtouch support)
186 if PPPOA_SPEEDTOUCH = yes ; then
187 PPPOA_KERNEL=yes|no (use or not kernel space PPPoA support)
188 PPPOA_VPI=<VPI number>
189 PPPOA_VCI=<VCI number>
190 PPPOA_OPT=<options> (used only with userspace pppoa program)
191 fi
c3bd5d9f
AM
192 UNIT=yes|no (pass unit option to pppd (depends on DEVICE name)
193 defaults to yes)
b7be30eb 194 WVDIALSECT= (section in wvdial config maybe)
de1fc6ce 195 fi
b2d62426 196
de1fc6ce 197 if DEVICE=sl* ; then (SLIP)
de1fc6ce
JR
198 PROTOCOL=slip|cslip|adaptive
199 REMIP=<remote ip4 address>
200 REMIP6=<remote ip6 address, normally unspecified>
201 fi
202
203elif DEVICE=br* ; then /* Bridge */
204
205 BRIDGE_DEVS=<list of devices betwen which do bridging>
206 Note: separation configuration for devices in this list
207 should be avoided !
208 AGEING=<ethernet (MAC) address ageing time in seconds>
209 GCINT=<garbage collection interval time for the bridge in seconds>
210
211 SPANNING_TREE=yes|no (enable SPT - Spanning Tree Protocol)
212 if SPANNING_TREE=yes ; then
213 BRIDGEPRIO=<bridge's priority; 0-65535; less == better>
214 FD=<bridge forward delay time in seconds>
215 HELLO=<bridge hello time in seconds>
216 MAXAGE=<maximum message age in seconds>
217 PATHCOST_PORT=<port number>
218 PATHCOST=<cost of the port specified in PATHCOST_PORT>
219 Note: both PATHCOST_PORT and PATHCOST must be
220 specified to set cost of port
221 PORTPRIO_PORT=<port>
222 PORTPRIO=<port priority used by port selection algorithms;
223 a number between 0 and 255>
224 Note: see note above
b2d62426 225 fi
a6c22d3d 226elif DEVICE=irda* ; then /* IrDA */
3bbbad5c 227
a6c22d3d
AM
228 IRDAPORT=<device, say /dev/ttyS1>
229 DONGLE=<driver, see README.irattach from irda-utils package>
230 DISCOVERY=yes|no (starts discovery of remote IrDA devices)
b2d62426 231fi
3bbbad5c 232
f5446505
MM
233# You can also run commands before/after a device has been brought up or down.
234# Just create functions run_up/run_pre_up/run_down/run_pre_down.
235run_pre_up()
236{
237 echo "This will be executed before device is brought up!"
238}
239
201c98b9
AM
240run_up()
241{
2967b929 242 echo "This will be executed after device is brought up!"
201c98b9
AM
243}
244
f5446505
MM
245run_pre_down()
246{
247 echo "This will be executed before device is brought down!"
248}
249
201c98b9
AM
250run_down()
251{
2967b929 252 echo "This will be executed after device is brought down!"
201c98b9 253}
This page took 0.966806 seconds and 4 git commands to generate.