Monday, June 16, 2014

The Brocade DCX 8510-8 requires three IP addresses, which are configured using the ipAddrSet command. IP addresses are required for both CP blades (CP0 and CP1) and for the chassis management IP (shown as SWITCH under the ipAddrShowcommand) in the Brocade DCX 8510-8.
NOTE: The default IP addresses and host names for the Brocade DCX 8510-8 are:
– 10.77.77.75 / CP0 (the CP blade in slot 6 at the time of configuration)
– 10.77.77.74 / CP1 (the CP blade in slot 7 at the time of configuration)
ATTENTION! Resetting an IP address while the Brocade DCX 8510-8 has active IP traffic or has management and monitoring tools running, such as DCFM, Fabric Watch, and SNMP, can cause traffic to be interrupted or stopped.
swDir:admin> ipAddrSet -chassis
Enter the information at the prompts. Specify the -chassis IP address. The -sw 0 IP address is not valid on this chassis.
3.
swDir:admin> ipAddrSet -cp 0
4.
swDir:admin> ipAddrSet -cp 1
swDir:admin> ipaddrset -chassis
Ethernet IP Address [0.0.0.0]: 192.168.1.1
Ethernet Subnetmask [0.0.0.0]: 255.255.255.0
Fibre Channel IP Address [0.0.0.0]:
Fibre Channel Subnetmask [0.0.0.0]:
Issuing gratuitous ARP...Done.
Committing configuration...Done.
swDir:admin> ipaddrset -cp 0
Ethernet Subnetmask [0.0.0.0]: 255.255.255.0
Gateway IP Address [0.0.0.0]: 192.168.1.254
swDir:admin> ipaddrset -cp 1
Ethernet Subnetmask [0.0.0.0]: 255.255.255.0
Gateway IP Address [0.0.0.0]: 192.168.1.254
IP address of remote CP is being changed...Done.
Committing configuration...Done.

Wednesday, June 11, 2014

Linux Kickstart POST Script to Bond Two NICs

       =========================================

for i in $(ifconfig -a | sed 's/[ \t].*//;/^\(lo\|\)$/d' | grep eth)
do
STATUS=$(ethtool $i | grep 'Link detected' | awk -F: '{print $2}')

if [ $STATUS == 'yes' ]; then
                COUNTER=$((COUNTER+1))

                NIC[$COUNTER]="$i"
fi
done

cat << EOF1 >/etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
IPADDR=$IPADDRESS
NETMASK=$NETMASK
USERCTL=no
BONDING_OPTS="mode=1 miimon=100 primary=${NIC[1]}"
EOF1

cat << EOF2 >>/etc/sysconfig/network-scripts/ifcfg-${NIC[1]}
MASTER=bond0
SLAVE=yes
EOF2

cat << EOF3 >>/etc/sysconfig/network-scripts/ifcfg-${NIC[2]}
MASTER=bond0
SLAVE=yes
EOF3

echo 'alias bond0 bonding' >> /etc/modprobe.conf