Loading...

Configuring Network Bonding For Data Protection Network

Network bonding can be configured for Data Protection when DHCP is not available or enabled.

Before You Begin

Obtain the following IP addresses before you start:

Entity

IP Address

IP address for the bonded interface

 

Netmask IP for the interface

 

Gateway IP for the interface to connect to

 

IP addresses associated with the bonded ports for data protection network

 

Procedure

  1. Login to the node using the following default credentials:

    Login: root

    Password: cvadmin

    Note: This password can be changed during setup.

  2. Navigate to the following folder:

    /opt/commvault/MediaAgent

  3. Execute the cvnwlacpbond.py with appropriate parameters to setup the bonding.
  4. Repeat these steps in the other nodes.

Examples

Help to Run the Bonding modes

Use the following command to display help:

./cvnwlacpbond.py -h

The following output will be displayed:

usage: cvnwlacpbond.py [-h] [-c] [-m {802.3ad,active-backup}] [-t {dp,sp}]
[-i IP] [-n NETMASK] [-g GATEWAY] [-d DNS [DNS ...]]
[-v]

Tool to augment and validate network settings for HyperScale

optional arguments:
-h, --help show this help message and exit

Configure Network:
-c, --configure Option to configure network
-m {802.3ad,active-backup}, --mode {802.3ad,active-backup}
Mode of bonding. Defaults to 802.3ad
-t {dp,sp}, --nwtype {dp,sp}
Type of network. Defaults to Data Protection
-i IP, --ip IP IP address of the interface
-n NETMASK, --netmask NETMASK
Netmask IP of the interface
-g GATEWAY, --gateway GATEWAY
Gateway IP for the interface to connect to
-d DNS [DNS ...], --dns DNS [DNS ...]
DNS IPs for the interface to configure with

Note: Multiple DNS servers can be provided for the -d option, using space as the delimiter.

Configuring LACP Bonding on Data Protection Network

Use the following options to set mode 4 (LACP bonding) for Data Protection network:

./cvnwlacpbond.py -c -m 802.3ad -t dp -i <IP address of the interface> -n <Netmask IP of the interface> -g <Gateway IP for the interface to connect to> -d <DNS IP1 for the interface to configure with> <DNS IP2 for the interface to configure with>

For example:

./cvnwlacpbond.py -c -m 802.3ad -t dp -i 10.11.11.50 -n 255.255.255.0 -g 10.11.11.1 -d 10.11.11.11 10.11.11.12

The following output will be displayed:

Arguments entered: {'nwtype': 'dp', 'configure': True, 'ip': '10.11.11.50', 'netmask': '255.255.255.0', 'mode': '802.3ad', 'dns': ['10.11.11.11', '10.11.11.12'], 'validate': False, 'gateway': '10.11.11.1'}
Creating network config files for Data protection network..
Processing file: /opt/commvault/MediaAgent/ifcfg-scripts/lacp/ifcfg-eno3...
Processing file: /opt/commvault/MediaAgent/ifcfg-scripts/lacp/ifcfg-enp134s0f0...
Processing file: /opt/commvault/MediaAgent/ifcfg-scripts/lacp/ifcfg-bond1...
All network config files created successfully..

Configuring Active-Backup Bonding on Data Protection network

Use the following options to set mode 1 (active-backup bonding) for Data Protection network:

./cvnwlacpbond.py -c -m active-backup -t dp -i <IP address of the interface> -n <Netmask IP of the interface> -g <Gateway IP for the interface to connect to> -d <DNS IP1 for the interface to configure with> <DNS IP2 for the interface to configure with>

For example:

./cvnwlacpbond.py -c -m active-backup -t dp -i 10.11.11.61 -n 255.255.255.0 -g 10.11.11.1 -d 10.11.11.21 10.11.11.22

The following output will be displayed:

Arguments entered: {'nwtype': 'dp', 'configure': True, 'ip': '10.11.11.61', 'netmask': '255.255.255.0', 'mode': 'active-backup', 'dns': ['10.11.11.21', '10.11.11.22'], 'validate': False, 'gateway': '10.11.11.1'}
Creating network config files for Data protection network..
Processing file: /opt/commvault/MediaAgent/ifcfg-scripts/lacp/ifcfg-eno3...
Processing file: /opt/commvault/MediaAgent/ifcfg-scripts/lacp/ifcfg-enp134s0f0...
Processing file: /opt/commvault/MediaAgent/ifcfg-scripts/lacp/ifcfg-bond1...
All network config files created successfully..

Last modified: 9/30/2019 6:58:23 PM