This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Move to the root directory as starting point | |
cd /root/rpcops-onmetal-labconfigurator | |
# Set host bond0.XXX and dummy bond0.222 | |
__HOST_BOND_INT__=( bond0.200 bond0.222 ) | |
# Get host bond0.XXX address [public] | |
__HOST_IP__=`ip addr show dev "${__HOST_BOND_INT__[0]}"|awk '/inet/ { split($2, ip, "/"); print ip[1]; exit }'` |