NIC Teaming
We are currently moving to satellite 6.4
Currently using the below kickstart syntax to setup nic teaming, is there a better way in satellite 6.4, can someone help setting up a snippet with different syntax
NM Teaming
IF0=ip link | grep 'state UP' | head -1 | awk '{print $2}' | cut -d: -f1
IF1=ip link | grep 'state UP' | tail -1 | awk '{print $2}' | cut -d: -f1
UUID_TEAM=uuidgen team0
UUID_IF0=uuidgen $IF0
UUID_IF1=uuidgen $IF1
IPADDR=ip a show dev $IF0 | grep 'inet ' | awk '{print $2}' | cut -d/ -f1
if [ "x$IPADDR" == "x" ]; then
IPADDR=ip a show dev $IF1 | grep 'inet ' | awk '{print $2}' | cut -d/ -f1
fi
MAC_IF0=ip link | grep -A1 $IF0 | tail -1 | awk '{print $2}'
MAC_IF1=ip link | grep -A1 $IF1 | tail -1 | awk '{print $2}'
cat > /etc/sysconfig/network-scripts/ifcfg-Team_connection_0 <<EOF
DEVICE=team0
DEVICETYPE=Team
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME="Team connection 0"
UUID=$UUID_TEAM
ONBOOT=yes
IPADDR=$IPADDR
PREFIX=24
GATEWAY=100.18.1.1
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_PRIVACY=no
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-team0_slave_1 <<EOF
HWADDR=$MAC_IF0
NAME="team0 slave 1"
UUID=$UUID_IF0
ONBOOT=yes
TEAM_MASTER=$UUID_TEAM
DEVICETYPE=TeamPort
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-team0_slave_2 <<EOF
HWADDR=$MAC_IF1
NAME="team0 slave 2"
UUID=$UUID_IF1
ONBOOT=yes
TEAM_MASTER=$UUID_TEAM
DEVICETYPE=TeamPort
EOF