Re: Question about network
Thomas Fehr <[email protected]> Fri, 28 Nov 2014 10:18:29 +0100
| Newsgroups | gmane.linux.suse.autoinstall |
|---|---|
| Message-ID | <[email protected]> |
Hi,
On Fri, Nov 28, Achim Klausmann wrote:
> Am 27.11.2014 um 23:10 schrieb Floris Bos:
>> On 11/27/2014 10:15 PM, Achim Klausmann wrote:
>>> Am 27.11.2014 um 20:52 schrieb Floris Bos:
>>>> You used to be able to, but it is broken in the latest OpenSuse release:
>>>> https://bugzilla.novell.com/show_bug.cgi?id=903582
>>> ok, i wil try it in this way:
>>>
>>> <interfaces config:type="list">
>>> <interface>
>>> <bootproto>static</bootproto>
>>> <device>eth0</device>
>>> <ipaddr><192.168.1.132></ipaddr>
>>> <netmask><255.255.255.0></netmask>
>>
>> Should be:
>>
>> <ipaddr>192.168.1.132</ipaddr>
>> <netmask>255.255.255.0</netmask>
> Oh, yeah my mistake.
>
>>> <net-udev config:type="list">
>>> <rule>
>>> <name>eth0</name>
>>> <rule>ATTR{address}</rule>
>>> <value><?=$mac ?></value>
>>> </rule>
>>> </net-udev>
>>>
>>
>> Put the MAC address of your NIC where <?=$mac ?> is. E.g. aa:bb:cc:dd:ee:ff
> OK, you used <?=$mac ?> as a placeholder.
> i will install 400 machines with 400 MAC-Adresses so i can't
> put in a mac adress.
>
> ok,i see. There is no way to get the first NIC which is
> connected (plugin on the network) ues for eth0.
>
> Not all 400 machines will be the same, some will have
> 2 Intel NICs and some 1 Intel and a Realtek.
>
> So i have to choose the ask-method to set the NICs clear,
> but that's not 'autmatic installation' anymore.
You could add a pre-script that investigates network adapters via
examining files in /proc and /sys and replaces the placeholder
accordingly. This way you need to invest some time in creating the
script (should normally only be a few lines of find/grep/sed/awk) but
gain completely automatic installation again.
Tschuess,
Thomas Fehr
--
Thomas Fehr, SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg)
Tel: +49-911-74053-0, Fax: +49-911-74053-482, Email: [email protected]
GPG public key available.
--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]