hean@multiple-ssh> ip add|grep eth1
10.77.104.146:4: 3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
10.77.104.148:4: 3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
10.77.104.150:4: 3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
10.77.104.147:4: 3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
10.77.104.149:4: 3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
hean@multiple-ssh> cat /etc/sysconfig/network-scripts/ifcfg-eth1
10.77.104.147:5: DEVICE="eth1"
10.77.104.147:5: HWADDR="F8:BC:12:34:B5:DD"
10.77.104.147:5: NM_CONTROLLED="yes"
10.77.104.147:5: ONBOOT="yes"
10.77.104.147:5: IPADDR=
10.77.104.149:5: DEVICE="eth1"
10.77.104.149:5: HWADDR="F8:BC:12:34:AB:61"
10.77.104.149:5: NM_CONTROLLED="yes"
10.77.104.149:5: ONBOOT="yes"
10.77.104.149:5: IPADDR=
10.77.104.148:5: DEVICE="eth1"
10.77.104.148:5: HWADDR="F8:BC:12:34:AD:B5"
10.77.104.148:5: NM_CONTROLLED="yes"
10.77.104.148:5: ONBOOT="yes"
10.77.104.148:5: IPADDR=
10.77.104.146:5: DEVICE="eth1"
10.77.104.146:5: HWADDR="F8:BC:12:34:CC:D9"
10.77.104.146:5: NM_CONTROLLED="yes"
10.77.104.146:5: ONBOOT="yes"
10.77.104.146:5: IPADDR=
10.77.104.150:5: DEVICE="eth1"
10.77.104.150:5: HWADDR="F8:BC:12:34:C5:B9"
10.77.104.150:5: NM_CONTROLLED="yes"
10.77.104.150:5: ONBOOT="yes"
10.77.104.150:5: IPADDR=
hean@multiple-ssh> rsync 10.217.13.242::hean/bond/bond.sh .
hean@multiple-ssh> ls
10.77.104.146:9: bond.sh
10.77.104.148:9: bond.sh
10.77.104.149:9: bond.sh
10.77.104.147:9: bond.sh
10.77.104.150:9: bond.sh
hean@multiple-ssh> sudo ./bond.sh
hean@multiple-ssh>
[root@localhost tmp]# ls
10.77.104.146.log 10.77.104.147.log 10.77.104.148.log 10.77.104.149.log 10.77.104.150.log
[root@localhost tmp]# cat 10.77.104.146.log
eth0 is active. IPADDR=10.77.104.146 , NETMASK=255.255.255.0 , GATEWAY=10.77.104.1
************************************************
DEVICE="eth0"
BOOTPROTO=none
HWADDR="F8:BC:12:34:CC:D8"
NM_CONTROLLED="yes"
ONBOOT="yes"
MASTER=bond0
SLAVE=yes
************************************************
DEVICE="eth1"
HWADDR="F8:BC:12:34:CC:D9"
NM_CONTROLLED="yes"
ONBOOT="yes"
MASTER=bond0
SLAVE=yes
************************************************
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.77.104.146
NETMASK=255.255.255.0
GATEWAY=10.77.104.1
USERCTL=no
************************************************
alias bond0 bonding
options bond0 mode=0 miimon=100
[root@localhost tmp]# cat 10.77.104.147.log
eth0 is active. IPADDR=10.77.104.147 , NETMASK=255.255.255.0 , GATEWAY=10.77.104.1
************************************************
DEVICE="eth0"
BOOTPROTO=none
HWADDR="F8:BC:12:34:B5:DC"
NM_CONTROLLED="yes"
ONBOOT="yes"
MASTER=bond0
SLAVE=yes
************************************************
DEVICE="eth1"
HWADDR="F8:BC:12:34:B5:DD"
NM_CONTROLLED="yes"
ONBOOT="yes"
MASTER=bond0
SLAVE=yes
************************************************
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.77.104.147
NETMASK=255.255.255.0
GATEWAY=10.77.104.1
USERCTL=no
************************************************
alias bond0 bonding
options bond0 mode=0 miimon=100
|