Auto Install for Mandrake Linux
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',

'minus_one' => 1,

'nb_cards' => 2,

'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,

'DHCP_HOSTNAME' => 'CS167266-B',

'dhcp_client' => 'dhcpcd,

},

Descriptions:

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

'minus_one' - set to 1 if any interface uses DHCP to obtain its IP information, otherwise it is set to 0.

'nb_cards' - number of ethernet capable interface cards in the computer. This is a count of the number of definitions that you specified in the 'intf' option, including the wireless_eth.

'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.

'DOMAINNAME' - domain name for the target computer. This is not required if supplied via a 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.

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

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

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

'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, otherwise it is not required. (eg. 'WINDOMAIN' => 'EASTCOTT')

'DHCP_HOSTNAME' - if needed by the DHCP server, the name to be presented when requesting an IP address and other related values.

NOTE: this value can be different from HOSTNAME (when supplying a specific name to an ISP) and is usually just the host name (no domain name part). You should look at the file /etc/sysconfig/network-scripts/ifup to see the effects that HOSTNAME, DOMAINNAME and DHCP_HOSTNAME have on the parameters sent to the DHCP server via your specified dhcp_client.

'dhcp_client' - if one or more interfaces specifies dhcp for BOOTPROTO then this parameter this specifies the DHCP client package to be installed; it may be one of 'dhcpcd', 'dhcpxd' or 'pump'. If this parameter is not specified, then the dhcpcd 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 will find most of these options placed in the files /etc/resolv.conf and /etc/sysconfig/network.

Examples:

See the section Network and Connection Examples for various examples.

When you examine the /sbin/ifup script, you will see a couple other things that can be done to control the actual operation of the dhcp client (dhcpcd) that you may find useful. If you add PEERDNS=no to the /etc/sysconfig/network file, then the dhcpcd client will NOT replace your /etc/resolv.conf file (for those of you using a local DNS server). And, if you delete the HOSTNAME and DOMAINNAME entries from /etc/sysconfig/network file, the dhcpcd client can be made to update these with information it gets from the DHCP server. These fine adjustments need to be done either manually or by using the 'postinstall' option. eg.

'postInstall' => "

# fix so that dhcp client updates host and domain names from server

cat /etc/sysconfig/network | sed '/^HOSTNAME/d' | \

sed '/^DOMAINNAME/d' > /etc/sysconfig/network1

# but make sure it does not replace resolv.conf

echo \"PEERDNS=no\" >> /etc/sysconfig/network1

mv -f /etc/sysconfig/network1 /etc/sysconfig/network

"

Related Option Entries:

intf, authentication, postInstall




PrevHome Next
mouse   nomouseprobe