# $Id: ifcfg-description,v 1.13 2001/05/15 16:03:43 baggins Exp $ DEVICE= [ BOOTMETHOD={none|bootp|dhcp|pump} ] You can specify which dhcp client to use with the DHCP_CLIENT, if the DHCP_CLIENT is not specified we trying to launch in order : /sbin/dhcpcd /sbin/dhclient /sbin/dhcpxd /sbin/pump if you have a preferred client define the DHCP_CLIENT variable. You can also pass some options to dhcl client via DHCP_OPTIONS. [ BOOTMETHOD6={none|dhcp6|v4compat} dhcp6 method isn't supported, yet. v4compat uses available IPv4 addresses (ie. from DHCPv4) and then convert them to IPv6 (IPv4-compatible) to use with automatic tunnels IPADDR="(IPv4 or IPv6 address)/prefix" IP_AOPTS="broadcast xxx etc" (by default broadcast is autocalculated) IP_ROPTS="" IPADDR1= IP_AOPTS1= options for ip addr add IP_ROPTS1= options for ip route add (currently used only for IP4_PRIM_IF) IP4_PRIM_IF="1" # number of primary IPv4 interface (IPADDRx) IP4_SRC_IF="1" # number of IPv4 address for ip's ,,src'' parameter IP6_PRIM_IF="" # IP6_SRC_IF="" # [ ONBOOT={no|yes} ] [ MULTICAST={|no|yes} ] - for eth automamaticly set to yes [ ARP={no|yes} ] - for eth automamaticly set to yes [ IPV6_DISABLE_AUTOCONF={yes|no} ] - disable IPv6 autoconfiguration [ IPX=yes|no ] if IPX=yes ; then IPXNETNUM_{802_2,802_2TR,802_3,EtherII,SNAP} IPXPRIMARY_{802_2,802_2TR,802_3,EtherII,SNAP}=yes|no IPXACTIVE_{802_2,802_2TR,802_3,EtherII,SNAP}=yes|no fi [ MTU= ] [ METRIC= ] [ QDISC= ] [ DEFAULTHANDLING=yes|no ] (used in configuration for ATM interfaces, obsolete variable) [ HANDLING=0|1|2|3 ] (0 is default; used ie. in ATM configuration, for details see ifup script) if DEVICE=eth* ; then [ MEDIA={auto|10baseT|10base2|AUI} ] [ MAC= ] elif DEVICE=ppp* || DEVICE=sl* ; then PERSIST=yes|no MODEMPORT= LINESPEED= DEFABORT=yes|no if DEVICE=ppp* ; then AUTH=yes|no PEERDNS=yes|no DEFROUTE=yes|no ESCAPECHARS=yes|no HARDFLOWCTL=yes|no (yes imples "modem crtscts" options) PPPOPTIONS= PAPNAME=<"name $PAPNAME" on pppd command line> REMIP= REMIP6= MRU= DISCONNECTTIMEOUT= RETRYTIMEOUT= INITSCRIPT= DATAFORCHAT= = (for chat script) IPV6_PPP=yes|no (use IPv6 for ppp ?) if IPV6_PPP = yes ; then IPV6_CP_USEV4=yes|no (use local IPv4 mapped addresses as IPv6 addresses) IPV6_CP_PERSISTENT=yes|no (use EUI-48 addresses as IPv6 addresses; not supported on Linux, yet) or by default use address specified by IP6_PRIM_IF and REMIP6 fi fi if DEVICE=sl* ; then (SLIP) DIRECT_CONNECT=yes|no (dirrect connection via slattach ?) PROTOCOL=slip|cslip|adaptive REMIP= REMIP6= fi elif DEVICE=br* ; then /* Bridge */ BRIDGE_DEVS= Note: separation configuration for devices in this list should be avoided ! AGEING= GCINT= SPANNING_TREE=yes|no (enable SPT - Spanning Tree Protocol) if SPANNING_TREE=yes ; then BRIDGEPRIO= FD= HELLO= MAXAGE= PATHCOST_PORT= PATHCOST= Note: both PATHCOST_PORT and PATHCOST must be specified to set cost of port PORTPRIO_PORT= PORTPRIO= Note: see note above fi fi # You can also run some other programs *after* uping od downing # device. Just create functions run_up() and run_down() run_up() { echo "This will be executed after uping device !" } run_down() { echo "This will be executed after downing device !" }