Auto Install for Mandrake Linux | ||
---|---|---|
Prev | Next |
This option is used to define the various network (ethernet or wireless) capable devices in your system.
The following is the general form for the structure:
'intf' => { |
|
'ethx' => {}, |
and / or |
'wireless_eth' => {}, |
}, |
'ethx' |
used to indicate an ethernet card interface definition. The 'x' is a sequence number, beginning with 0, for each ethernet card installed. Up to 10 cards can be defined with this version of the installer. |
'wireless_eth' |
used to indicate that there is a wireless ethernet interface installed. Currently only a single interface is supported. |
For an ethernet card, the following are valid:
'eth0' => { |
|
'DEVICE' => 'eth0', |
'BOOTPROTO' => 'static', |
'ONBOOT' => 'yes', |
'IPADDR' => '192.168.5.202', |
'NETMASK' => '255.255.255.0', |
'NETWORK' => '192.168.5.0', |
'BROADCAST' => '255.255.255.0', |
'HWADDR' => '00:01:02:03:04:05' |
}, |
For a wireless interface, the following are valid:
'wireless_eth' => { |
|
'DEVICE' => 'wireless_eth', |
'BOOTPROTO' => 'static', |
'ONBOOT' => 'yes', |
'IPADDR' => '192.168.5.202', |
'NETMASK' => '255.255.255.0', |
'NETWORK' => '192.168.5.0', |
'BROADCAST' => '255.255.255.0', |
'WIRELESS_MODE' => 'Auto', |
'WIRELESS_ESSID' => 'any', |
'WIRELESS_NWID' => '', |
'WIRELESS_FREQ' => '', |
'WIRELESS_SENS' => '', |
'WIRELESS_RATE' => '', |
'WIRELESS_ENC_KEY' => '', |
'WIRELESS_RTS' => '', |
'WIRELESS_FRAG' => ',' |
'WIRELESS_IWCONFIG' => '', |
'WIRELESS_IWSPY' => '', |
'WIRELESS_IWPRIV' => '', |
}, |
Descriptions:
'DEVICE' |
must be the same as the 'ethx' (or 'wireless_eth') you used to start this definition with. |
'BOOTPROTO' |
may be one of 'static', 'dhcp' or 'bootp'. |
'ONBOOT' |
normally set to 'yes', but can be set to 'no' if you do not want the interface automatically started at boot up. |
'IPADDR' |
IP address ('x.x.x.x') for this interface, not required if BOOTPROTO is dhcp or bootp. |
'NETMASK' |
Network Mask ('x.x.x.x') to be used with this interface, not required if BOOTPROTO is dhcp or bootp. |
'NETWORK' |
base IP address ('x.x.x.x') for this interface, not required if BOOTPROTO is dhcp or bootp. |
'BROADCAST' |
broadcast IP address ('x.x.x.x') for this interface, not required if BOOTPROTO is dhcp or bootp. |
'HWADDR' |
the ethernet hardware address for the associated ether net interface card. Only required if the system is tracking the networking id (see miscellaneous). |
'MII_NOT_SUPPORTED' |
specifies whether or not the associated interface is monitored by the ifplug daemon (usually used only on laptops where the interface card is removable). If set to 'yes' then the device is not monitored, if set to 'no' then it is monitored. |
'DHCP_HOSTNAME' |
used only if the interface acquires its information from a DHCP server and this computer must supply a host name. If may have two formats, depending on the requirements of the DHCP server, either '<hostname>' or '<hostname>.<domainname>'. eg. 'dave1' or 'dave1.eastcott.net'. NOTE: this value can be different from the 'netc' HOSTNAME (when supplying a specific name to an ISP) and is usually just the host name (no domain name part). |
'NEEDHOSTNAME' |
used only if the DHCP server supplies the host name. If set to 'yes', then the dhcp client will request, then use the host name from the DHCP server. If omitted, then any host name supplied by the DHCP server is ignored. |
'WIRELESS_MODE' |
may be one of Ad-hoc, Managed, Master, Repeater, Secondary or Auto. |
'WIRELESS_ESSID' |
Extended Service System ID, and is a string representing the desired ID or 'any'. |
'WIRELESS_NWID' |
Network ID or Channel Sequence number |
'WIRELESS_FREQ' |
Operating frequency of the wireless radio component. (eg. '2.46G') |
'WIRELESS_SENS' |
Receive sensitivity |
'WIRELESS_RATE' |
Data transfer rate (eg. '11M') |
'WIRELESS_ENC_KEY' |
Encryption or scrambling key |
'WIRELESS_RTS' |
??? |
'WIRELESS_FRAG' |
??? |
'WIRELESS_IWCONFIG' |
list of parameters to be given to the program iwconfig. |
'WIRELESS_IWSPY' |
list of parameters to be given to the program iwspy. |
'WIRELESS_IWPRIV' |
list of parameters to be given to the program iwpriv. |
The entries for each interface appear in a configuration file located in /etc/sysconfig/network-scripts/. The configuration file name for each interface is formed by adding the DEVICE string to the end of 'ifcfg-'. In the example below, you would expect to find the file: /etc/sysconfig/network-scripts/ifcfg-eth0.
'intf' => { |
|
'eth0' => { |
|
'DEVICE' => 'eth0', |
... |
} |
}, |
Examples:
See the section Network and Connection Examples for various examples.
For a computer which does not have an ethernet or wireless interface, then use the following:
'intf' => {}, |
If the target computer has multiple interfaces, then use the following:
'intf' => { |
'eth0' => { |
|
... |
|
}, |
|
'eth1' => { |
|
... |
|
} |
} |
If the computer has more than one interface defined, make sure the 'netc' option identifies which one is the GATEWAYDEV.
If the computer has an interface with BOOTPROTO set to 'dhcp', then see 'netc' for selecting a 'dhcp_client' to be installed.
For those of you using a Wireless interface, the following are recommended reading for additional information:
The Wireless-HOWTO at www.linuxdoc.org and, |
Linux Wireless Howto Collection at www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/ |
|
If you are trying to install ISA network cards
, DrakX does not auto detect them and as a result will not update
the /etc/modules.conf file
with the appropriate alias. However, the
|
There are a number of other variables that affect the operation of the dhcp clients and could be added to the appropriate interface configuration file using the 'postInstall' features including:
PEERDNS=yes |
causes the dhcp client to modify the /etc/resolv.conf file with values received from the DHCP server. |
PEERYP=yes |
casues the dhcp client to modify the /etc/yp.conf file with values received from the DHCP server. |
PEERNTPD=yes |
causes the dhcp client to modify the /etc/ntp.conf file with values it receives from the DHCP server. |
DHCP_TIMEOUT=15 |
changes the default time out of dhcp client to the number of seconds specified. |
See the file /etc/sysconfig/network-scripts/ifup to determine which variables are used with which dhcp client.
Related Option Entries:
netc, miscellaneous, postInstall
Prev | Home | Next |
interactiveSteps | isUpgrade |