Emerson ATCA-S201 manual Bonding, CLI command syntax, Create new bond

Models: ATCA-S201

1 157
Download 157 pages 48.06 Kb
Page 58
Image 58

RTM-ATCA-SXXX Overview

4.8.1Bonding, CLI command syntax

The Linux community has created an extensive man page for ifenslave. The subset of essential elements is summarized below.

Create new bond

 

 

 

 

Step1:

ifconfig eth0 down; ifconfig eth1 down

 

 

Deactivate the Ethernet “slave” ports that will become bond members

 

 

 

 

Step2:

modprobe bonding mode=0 miimon=100

 

 

This loads the bonding module, sets the usage policy mode and sets polling

 

 

frequency to 100mS. Several mode exist, but these are the most common

 

 

Valid mode=[ ] options:.

 

 

 

 

 

 

mode=0 - Round robin packet, or balanced transmit policy. This mode will

 

 

only work with switches that support trunking.

 

 

 

 

 

 

mode=1- Active-backup; one slave port is active, the other is passive. This

 

 

mode should work with any Layer-II switch.

 

 

 

 

Step3:

ifconfig bond0 <ip-address> up

 

 

Define a new bond0, and assign a dotted decimal <ip-address >. Note: the

 

 

MAC address of the bond0 device will be taken from the first slave device.

 

 

 

 

Step4:

ifenslave bond0 eth0; ifenslave bond0 eth1

 

 

Assign the slave ports that will comprise the new bond.

Preserve new

/etc/rc.d/init.d/userstart

bond attributes

 

 

This file contains a template for adding commands that will be executed on

 

 

 

boot (or shutdown) as required by the user. This file is stored in system flash

 

 

 

memory and preserved over reboots. Edit this file and add the entire

 

 

 

sequence of bond commands.

 

 

 

Example:

 

 

 

ifconfig eth0 down; ifconfig eth1 down

 

 

 

modprobe bonding mode=0 miimon=100

 

 

 

ifconfig bond0 <ip-address> up

 

 

 

ifenslave bond0 eth0; ifenslave bond0 eth1 eth1

 

Remove bond

 

 

 

 

Step1:

 

ifenslave -d bond0 eth0; ifenslave -d bond0 eth1

 

 

Remove all Ethernet “slave” ports that are bond members

 

 

Step2:

ifconfig eth0 down; ifconfig eth1 down

 

 

Set the former slave ports as down.

 

 

 

Step3:

 

/etc/rc.d/init.d/userstart

 

 

Remove the relevant bond creation code, and reboot

 

 

 

 

6806800H62B ATCA‐S201 Installation and Use Guide

48

Page 58
Image 58
Emerson ATCA-S201 manual Bonding, CLI command syntax, Create new bond