]>
Commit | Line | Data |
---|---|---|
3b2875b6 | 1 | # $Id: ifcfg-description,v 1.18 2002/11/12 15:54:04 kloczek Exp $ |
de1fc6ce | 2 | DEVICE=<name> |
16eb00d9 | 3 | [ BOOTPROTO={none|bootp|dhcp|pump} ] |
de1fc6ce JR |
4 | You can specify which dhcp client to use with the DHCP_CLIENT, if |
5 | the DHCP_CLIENT is not specified we trying to launch in order : | |
6 | /sbin/dhcpcd | |
7 | /sbin/dhclient | |
8 | /sbin/dhcpxd | |
9 | /sbin/pump | |
10 | if you have a preferred client define the DHCP_CLIENT variable. | |
3b2875b6 | 11 | You can also pass some options to dhcp client via DHCP_OPTIONS. |
de1fc6ce | 12 | |
16eb00d9 JR |
13 | [ BOOTPROTO6={none|dhcp6|v4compat} |
14 | dhcp6 isn't supported, yet. | |
de1fc6ce JR |
15 | v4compat uses available IPv4 addresses (ie. from DHCPv4) |
16 | and then convert them to IPv6 (IPv4-compatible) to use with | |
17 | automatic tunnels | |
18 | ||
19 | ||
20 | IPADDR="(IPv4 or IPv6 address)/prefix" | |
21 | IP_AOPTS="broadcast xxx etc" (by default broadcast is autocalculated) | |
22 | IP_ROPTS="" | |
23 | ||
24 | IPADDR1= | |
25 | IP_AOPTS1= options for ip addr add | |
26 | IP_ROPTS1= options for ip route add (currently used only for IP4_PRIM_IF) | |
27 | ||
28 | IP4_PRIM_IF="1" # number of primary IPv4 interface (IPADDRx) | |
29 | IP4_SRC_IF="1" # number of IPv4 address for ip's ,,src'' parameter | |
30 | IP6_PRIM_IF="" # | |
31 | IP6_SRC_IF="" # | |
32 | ||
03f9cfee | 33 | [ ONBOOT={no|yes} ] |
de1fc6ce JR |
34 | [ MULTICAST={|no|yes} ] - for eth automamaticly set to yes |
35 | [ ARP={no|yes} ] - for eth automamaticly set to yes | |
36 | [ IPV6_DISABLE_AUTOCONF={yes|no} ] - disable IPv6 autoconfiguration | |
37 | ||
38 | [ IPX=yes|no ] | |
39 | if IPX=yes ; then | |
40 | ||
41 | IPXNETNUM_{802_2,802_2TR,802_3,EtherII,SNAP} | |
42 | IPXPRIMARY_{802_2,802_2TR,802_3,EtherII,SNAP}=yes|no | |
43 | IPXACTIVE_{802_2,802_2TR,802_3,EtherII,SNAP}=yes|no | |
44 | fi | |
45 | ||
b2d62426 AM |
46 | [ MTU= ] |
47 | [ METRIC= ] | |
48 | ||
45f7fc7c AM |
49 | QDISC=[sfq|teql0|red|prio|...] (queueing discipline) |
50 | QDISC_CLASS=[htb|cbq|none] (use cbq|htb as class based discipline; | |
51 | if none specified and bandwidth_out present | |
52 | then tbf is used) | |
53 | BANDWIDTH_IN=[upstream limit in kilobites, supported on 2.4 only] | |
54 | BANDWIDTH_OUT=[downstream limit in kilobites] | |
642c5ec3 | 55 | |
de1fc6ce JR |
56 | [ DEFAULTHANDLING=yes|no ] (used in configuration for ATM interfaces, |
57 | obsolete variable) | |
58 | [ HANDLING=0|1|2|3 ] (0 is default; used ie. in ATM configuration, for | |
59 | details see ifup script) | |
60 | ||
b2d62426 AM |
61 | if DEVICE=eth* ; then |
62 | ||
63 | [ MEDIA={auto|10baseT|10base2|AUI} ] | |
64 | [ MAC=<hw addres> ] | |
a6c22d3d AM |
65 | |
66 | if DEVICE=wireless interface (man iwconfig(8)) | |
67 | WLAN_ESSID=<ESSID or Network Name (Domain ID)>|any|off | |
68 | WLAN_NWID=<Network ID (Domain ID)>|off | |
69 | WLAN_FREQ=<frequency> (2.422G) | |
70 | WLAN_CHANNEL=<channel number> (3) | |
71 | WLAN_SENS=<the sensitivity threshold> | |
72 | WLAN_MODE=ad-hoc|managed|master|repeater|secondary|auto | |
73 | WLAN_AP=<Access Point address>|any|auto|off | |
74 | WLAN_NICKNAME=<station nickname) | |
75 | WLAN_BITRATE=<bitrate like 11M>|auto|fixed | |
76 | WLAN_RTS_THRESHOLD=<rts/cts threshold>|auto|fixed|off | |
77 | WLAN_FRAGMENTATION_THRESHOLD=<frag threshold>|auto|fixed|off | |
78 | WLAN_KEY=XXXX-XXXX-XXXX-XXXX|XXXXXXXX|s:<ascii string> | |
79 | WLAN_ENCRYPTION=on|off|open|restricted | |
80 | WLAN_POWER=period <value>|timeout <value>|on|off|all|unicast|multicast | |
81 | WLAN_TXPOWER=<power in dBm>|<power in mW>mW|auto|on|off | |
82 | WLAN_RETRY=limit <value>|lifetime <value> | |
83 | WLAN_COMMIT=yes|no (some cards require manual commit of changes) | |
84 | fi | |
b2d62426 | 85 | |
de1fc6ce | 86 | elif DEVICE=ppp* || DEVICE=sl* ; then |
b2d62426 AM |
87 | |
88 | PERSIST=yes|no | |
89 | MODEMPORT=<device, say /dev/modem> | |
90 | LINESPEED=<speed, say 115200> | |
91 | DEFABORT=yes|no | |
92 | ||
93 | if DEVICE=ppp* ; then | |
94 | ||
03f9cfee | 95 | AUTH=yes|no |
de1fc6ce | 96 | PEERDNS=yes|no |
b2d62426 AM |
97 | DEFROUTE=yes|no |
98 | ESCAPECHARS=yes|no | |
99 | HARDFLOWCTL=yes|no (yes imples "modem crtscts" options) | |
100 | PPPOPTIONS=<arbitrary option string> | |
101 | PAPNAME=<"name $PAPNAME" on pppd command line> | |
de1fc6ce JR |
102 | REMIP=<remote ip4 address, normally unspecified> |
103 | REMIP6=<remote ip6 address, normally unspecified> | |
b2d62426 AM |
104 | MRU= |
105 | DISCONNECTTIMEOUT=<number of seconds, default currently 5> | |
106 | RETRYTIMEOUT=<number of seconds, default currently 60> | |
107 | INITSCRIPT=<modem command> | |
108 | DATAFORCHAT=<list of variables> | |
109 | <anything>=<anything> (for chat script) | |
de1fc6ce JR |
110 | IPV6_PPP=yes|no (use IPv6 for ppp ?) |
111 | if IPV6_PPP = yes ; then | |
112 | IPV6_CP_USEV4=yes|no (use local IPv4 mapped addresses | |
113 | as IPv6 addresses) | |
114 | IPV6_CP_PERSISTENT=yes|no (use EUI-48 addresses | |
115 | as IPv6 addresses; not | |
116 | supported on Linux, yet) | |
117 | or by default use address specified by IP6_PRIM_IF | |
118 | and REMIP6 | |
119 | fi | |
c3bd5d9f AM |
120 | PPPOE_DEV=<ethX> (PPP over Ethernet device) |
121 | PPPOE_KERNEL=yes|no (use or not kernel space PPPoE support) | |
122 | PPPOE_OPT=<options> (used only with userspace pppoe program) | |
123 | UNIT=yes|no (pass unit option to pppd (depends on DEVICE name) | |
124 | defaults to yes) | |
de1fc6ce | 125 | fi |
b2d62426 | 126 | |
de1fc6ce JR |
127 | if DEVICE=sl* ; then (SLIP) |
128 | DIRECT_CONNECT=yes|no (dirrect connection via slattach ?) | |
129 | PROTOCOL=slip|cslip|adaptive | |
130 | REMIP=<remote ip4 address> | |
131 | REMIP6=<remote ip6 address, normally unspecified> | |
132 | fi | |
133 | ||
134 | elif DEVICE=br* ; then /* Bridge */ | |
135 | ||
136 | BRIDGE_DEVS=<list of devices betwen which do bridging> | |
137 | Note: separation configuration for devices in this list | |
138 | should be avoided ! | |
139 | AGEING=<ethernet (MAC) address ageing time in seconds> | |
140 | GCINT=<garbage collection interval time for the bridge in seconds> | |
141 | ||
142 | SPANNING_TREE=yes|no (enable SPT - Spanning Tree Protocol) | |
143 | if SPANNING_TREE=yes ; then | |
144 | BRIDGEPRIO=<bridge's priority; 0-65535; less == better> | |
145 | FD=<bridge forward delay time in seconds> | |
146 | HELLO=<bridge hello time in seconds> | |
147 | MAXAGE=<maximum message age in seconds> | |
148 | PATHCOST_PORT=<port number> | |
149 | PATHCOST=<cost of the port specified in PATHCOST_PORT> | |
150 | Note: both PATHCOST_PORT and PATHCOST must be | |
151 | specified to set cost of port | |
152 | PORTPRIO_PORT=<port> | |
153 | PORTPRIO=<port priority used by port selection algorithms; | |
154 | a number between 0 and 255> | |
155 | Note: see note above | |
b2d62426 | 156 | fi |
a6c22d3d AM |
157 | elif DEVICE=irda* ; then /* IrDA */ |
158 | ||
159 | IRDAPORT=<device, say /dev/ttyS1> | |
160 | DONGLE=<driver, see README.irattach from irda-utils package> | |
161 | DISCOVERY=yes|no (starts discovery of remote IrDA devices) | |
b2d62426 | 162 | fi |
a6c22d3d | 163 | |
201c98b9 AM |
164 | # You can also run some other programs *after* uping od downing |
165 | # device. Just create functions run_up() and run_down() | |
166 | run_up() | |
167 | { | |
168 | echo "This will be executed after uping device !" | |
169 | } | |
170 | ||
171 | run_down() | |
172 | { | |
173 | echo "This will be executed after downing device !" | |
174 | } |