Mailinglist Archive: opensuse-autoinstall (49 mails)

< Previous Next >
Re: [opensuse-autoinstall] NIC bonding/teaming
  • From: "Michael T. Halligan" <michael@xxxxxxxxxxxx>
  • Date: Mon, 25 Jun 2007 17:23:56 -0700
  • Message-id: <97431917-0FA5-4F92-976C-887D61510C2A@xxxxxxxxxxxx>
On Jun 25, 2007, at 5:15 PM, Doctor Who wrote:

Can NIC bonding/teaming be accomplish using AutoYaST?  I imagine this
would be done with a post-install script.  Assuming there were 2
10/100 NICs (normally eth0 & eth1) what might this look like?

Here's my hack to do this:






  <files config:type="list">
    <file>
      <file_contents><![CDATA[BOOTPROTO='NONE'
MTU='9000'
NAME='Hewlett-Packard Company NetXtreme BCM5721 Gigabit Ethernet PCI Express'
STARTMODE='off'
UNIQUE='rBUF.5sChhDFnqQ7'
_nm_name='bus-pci-0000:02:00.0'
]]></file_contents>
      <file_owner>root</file_owner>
      <file_path>/etc/sysconfig/network/ifcfg-eth0</file_path>
      <file_permissions>644</file_permissions>
    </file>
    <file>
      <file_contents><![CDATA[BOOTPROTO='NONE'
MTU='9000'
NAME='Hewlett-Packard Company NetXtreme BCM5721 Gigabit Ethernet PCI Express'
STARTMODE='off'
UNIQUE='JNkJ.5sChhDFnqQ7'
_nm_name='bus-pci-0000:03:00.0'
]]></file_contents>
      <file_owner>root</file_owner>
      <file_path>/etc/sysconfig/network/ifcfg-eth1</file_path>
      <file_permissions>644</file_permissions>
    </file>
    <file>
      <file_contents><![CDATA[STARTMODE='onboot'
BOOTPROTO='static'
IPADDR='10.1.108.51/24'
BONDING_MASTER='yes'
BONDING_SLAVE_0='eth0'  # you can use eth0 here, too
BONDING_SLAVE_1='eth1'  # or eth1
BONDING_MODULE_OPTS='mode=1 primary=eth1 arp_interval=1000 arp_ip_target=+10.1.108.1' # backup mode
]]></file_contents>
      <file_owner>root</file_owner>
      <file_path>/etc/sysconfig/network/ifcfg-bond0</file_path>
      <file_permissions>644</file_permissions>
    </file>
>/files>
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx

< Previous Next >
This Thread
References