Auto Install for Mandrakelinux
Prev Next

netc

This option contains values used to configure the network parameters for the target computer. The general form is as follows:

'netc' => {


'NETWORKING' => 'yes',

'FORWARD_IPV4' => 'false',

'HOSTNAME' => 'linux-dev.eastcott.net',

'DOMAINNAME' => 'eastcott.net',

'GATEWAY' => '192.168.5.254',

'GATEWAYDEV' => 'eth0',

'dnsServer' => '24.64.8.1',

'dnsServer2' => '24.64.8.2',

'dnsServer3' => undef,

'NISDOMAIN' => undef,

'LDAPDOMAIN' => undef,

},

Descriptions:

'NETWORKING'

set to 'yes' if this machine is network connected, otherwise it is set to 'no' and remove any other entries .

'FORWARD_IPV4'

set to 'true' if IP forwarding between interfaces is required, otherwise it should be set to 'false'.

'HOSTNAME'

fully qualified host name for the target computer. This is not required if supplied via a DHCP server. See 'intf' DHCP_HOSTNAME and NEEDHOSTNAME.

'DOMAINNAME'

domain name for the target computer. This is not required if supplied via a DHCP server.



Since this variable is NOT placed in the /etc/sysconfig/network file, there are a few things you should be aware of:


if your interfaces are set for static addresses, then the domainname command returns a NULL value.


if you have an internal static network or your internal network has a unique (personal domain name) and you are using DHCP on one or more interfaces, the DHCP client will set the domain name to the value it receives from the DHCP server.

'GATEWAY'

IP address for the machine that processes all non-local IP messages. This is not required if supplied via a DHCP server.

'GATEWAYDEV'

device name for the interface that is to be used to access the gateway machine. This is not required if supplied via a DHCP server. eg. 'eth0'

'dnsServer'

IP addresses for DNS server, up to three may be specified. This is not required if supplied via a DHCP server. See 'intf' PEERDNS.

'dnsServer2'

if available, then the second DNS server's IP address. This is not required if supplied via a DHCP server. See 'intf' PEERDNS.

'dnsServer3'

if available, then the third DNS server's IP address. This is not required if supplied via a DHCP server. See 'intf' PEERDNS.

'NISDOMAIN'

if NIS authentication is used, then this contains the NIS domain name, otherwise it is not required.

'LDAPDOMAIN'

if LDAP authentication is being used, then this contains the Base Distinguished Name, otherwise it is not required. eg. 'LDAPDOMAIN' => 'dc=eastcott,dc=net'

'WINDOMAIN'

if Windows PDC authentication is being used, then this contains the Windows Domain Name, otherwise it is not required.
eg. 'WINDOMAIN' => 'EASTCOTT'

'DHCP' => 1,

use if one or more interfaces have 'BOOTPROTO' => 'dhcp' and you want the default dhcp client installed and used. The ISC dhcp-client package is the current default.

'dhcp_client'

use if you want to select a specific dhcp client to be installed and used, then set it to one of: 'dhcp-client', 'dhcpcd', 'dhcpxd' or 'pump'. If this parameter is not specified, then the dhcp-client package is installed by default. If more than one dhcp client package is installed, you should add DHCP_CLIENT=<your client> to the associated ifcfg-ethx file.


You might want to seriously consider installing the package zcip when using a dhcp client.

'ZEROCONF_HOSTNAME'

use if your computer is used in a standalone environment and you are not normally connected to a network or the internet. It specifies the hostname that the package tmdns will manage.

Examples:

See the section Network and Connection Examples for various examples.

There are a number of things that you can change to control or fix the operation of your computer (especially if you are using DHCP), some are referenced in 'intf' and other's you will have to locate by examining the network control scripts in /etc/sysconfig/network-scripts. These fine adjustments need to be done either manually or by using the 'postinstall' option. eg.

'postInstall' => '

# fix so that the dhcp client does NOT update the domain name

# received fromt the DHCP server.

echo "DOMAINNAME=eastcott.net" >> /etc/sysconfig/network

'

Related Option Entries:

intf, authentication, postInstall






PrevHome Next
mouse   nomouseprobe