Free Hosting Online for WorkStations

< Previous | Contents | Next >

Of course, preseeding the network configuration won’t work if you’re loading your preconfiguration file from the network. But it’s great when you’re booting from CD or USB stick. If you are loading preconfiguration files from the network, you can pass network config parameters by using kernel boot parameters.

If you need to pick a particular interface when netbooting before loading a preconfiguration file from the network, use a boot parameter such as interface=eth1.

Although preseeding the network configuration is normally not possible when using network preseed- ing (using “preseed/url”), you can use the following hack to work around that, for example if you’d like to set a static address for the network interface. The hack is to force the network configuration to run again after the preconfiguration file has been loaded by creating a “preseed/run” script containing the following commands:


kill-all-dhcp; netcfg


The following debconf variables are relevant for network configuration.


# Disable network configuration entirely. This is useful for cdrom

# installations on non-networked devices where the network questions,


# warning and long timeouts are a nuisance.

#d-i netcfg/enable boolean false


# netcfg will choose an interface that has link if possible. This makes it

# skip displaying a list if there is more than one interface. d-i netcfg/choose_interface select auto

# To pick a particular interface instead:

#d-i netcfg/choose_interface select eth1


# To set a different link detection timeout (default is 3 seconds).

# Values are interpreted as seconds.

#d-i netcfg/link_wait_timeout string 10


# If you have a slow dhcp server and the installer times out waiting for

# it, this might be useful.

#d-i netcfg/dhcp_timeout string 60

#d-i netcfg/dhcpv6_timeout string 60


# If you prefer to configure the network manually, uncomment this line and

# the static network configuration below.

#d-i netcfg/disable_autoconfig boolean true


# If you want the preconfiguration file to work on systems both with and

# without a dhcp server, uncomment these lines and the static network

# configuration below.

#d-i netcfg/dhcp_failed note

#d-i netcfg/dhcp_options select Configure network manually


# Static network configuration.

#

# IPv4 example

#d-i netcfg/get_ipaddress string 192.168.1.42

#d-i netcfg/get_netmask string 255.255.255.0

#d-i netcfg/get_gateway string 192.168.1.1

#d-i netcfg/get_nameservers string 192.168.1.1

#d-i netcfg/confirm_static boolean true

#

# IPv6 example

#d-i netcfg/get_ipaddress string fc00::2

#d-i netcfg/get_netmask string ffff:ffff:ffff:ffff::

#d-i netcfg/get_gateway string fc00::1

#d-i netcfg/get_nameservers string fc00::1

#d-i netcfg/confirm_static boolean true


# Any hostname and domain names assigned from dhcp take precedence over

# values set here. However, setting the values still prevents the questions

# from being shown, even if values come from dhcp. d-i netcfg/get_hostname string unassigned-hostname d-i netcfg/get_domain string unassigned-domain


# If you want to force a hostname, regardless of what either the DHCP

# server returns or what the reverse DNS entry for the IP is, uncomment

# and adjust the following line.

#d-i netcfg/hostname string somehost


# Disable that annoying WEP key dialog.


d-i netcfg/wireless_wep string

# The wacky dhcp hostname that some ISPs use as a password of sorts.

#d-i netcfg/dhcp_hostname string radish


# If non-free firmware is needed for the network or other hardware, you can

# configure the installer to always try to load it, without prompting. Or

# change to false to disable asking.

#d-i hw-detect/load_firmware boolean true


Please note that netcfg will automatically determine the netmask if netcfg/get_netmask is not preseeded. In this case, the variable has to be marked as seen for automatic installations. Similarly, netcfg will choose an appropriate address if netcfg/get_gateway is not set. As a special case, you can set netcfg/get_gateway to “none” to specify that no gateway should be used.


B.4.3. Network console


Top OS Cloud Computing at OnWorks: