The following procedure is specific to an LPAR named "daladcal01" but
is representative of how to configure etherchannels on all virtual
LPAR's utilizing network adapters being provided from dual VIO
servers.
procedure|LPAR etherchannel configuration of daladcal01| see below
# On the client LPAR, unconfigure all ethernet adapters
lscfg -l ent*
for i in 8 7 6 5 4 3 2 1 0
do
ifconfig en${i} down
ifconfig en${i} detach
ifconfig et${i} down
ifconfig et${i} detach
rmdev -Rdl ent${i}
rmdev -Rdl en${i}
rmdev -Rdl et${i}
done
ifconfig -a
lsdev -Cc adapter | grep ent
# Rediscover all ethernet adapters
cfgmgr
lsdev -Cc adapter | grep ent
lsdev -C | grep inet
lsdev -C | grep lo
lscfg -l ent*
# turn off the chksum_offload parameter on all adapters
for i in 8 7 6 5 4 3 2 1 0
do
lsattr -El ent${i} | grep chksum_offload
chdev -l ent${i} -a chksum_offload=no
chdev -l ent${i} -a chksum_offload=no -P
lsattr -El ent${i} | grep chksum_offload
done
# Configure etherchannel devices, begin by removing existing adapters
for i in 6 7 8
do
rmdev -Rdl ent${i}
rmdev -Rdl en${i}
rmdev -Rdl et${i}
done
# ent0 and ent1 should represent virtual ethernet adapters shared
# from the VIO servers via slots 500 and 505.
# The netaddr points to the subnet gateway for the boot/service
# network, used for health check.
if mkdev -c adapter -s pseudo -t ibm_ech \
-a adapter_names='ent0,ent1' \
-a netaddr=10.33.65.254
then
/usr/lib/methods/defif
fi
# ent2 and ent3 should represent virtual ethernet adapters shared
# from the VIO servers via slots 850 and 855.
# The netaddr points to the subnet gateway for the "man" network,
# used for health check.
if mkdev -c adapter -s pseudo -t ibm_ech \
-a adapter_names='ent2,ent3' \
-a netaddr=10.33.68.254
then
/usr/lib/methods/defif
fi
# ent4 and ent5 should represent virtual ethernet adapters shared
# from the VIO servers via slots 900 and 905.
# The netaddr points to the subnet gateway for the boot/service
# network, used for health check.
if mkdev -c adapter -s pseudo -t ibm_ech \
-a adapter_names='ent4,ent5' \
-a netaddr=10.33.65.254
then
/usr/lib/methods/defif
fi
lsdev -Cc adapter | grep ent
# configure IP addresses on etherchannels
smitty tcpip
# daladcal01-boot: en6: 10.33.65.214
# daladcal01-man : en7:
# daladcal01-stby: en8:
################################################################
procedure|LPAR etherchannel configuration of daladcal02| see below
# Unconfigure all ethernet adapters
lscfg -l ent*
for i in 8 7 6 5 4 3 2 1 0
do
ifconfig en${i} down
ifconfig en${i} detach
ifconfig et${i} down
ifconfig et${i} detach
rmdev -Rdl ent${i}
rmdev -Rdl en${i}
rmdev -Rdl et${i}
done
ifconfig -a
lsdev -Cc adapter | grep ent
# Rediscover all ethernet adapters
cfgmgr
lsdev -Cc adapter | grep ent
lsdev -C | grep inet
lsdev -C | grep lo
lscfg -l ent*
# turn off the chksum_offload parameter on all adapters
for i in 8 7 6 5 4 3 2 1 0
do
lsattr -El ent${i} | grep chksum_offload
chdev -l ent${i} -a chksum_offload=no
chdev -l ent${i} -a chksum_offload=no -P
lsattr -El ent${i} | grep chksum_offload
done
# Configure etherchannel devices
for i in 6 7 8
do
rmdev -Rdl ent${i}
rmdev -Rdl en${i}
rmdev -Rdl et${i}
done
if mkdev -c adapter -s pseudo -t ibm_ech \
-a adapter_names='ent0' \
-a netaddr=10.33.65.254 \
-a backup_adapter=ent1
then
/usr/lib/methods/defif
fi
if mkdev -c adapter -s pseudo -t ibm_ech \
-a adapter_names='ent2' \
-a netaddr=10.33.68.254 \
-a backup_adapter=ent3
then
/usr/lib/methods/defif
fi
if mkdev -c adapter -s pseudo -t ibm_ech \
-a adapter_names='ent4,ent5' \
-a netaddr=10.33.65.254
then
/usr/lib/methods/defif
fi
lsdev -Cc adapter | grep ent
# configure IP addresses on etherchannels
smitty tcpip
# daladcal02-boot: en6: 10.33.65.216
|