Sei sulla pagina 1di 3

Step 1 enter the / etc / sysconfig / network directory.

. # Cd / etc / sysconfig / network Step 2 of using the ls command to view existing documents. If there is to be operating the card corresponding to the corresponding i fcfg e thX file (such as eth1 corresponds to the ifcfg eth1, eth1, [, h1] corresponding to the ifcfg eth2,) , then delete the h2] . Step 3 create and edit the ifcfg eth id MAC file. The MAC for the hardware address of the card to operate through ifconfig ethX comm and to view. If the site in accordance with the other documents to complete the bond operatio n you available the cat / proc / net / the bonding / the bond0 command to view t he two NIC's MAC address. To eth1, eth2, for example: 1. Use the vi command for eth1 to create the ifcfg eth id 00: 18:82:1 e: f3: c4, file . 2. Enter the following two lines: BOOTPROTO = 'static' STARTMODE = 'off' 3. The same way, eth2 create the ifcfg eth, id 00: 18:82:1 e: f3: c5 files conte nt and the ifcfg eth id 00: 18:82:1 e: f3: c4, the same. Step 4 h3] [lwm4] create and edit the ifcfg the bond0 file. The # vi the ifcfg the bond0 Step 5 enter the following content and save and exit. BOOTPROTO = static The IPADDR = ' 10.10.10 .1' The NETMASK = ' 255.255.255.0' STARTMODE = onboot BONDING_MASTER = yes BONDING_MODULE_OPTS = mode = active backup miimon = 100 use_carrier = 1 BONDING_SLAVE0 = bus pci 0000: 06:00.0 BONDING_SLAVE1 = bus pci 0000: 06:00.1 Related fields have the following meanings: L IPADDR The IP address of the logic card, according to the practical situation. L NETMASK Logical subnet mask of the network card, according to the practical situation. L BONDING_SLAVE0 = bus pci 0000: 06:00.0 Said the main card in the Bond object corresponding to the PCI BUS number,iphone 4 4s cases, which can be the ethtool i eth1, command, query results in the figu res behind the bus info is the network card PCI BUS No. An example is as follows. host131: ~ # ethtool i eth1 driver: e1000 version: 7.3.15 k3 of NAPI firmware version: 2.1 7 bus info: 0000:06:00.0 L BONDING_SLAVE1 = bus pci 0000: 06:00.1 < / U the> , Said another card in the Bond object corresponding to the PCI BUS number, whic h can be the ethtool i eth2, command query.

SuSE 10 operating system, BONDING_SLAVE0, BONDING_SLAVE1 configuration values ?? must be PCI BUS No. Each single board implementation of Fabric Dual LAN bind operation, you can copy a ifcfg bond0 file, then change which the IPADDR = line fill in the IP address of the site planning, and the ethtool i eth, < with I> X command (X is the network

card number) to view the card PCI BUS number, to ensure that the BONDING_SLAVE0 , BONDING_SLAVE1 configuration values ??and the actual consistent. Steps 6 the execution rcnetwork the restart command so that configuration to tak e effect. Steps 7 view the work status of the logic card. # The cat the / proc / net / the bonding / the bond0 Interface display similar to the following information: The Ethernet the Channel Bonding Driver: v3.0.1 (January 9, 2006) Bonding Mode: fault tolerance. (Active backup) The Primary the Slave: None Currently the Active Slave: eth1, The MII the Status: up MII Polling the Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 Slave the Interface: eth1, The MII the Status: up Link Failure Count: 0 Permanent HW addr: 00:18:82:1 e: f3: c4 Slave the Interface: eth2, The MII the Status: up Link Failure Count: 0 Permanent HW addr: 00:18:82:1 e: f3: c5 If the MII Status line show Down is execute the following command to start the card . # The ifconfig the bond0 up Step 8 the check the configuration results. Bond operation card will use the primary NIC (eth1) for the MAC address and the bond operation to form the logic card. For example, assume that eth1 MAC address: 00:18:82:1 E: F3: C4, and the bond op eration was successful, the Executive the ifconfig a | grep HWaddr command, the system displays the following: Bond0 Link encap: Ethernet HWaddr 00:18:82:1 E: F3: C4 eth0 Link encap: Ethernet HWaddr 00:18:82:1 E: F3: D4 eth1 Link encap: Ethernet HWaddr 00:18:82:1 E: F3: C4 eth2 Link encap: Ethernet HWaddr 00:18:82:1 E: F3: C4 eth3 Link encap: Ethernet HWaddr 00:18:82:1 E: F3: CE eth4 Link encap: Ethernet HWaddr 00:18:82:1 E: F3: CF

[H1] should be Eth2 [H2]: If you do not remove, the need to back up. Do not backed up to the current path, such as: backup to the current path the name of the ifcfg eth2bak cause b ond0 operation failed, reason: was to match the ifcfg eth2, the results match to the ifcfg eth2bak document. Previous do mdsp parts NIC teaming operation like t his ^ _ ^ Suggested that other directory path or their own hand to create a bak directory mv the files go to the backup operation in case it is deleted, the error during operation is not recoverable ^ _ ^ Or delete the file error during operation, the need to restore the re configurat ion can also go through the yast tool. [H3] In addition, if the step does not perform the two machine software vcs not start. Has already been verified.

Potrebbero piacerti anche