Configuring Network Bonding For Data Protection Network

Updated

Configure the network bonding for the Data Protection network.

Before You Begin

Obtain the following IP addresses before you start:

Entity

IP Address

IP address for the bonded public data protection interface

Netmask IP for the interface

Gateway IP for the interface to connect to

DNS IP addresses associated with the bonded ports

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. Restart the network service to create the bonding with the appropriate parameters using the following command:

    systemctl restart network
        
    
  5. 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] [-f IFACE IFACE] [-n NETMASK] [-g GATEWAY]
                        [-d DNS [DNS ...]] [-s]
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
  -f IFACE IFACE, --iface IFACE IFACE
                        Interfaces to use for configuring the bond
  -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
  -s, --suppress        Suppress link validation while configuring the
                        interface
    

Note

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

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 <Bonded IP for public data protection network> -n < Data Protection Netmask IP> -g <Data Protection Gateway IP> -d <Data Protection DNS Server IP1> <Data Protection DNS Server IP2>

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..
    

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 <Bonded IP for public data protection network> -n < Data Protection Netmask IP> -g <Data Protection Gateway IP> -d <Data Protection DNS Server IP1> <Data Protection DNS Server IP2>

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..