| 1 |
.TH "etcnet-options" "5" "0.9" "Denis Ovsienko <info@etcnet.org>" "" |
|---|
| 2 |
.SH "NAME" |
|---|
| 3 |
/etc/net interface options |
|---|
| 4 |
.SH "DESCRIPTION" |
|---|
| 5 |
|
|---|
| 6 |
.SH "Common options" |
|---|
| 7 |
.TP |
|---|
| 8 |
.B TYPE |
|---|
| 9 |
This option defines interface type. It is required, if interface type cannot be |
|---|
| 10 |
found from interface name and if DISABLED is not set. |
|---|
| 11 |
.TP |
|---|
| 12 |
.B DISABLED |
|---|
| 13 |
Set to "yes" to ignore the interface. Note that setting DISABLED |
|---|
| 14 |
to "yes" in ifaces/default/options and having no "DISABLED=no" |
|---|
| 15 |
in interface\-specific options file will effectively disable ALL |
|---|
| 16 |
interfaces. |
|---|
| 17 |
.TP |
|---|
| 18 |
.B BOOTPROTO |
|---|
| 19 |
BOOTPROTO can be any of the following: static, dhcp, ipv4ll. |
|---|
| 20 |
* "static": use ipv4address/ipv6address |
|---|
| 21 |
'static' has the same meaning as 'none' in initscripts/net\-scripts sense. |
|---|
| 22 |
If you don't want to assing any address to an interface, but still keep |
|---|
| 23 |
it up and running, you can just use 'static' and have no ipv4address file. |
|---|
| 24 |
* "dhcp": run DHCP client |
|---|
| 25 |
* "ipv4ll": run IPv4LL client (zcip) |
|---|
| 26 |
As far as I know, there are no working IPv6 DHCP |
|---|
| 27 |
implementations. IPv4LL is not required for IPv6 because of |
|---|
| 28 |
link\-scope addresses. |
|---|
| 29 |
Additional feature is multi\-method configurations (methods |
|---|
| 30 |
can be delimited by ' ', ',' or '\-': |
|---|
| 31 |
* "dhcp\-static": try DHCP, if it fails, configure static address(es) |
|---|
| 32 |
* "dhcp\-ipv4ll": same, but fallback to IPv4LL |
|---|
| 33 |
* "dhcp\-ipv4ll\-static": try DHCP, fallback to IPv4LL (very unlikely to fail), |
|---|
| 34 |
fallback to static |
|---|
| 35 |
/etc/net will try to configure interface at the first succeeding |
|---|
| 36 |
method. Note that etcnet will process routes and rules despite of |
|---|
| 37 |
BOOTPROTO. |
|---|
| 38 |
.TP |
|---|
| 39 |
.B ONBOOT |
|---|
| 40 |
Defines if the interface will be automatically brought up during |
|---|
| 41 |
system startup or 'service network start' invocation. |
|---|
| 42 |
.TP |
|---|
| 43 |
.B USE_HOTPLUG |
|---|
| 44 |
If set to yes, iface will be skipped during boot. |
|---|
| 45 |
Note that standard hotplug calls /sbin/ifup and /sbin/ifdown. |
|---|
| 46 |
This should be changed to /etc/net/scripts/ifup\-removable and |
|---|
| 47 |
/etc/net/scripts/ifdown\-removable respectively, if you wish to use |
|---|
| 48 |
etcnet from hotplug. |
|---|
| 49 |
.TP |
|---|
| 50 |
.B USE_PCMCIA |
|---|
| 51 |
Same for pcmcia_cs |
|---|
| 52 |
.TP |
|---|
| 53 |
.B CONFIG_IPV4, CONFIG_IPV6, CONFIG_IPX |
|---|
| 54 |
These boolean options define, if you want to perform configuration of particular protocol or not. |
|---|
| 55 |
.TP |
|---|
| 56 |
.B CONFIG_QOS |
|---|
| 57 |
This boolean function enables Linux QoS configuration. This topic is explained in etcnet\-qos manpage. |
|---|
| 58 |
.TP |
|---|
| 59 |
.B CONFIG_WIRELESS |
|---|
| 60 |
This boolean option enables wireless extensions configuration. |
|---|
| 61 |
.TP |
|---|
| 62 |
.B CONFIG_FW |
|---|
| 63 |
This boolean option enables firewall configuration. This topic is explained in README.firewall file. |
|---|
| 64 |
.TP |
|---|
| 65 |
.B KEEP_DOWN |
|---|
| 66 |
If set to yes, an interface will not be set UP, but configured. You are unlikely to need this option enabled. |
|---|
| 67 |
.TP |
|---|
| 68 |
.B DONT_FLUSH |
|---|
| 69 |
IPv4/IPv6. Don't flush existing addresses from interface before assigning new ones. Also don't flush addresses on deconfiguration. |
|---|
| 70 |
.TP |
|---|
| 71 |
.B IFUP_CHILDREN |
|---|
| 72 |
If set to yes, this variable will cause ifup call for all child (having current |
|---|
| 73 |
interface in their REQUIRES list) after the current interface is set up. |
|---|
| 74 |
.TP |
|---|
| 75 |
.B IFUP_PARENTS |
|---|
| 76 |
If set to yes, this variable will cause ifup call for all parent (listed in current |
|---|
| 77 |
REQUIRES list) before the current interface is set up. |
|---|
| 78 |
Note: this will not work for ifplugd\-controlled interfaces. |
|---|
| 79 |
.TP |
|---|
| 80 |
.B IFDOWN_CHILDREN |
|---|
| 81 |
If set to yes, this variable will cause ifdown call for all child (having current |
|---|
| 82 |
interface in their REQUIRES list) before the current interface is shut down. |
|---|
| 83 |
.TP |
|---|
| 84 |
.B IFDOWN_PARENTS |
|---|
| 85 |
If set to yes, this variable will cause ifdown call for all parent (listed in current |
|---|
| 86 |
REQUIRES list) after the current interface is shut down. |
|---|
| 87 |
Note: this will not work for ifplugd\-controlled interfaces. |
|---|
| 88 |
.SH "Ethernet options" |
|---|
| 89 |
.TP |
|---|
| 90 |
.B MODULE |
|---|
| 91 |
Kernel module name (or quoted list of names), which must be loaded before interface |
|---|
| 92 |
initialisation. |
|---|
| 93 |
.TP |
|---|
| 94 |
.B USE_IFPLUGD |
|---|
| 95 |
A special configuration method. The interface will be created, but no |
|---|
| 96 |
configuration will be done until cable is plugged in. When ifplugd |
|---|
| 97 |
detects cable presence on the interface, it will run ifup\-ifplugd to |
|---|
| 98 |
finish configuration. Values: |
|---|
| 99 |
no: don't use this feature |
|---|
| 100 |
yes: manage ifplugd for each such interface |
|---|
| 101 |
auto: same as 'yes', if ifplugd is available and the card supports |
|---|
| 102 |
link detection |
|---|
| 103 |
.TP |
|---|
| 104 |
.B PERSISTENT_IFPLUGD |
|---|
| 105 |
Two operational modes are possible with USE_IFPLUGD=auto: persistent ifplugd |
|---|
| 106 |
(ifplugd will be run once and then only suspended/resumed when needed) and |
|---|
| 107 |
temporary ifplugd (ifplugd will be killed at ifdown and started at ifup |
|---|
| 108 |
each time). Default mode is to keep persistent ifplugd process. |
|---|
| 109 |
.TP |
|---|
| 110 |
.B IFPLUGD_EXTRA_ARGS |
|---|
| 111 |
/etc/net will construct ifplugd arg list automatically, but you can |
|---|
| 112 |
add extra args with this option. |
|---|
| 113 |
.TP |
|---|
| 114 |
.B LINKDETECT |
|---|
| 115 |
LINKDETECT option allows to avoid DHCP/IPv4LL timeout, if ethernet cable is |
|---|
| 116 |
not plugged in during startup. This feature requires ifplugstatus |
|---|
| 117 |
and is off by default, because not all network cards report correct link |
|---|
| 118 |
status. Possible values are: yes/no/auto. |
|---|
| 119 |
'auto' is a special value. If your network card is known to report right |
|---|
| 120 |
link status, LINKDETECT feature will take effect. |
|---|
| 121 |
.TP |
|---|
| 122 |
.B LINKDELAY |
|---|
| 123 |
Some Ethernet interface modules require significant time to negotiate link |
|---|
| 124 |
parameters upon loading. Once the initial negitiation is complete, they indicate |
|---|
| 125 |
further link state changes correctly. This option specifies maximum number of |
|---|
| 126 |
seconds allowed for a |
|---|
| 127 |
module to report link absence before giving up and deciding, that the link |
|---|
| 128 |
is really absent. If the module reports link before timeout expires, it will |
|---|
| 129 |
be seen without spending all the time waiting. |
|---|
| 130 |
.TP |
|---|
| 131 |
.B MACADDR_WAITTIME |
|---|
| 132 |
Some network card modules create network device first, then perform |
|---|
| 133 |
some initialization and after some time fill in MAC address data. |
|---|
| 134 |
Hotplug starts working immediately after the interface is created, so |
|---|
| 135 |
if you use mac address match rule in iftab, it may happen to broke. |
|---|
| 136 |
If this variable is set to non\-zero, /etc/net will wait for specified |
|---|
| 137 |
amount of 0.1 sec times for MAC address to become not 00:00:00:00:00:00. |
|---|
| 138 |
WARNING: THIS IS EXPERIMENTAL FEATURE !!! |
|---|
| 139 |
.TP |
|---|
| 140 |
.B IWCONFIG |
|---|
| 141 |
Optional path to iwconfig. |
|---|
| 142 |
.TP |
|---|
| 143 |
.B WPA_SUPPLICANT |
|---|
| 144 |
Optional path to wpa_supplicant. |
|---|
| 145 |
.TP |
|---|
| 146 |
.B WPA_DRIVER |
|---|
| 147 |
Optional WPA driver name to pass to wpa_supplicant. |
|---|
| 148 |
.TP |
|---|
| 149 |
.B DHCP_CLIENT |
|---|
| 150 |
Full path to DHCP client. Currently dhclient and dhcpcd are |
|---|
| 151 |
recognized and command\-line options list built appropriately. |
|---|
| 152 |
.TP |
|---|
| 153 |
.B DHCP_TIMEOUT |
|---|
| 154 |
Optional DHCP client timeout in seconds. |
|---|
| 155 |
.TP |
|---|
| 156 |
.B DHCP_ARGS |
|---|
| 157 |
Optional additional DHCP client arguments. |
|---|
| 158 |
.TP |
|---|
| 159 |
.B DHCP_HOSTNAME |
|---|
| 160 |
Possible values: 'localhost' (compute a valid hostname and send it to |
|---|
| 161 |
DHCP server with \-h option); 'AUTO' (Get a hostname from DHCP server |
|---|
| 162 |
with \-H option); 'NONE' (don't send anything); any other string (send the string as a hostname with |
|---|
| 163 |
\-h). 'AUTO' value works with dhcpcd client only. |
|---|
| 164 |
.SH "VLAN options" |
|---|
| 165 |
.TP |
|---|
| 166 |
.B VLAN_REORDER_HDR |
|---|
| 167 |
This option allows changing the REORDER_HDR flag for each VLAN interface. The flag can be |
|---|
| 168 |
either 0 or 1 and its meaning is described in vconfig manpage. |
|---|
| 169 |
.SH "IP tunnels options" |
|---|
| 170 |
.TP |
|---|
| 171 |
.B TUNTYPE |
|---|
| 172 |
IP tunnel type: 'ipip' (default), 'gre' or 'sit'. |
|---|
| 173 |
.TP |
|---|
| 174 |
.B TUNLOCAL |
|---|
| 175 |
Local tunnel endpoint. |
|---|
| 176 |
.TP |
|---|
| 177 |
.B TUNREMOTE |
|---|
| 178 |
Remote tunnel endpoint. |
|---|
| 179 |
.TP |
|---|
| 180 |
.B TUNOPTIONS |
|---|
| 181 |
Append whatever you want (TTL, GRE keys etc). Don't set 'dev' here. |
|---|
| 182 |
.TP |
|---|
| 183 |
.B HOST |
|---|
| 184 |
Optional host interface. If set, this name will be used for 'dev' option. |
|---|
| 185 |
.SH "IPSec tunnels options" |
|---|
| 186 |
At least one of cipher or digest must be configured. |
|---|
| 187 |
CIPHERFILE and DIGESTFILE are searched in iface dir. |
|---|
| 188 |
If CIPHER is defined, CIPHERFILE must be defined too, |
|---|
| 189 |
same for DIGEST and DIGESTFILE. |
|---|
| 190 |
.TP |
|---|
| 191 |
.B IPSECADM |
|---|
| 192 |
(Optional) location of ipsecadm. |
|---|
| 193 |
.TP |
|---|
| 194 |
.B TUNLOCAL |
|---|
| 195 |
Local endpoint. |
|---|
| 196 |
.TP |
|---|
| 197 |
.B TUNREMOTE |
|---|
| 198 |
Remote endpoint. |
|---|
| 199 |
.TP |
|---|
| 200 |
.B TUNSPI |
|---|
| 201 |
SPI must be defined for an IPSec tunnel. SPI is a hexadecimal |
|---|
| 202 |
number, values less than 0x2000 are reserved. |
|---|
| 203 |
.TP |
|---|
| 204 |
.B CIPHER |
|---|
| 205 |
Cipher name. |
|---|
| 206 |
.TP |
|---|
| 207 |
.B CIPHERFILE |
|---|
| 208 |
Dipher file name. |
|---|
| 209 |
.TP |
|---|
| 210 |
.B DIGEST |
|---|
| 211 |
Digest name. |
|---|
| 212 |
.TP |
|---|
| 213 |
.B DIGESTFILE |
|---|
| 214 |
Digest file name. |
|---|
| 215 |
.TP |
|---|
| 216 |
.B HOST |
|---|
| 217 |
"ipsecadm \-\-nextdev" argument |
|---|
| 218 |
.SH "VLAN options" |
|---|
| 219 |
.TP |
|---|
| 220 |
.B VCONFIG |
|---|
| 221 |
Optional path to vconfig. |
|---|
| 222 |
.TP |
|---|
| 223 |
.B NAMETYPE |
|---|
| 224 |
Optional VLAN naming type, see vconfig \-\-help for details. This option |
|---|
| 225 |
is also used when processing vlantab. Possible values: VLAN_PLUS_VID, |
|---|
| 226 |
VLAN_PLUS_VID_NO_PAD, DEV_PLUS_VID, DEV_PLUS_VID_NO_PAD (default). |
|---|
| 227 |
.TP |
|---|
| 228 |
.B HOST |
|---|
| 229 |
Required parent iface name. |
|---|
| 230 |
.TP |
|---|
| 231 |
.B VID |
|---|
| 232 |
Required VLAN ID. |
|---|
| 233 |
.SH "DVB options" |
|---|
| 234 |
.TP |
|---|
| 235 |
.B DVBTYPE |
|---|
| 236 |
This is a mandatory option. Currently supported values are: |
|---|
| 237 |
ss223 for SkyStar\-2 rev. 2.3, ss226 for SkyStar\-2 rev. 2.6, |
|---|
| 238 |
pentanet for Pent@NET, pentaval for Pent@VALUE |
|---|
| 239 |
.LP |
|---|
| 240 |
SkyStar\-2 options |
|---|
| 241 |
.TP |
|---|
| 242 |
.B PID |
|---|
| 243 |
.TP |
|---|
| 244 |
.B SZAP |
|---|
| 245 |
.TP |
|---|
| 246 |
.B SZAP_ARGS |
|---|
| 247 |
.TP |
|---|
| 248 |
.B DVBNET |
|---|
| 249 |
.TP |
|---|
| 250 |
.B CHANNELS_CONF |
|---|
| 251 |
For SkyStar cards you can override channels.conf location (default is |
|---|
| 252 |
channels.conf in the interface's configuration directory. |
|---|
| 253 |
.LP |
|---|
| 254 |
Pent@NET options |
|---|
| 255 |
.TP |
|---|
| 256 |
.B PENTANETT |
|---|
| 257 |
pentanett location |
|---|
| 258 |
.TP |
|---|
| 259 |
.B PENTANET_CONF |
|---|
| 260 |
Config file name. |
|---|
| 261 |
.LP |
|---|
| 262 |
Pent@VALUE options |
|---|
| 263 |
.TP |
|---|
| 264 |
.B PENTAVALT |
|---|
| 265 |
pentavalt location |
|---|
| 266 |
.TP |
|---|
| 267 |
.B PENTAVAL_CONF |
|---|
| 268 |
config file name |
|---|
| 269 |
.SH "Bonding options" |
|---|
| 270 |
.TP |
|---|
| 271 |
.B IFENSLAVE |
|---|
| 272 |
.TP |
|---|
| 273 |
.B HOST |
|---|
| 274 |
.TP |
|---|
| 275 |
.B BONDMODE |
|---|
| 276 |
Operation mode (optional). Possible values: 0 for round robin (default), |
|---|
| 277 |
1 for active\-backup, 2 for xor, 3 for broadcast, 4 for IEEE 802.3ad |
|---|
| 278 |
Dynamic link aggregation. |
|---|
| 279 |
.TP |
|---|
| 280 |
.B BONDOPTIONS |
|---|
| 281 |
Additional options. This will have effect per interface. The list from |
|---|
| 282 |
modinfo bond is: |
|---|
| 283 |
.br |
|---|
| 284 |
miimon:int: Link check interval in milliseconds |
|---|
| 285 |
.br |
|---|
| 286 |
updelay:int: Delay before considering link up, in milliseconds |
|---|
| 287 |
.br |
|---|
| 288 |
downdelay:int: Delay before considering link down, in milliseconds |
|---|
| 289 |
.br |
|---|
| 290 |
use_carrier:int: Use netif_carrier_ok (vs MII ioctls) in miimon; 0 for off, 1 for on (default) |
|---|
| 291 |
.br |
|---|
| 292 |
primary:string: Primary network device to use |
|---|
| 293 |
.br |
|---|
| 294 |
lacp_rate:string: LACPDU tx rate to request from 802.3ad partner (slow/fast) |
|---|
| 295 |
.br |
|---|
| 296 |
arp_interval:int: arp interval in milliseconds |
|---|
| 297 |
.br |
|---|
| 298 |
arp_ip_target:string array (min = 1, max = 16): arp targets in n.n.n.n form |
|---|
| 299 |
.br |
|---|
| 300 |
.SH "Bridge options" |
|---|
| 301 |
.TP |
|---|
| 302 |
.B BRCTL |
|---|
| 303 |
Optional override of brctl path. |
|---|
| 304 |
.TP |
|---|
| 305 |
.B HOST |
|---|
| 306 |
This variable must be defined for each bridge interface. This is a |
|---|
| 307 |
(quoted) space\-separated list of slave ethernet interfaces combining the |
|---|
| 308 |
bridge. Don't forget to create configurations for the slave interfaces |
|---|
| 309 |
too. |
|---|
| 310 |
.SH "PPP options" |
|---|
| 311 |
.LP |
|---|
| 312 |
This section assumes knowledge of pppd(8) manpage. |
|---|
| 313 |
.TP |
|---|
| 314 |
.B PPPTYPE |
|---|
| 315 |
PPP subtype. Valid types are: dialup, pptp, pppoe. |
|---|
| 316 |
pptp and pptp types will benefit from correctly set REQIURES and |
|---|
| 317 |
respectively HOST variables. dialup subtype will add 'modem' to |
|---|
| 318 |
pppd options list. |
|---|
| 319 |
.TP |
|---|
| 320 |
.B PPTP_SERVER |
|---|
| 321 |
For "pptp" subtype you must specify hostname or IP address of PPtP server |
|---|
| 322 |
you connect to. Otherwise leave PPPTYPE=dialup. |
|---|
| 323 |
.TP |
|---|
| 324 |
.B HOST |
|---|
| 325 |
pppoe client requires target interface name. You must specify it in |
|---|
| 326 |
the HOST variable, create\-ppp will automatically construct correct |
|---|
| 327 |
pty option for pppd. This option is mandatory if PPPTYPE=pppoe. |
|---|
| 328 |
.TP |
|---|
| 329 |
.B PPPOE |
|---|
| 330 |
Optional pppoe path. |
|---|
| 331 |
.TP |
|---|
| 332 |
.B PPPOE_EXTRA_OPTIONS |
|---|
| 333 |
.TP |
|---|
| 334 |
.B PPTP |
|---|
| 335 |
Optional pptp\-client path. |
|---|
| 336 |
.TP |
|---|
| 337 |
.B PPTP_EXTRA_OPTIONS |
|---|
| 338 |
.TP |
|---|
| 339 |
.B PPPD |
|---|
| 340 |
pppd location, optional |
|---|
| 341 |
.TP |
|---|
| 342 |
.B PPPOPTIONS |
|---|
| 343 |
Additional pppd args. Note that interface\-specific options file |
|---|
| 344 |
will override PPPOPTIONS from options\-ppp, not append. WARNING! NEVER |
|---|
| 345 |
set "persist maxfail 0" for an interface with ONBOOT=yes, otherwise |
|---|
| 346 |
your host risks hanging forever. |
|---|
| 347 |
.TP |
|---|
| 348 |
.B CHAT |
|---|
| 349 |
chat location, optional |
|---|
| 350 |
.TP |
|---|
| 351 |
.B CHATOPTIONS |
|---|
| 352 |
chat options (timeout, verbose mode etc) |
|---|
| 353 |
.TP |
|---|
| 354 |
.B PPPOPTIONSFILE |
|---|
| 355 |
.TP |
|---|
| 356 |
.B PPPINITCHAT |
|---|
| 357 |
.TP |
|---|
| 358 |
.B PPPCONNECTCHAT |
|---|
| 359 |
.TP |
|---|
| 360 |
.B PPPDISCONNECTCHAT |
|---|
| 361 |
.TP |
|---|
| 362 |
.B RESTORE_DEFAULTROUTE |
|---|
| 363 |
pppd does not save default route for us. We could save and restore it |
|---|
| 364 |
with ip\-up/ip\-down, but this option will do the trick for us. |
|---|
| 365 |
.TP |
|---|
| 366 |
.B PPPTIMEOUT |
|---|
| 367 |
Your PPP link will not hang for more seconds, than specified here. |
|---|
| 368 |
/etc/net will pass according lcp\-echo\-interval and lcp\-echo\-failure |
|---|
| 369 |
options to pppd, if this options is set. |
|---|
| 370 |
|
|---|