Skip to content

Instantly share code, notes, and snippets.

View pwnall1337's full-sized avatar

Tim Pownall pwnall1337

  • Texas
View GitHub Profile
@pwnall1337
pwnall1337 / rpcops-host-setup
Created December 27, 2016 16:42 — forked from mrhillsman/rpcops-host-setup
SantaClara Lab Host Setup
#!/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 }'`