[opensuse-autoinstall] Question about network
Hello, is it possible to set a option for haveing a connected interface card configured if i have more than one NIC, independently what NIC it is? My setup this time: <interfaces config:type="list"> <interface> <bootproto>static</bootproto> <device>eth0</device> <ipaddr>192.168.1.132</ipaddr> <netmask>255.255.255.0</netmask> <prefixlen>24</prefixlen> <startmode>auto</startmode> <usercontrol>no</usercontrol> </interface> What mens the udev rule: <net-udev config:type="list"> <rule> <name>eth0</name> <rule>ATTR{address}</rule> <value>08:00:27:70:fc:2e</value> </rule> </net-udev> Setup should work with 'net.ifnames=0' on openSUSE 13.1. Best regards AK -- -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On 11/27/2014 07:08 PM, Achim Klausmann wrote:
is it possible to set a option for haveing a connected interface card configured if i have more than one NIC, independently what NIC it is?
You used to be able to, but it is broken in the latest OpenSuse release: https://bugzilla.novell.com/show_bug.cgi?id=903582 Yours sincerely, Floris Bos -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Am 27.11.2014 um 20:52 schrieb Floris Bos:
On 11/27/2014 07:08 PM, Achim Klausmann wrote:
is it possible to set a option for haveing a connected interface card configured if i have more than one NIC, independently what NIC it is?
You used to be able to, but it is broken in the latest OpenSuse release: https://bugzilla.novell.com/show_bug.cgi?id=903582 Bad, but: i will use it for a special database server with os12.2 (the most stable, i will have this for a special UPS, older) and 13.1 (this will be an evergreen, with APC).
Best regards Achim Klausmann -- -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
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> <startmode>auto</startmode> <usercontrol>no</usercontrol> </interface> </interfaces> <routing></routing> <net-udev config:type="list"> <rule> <name>eth0</name> <rule>ATTR{address}</rule> <value><?=$mac ?></value> </rule> </net-udev> Right? What will happen if i have another board with 2 NICs? Question: what will happen if i use something like this: <ipaddr><?=$ip ?></ipaddr> <netmask><?=$netmask ?></netmask> What will happen with the ip-address, if i have no dhcp-server running? Best regards. Achim Klausmann -- Alkohol löst keine Probleme, aber das macht ja Milch auch nicht. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
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>
<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
Right? What will happen if i have another board with 2 NICs?
Then the NIC with the MAC address you specified will be assigned the device name eth0 regardless if it is the first or second NIC, and will use 192.168.1.132 At least with older OpenSuse versions. Broken in the new one.
Question: what will happen if i use something like this: <ipaddr><?=$ip ?></ipaddr> <netmask><?=$netmask ?></netmask>
<?=$variable ?> is PHP code. Only use that when you use a central webserver to dynamically generate autoyast files for the servers being provisioned.
What will happen with the ip-address, if i have no dhcp-server running?
The address is statically assigned. So you don't need DHCP after installation. You do need a DHCP server during installation, if you want to perform a PXE network installation. -- Yours sincerely, Floris Bos -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
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. Best regards Achim Klausmann -- -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
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: fehr@suse.de GPG public key available. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
ok, let's say it in another way. Why do i wnat to detect the active NIC? Most of the machines have Supermicro boards C7B75 with onbaord Intel 82579V. This NIC have to much errors an dropped packets, we never found out (me an Supermicro Netherland) what the reason is. So we plug in a Realtek GB NIC, that works. I will make sure, that autoyast detects the Realtek NIC as first active NIC. Some customers bring their own machines which, for example, have 2 Intel onbaord NICs. Therer for i search for a method to detect which NIC is pluged in on a network cable. Best regards. Achim Klausmann -- -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On 11/28/2014 06:45 AM, Achim Klausmann wrote:
<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.
And your use-case does allow the 400 machines to have the same static IP? If not, you will need to generate autoyast files dynamically anyway. It is not that much effort to register the MAC addresses of all your servers properly in a central database. With our commercial provisioning software we just let the server perform a network boot once, and select the MAC address from a list of MAC addresses that performed a network boot recently (screenshot to illustrate the idea: https://www.noc-ps.com/wp-content/uploads/2012/01/nocps-servers-and-add-wind... ) Yours sincerely, Floris Bos -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Am 28.11.2014 um 10:26 schrieb Floris Bos:
And your use-case does allow the 400 machines to have the same static IP? This machines are are set up at a later time by a technican in a pharmacy in a local network, no internet services are offered by the servers. They are only database servers with Oracle Express Edition for a POS System.
Best regards Achim Klausmann -- -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
participants (3)
-
Achim Klausmann
-
Floris Bos
-
Thomas Fehr