2016年6月2日木曜日

CentOS7 bonding on VMware ESXi 5.5

[root@c7 ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 TYPE=Bond BONDING_MASTER=yes BOOTPROTO=none ONBOOT=yes IPADDR=192.168.0.84 PREFIX=24 GATEWAY=192.168.0.1 DNS1=192.168.0.254 DOMAIN=tsystem.gr.jp BONDING_OPTS="mode=active-backup miimon=100" [root@c7 ~]# cat /etc/sysconfig/network-scripts/ifcfg-ens32 TYPE="Ethernet" BOOTPROTO=none HWADDR=00:0C:29:FE:63:2C NAME="ens32" UUID="a4fc62df-e4dc-4a98-82b0-ae7597c94c3e" DEVICE="ens32" ONBOOT="yes" MASTER=bond0 SLAVE=yes [root@c7 ~]# cat /etc/sysconfig/network-scripts/ifcfg-ens34 HWADDR=00:0C:29:FE:63:36 TYPE=Ethernet NAME="ens34" DEVICE=ens34 UUID="f511fbe2-7b69-44ac-a820-32a21a5b77a5" ONBOOT="yes" BOOTPROTO=none MASTER=bond0 SLAVE=yes [root@c7 ~]# [root@c7 ~]# cat ts.sh #!/bin/sh echo '###############################################################################' cat /etc/redhat-release date '+%Y%m%d.%H%M%S' echo '# ip link show ################################################################' ip link show echo '# ip addr show ################################################################' ip addr show echo '# ping gw #####################################################################' ping -c 1 192.168.0.1 echo '###############################################################################' [root@c7 ~]#

[root@c7 ~]# ./ts.sh ############################################################################### CentOS Linux release 7.2.1511 (Core) 20160601.232223 # ip link show ################################################################ 1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: ens32: mtu 1500 qdisc pfifo_fast master bond0 state UP mode DEFAULT qlen 1000 link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff 3: ens34: mtu 1500 qdisc pfifo_fast master bond0 state UP mode DEFAULT qlen 1000 link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff 6: bond0: mtu 1500 qdisc noqueue state UP mode DEFAULT link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff # ip addr show ################################################################ 1: lo: mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens32: mtu 1500 qdisc pfifo_fast master bond0 state UP qlen 1000 link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff 3: ens34: mtu 1500 qdisc pfifo_fast master bond0 state UP qlen 1000 link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff 6: bond0: mtu 1500 qdisc noqueue state UP link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff inet 192.168.0.84/24 brd 192.168.0.255 scope global bond0 valid_lft forever preferred_lft forever inet6 240f:6f:ea7e:1:20c:29ff:fefe:632c/64 scope global mngtmpaddr dynamic valid_lft 297sec preferred_lft 297sec inet6 fe80::dc3b:f8ff:fe45:d208/64 scope link valid_lft forever preferred_lft forever # ping gw ##################################################################### PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. 64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=0.360 ms --- 192.168.0.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.360/0.360/0.360/0.000 ms ############################################################################### [root@c7 ~]#

[root@c7 ~]# ./ts.sh ############################################################################### CentOS Linux release 7.2.1511 (Core) 20160601.232434 # ip link show ################################################################ 1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: ens32: mtu 1500 qdisc pfifo_fast master bond0 state DOWN mode DEFAULT qlen 1000 link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff 3: ens34: mtu 1500 qdisc pfifo_fast master bond0 state UP mode DEFAULT qlen 1000 link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff 6: bond0: mtu 1500 qdisc noqueue state UP mode DEFAULT link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff # ip addr show ################################################################ 1: lo: mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens32: mtu 1500 qdisc pfifo_fast master bond0 state DOWN qlen 1000 link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff 3: ens34: mtu 1500 qdisc pfifo_fast master bond0 state UP qlen 1000 link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff 6: bond0: mtu 1500 qdisc noqueue state UP link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff inet 192.168.0.84/24 brd 192.168.0.255 scope global bond0 valid_lft forever preferred_lft forever inet6 240f:6f:ea7e:1:20c:29ff:fefe:632c/64 scope global mngtmpaddr dynamic valid_lft 289sec preferred_lft 289sec inet6 fe80::dc3b:f8ff:fe45:d208/64 scope link valid_lft forever preferred_lft forever # ping gw ##################################################################### PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. 64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=0.341 ms --- 192.168.0.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.341/0.341/0.341/0.000 ms ############################################################################### [root@c7 ~]#

[root@c7 ~]# ./ts.sh ############################################################################### CentOS Linux release 7.2.1511 (Core) 20160601.232600 # ip link show ################################################################ 1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: ens32: mtu 1500 qdisc pfifo_fast master bond0 state UP mode DEFAULT qlen 1000 link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff 3: ens34: mtu 1500 qdisc pfifo_fast master bond0 state UP mode DEFAULT qlen 1000 link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff 6: bond0: mtu 1500 qdisc noqueue state UP mode DEFAULT link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff # ip addr show ################################################################ 1: lo: mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens32: mtu 1500 qdisc pfifo_fast master bond0 state UP qlen 1000 link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff 3: ens34: mtu 1500 qdisc pfifo_fast master bond0 state UP qlen 1000 link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff 6: bond0: mtu 1500 qdisc noqueue state UP link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff inet 192.168.0.84/24 brd 192.168.0.255 scope global bond0 valid_lft forever preferred_lft forever inet6 240f:6f:ea7e:1:20c:29ff:fefe:632c/64 scope global mngtmpaddr dynamic valid_lft 275sec preferred_lft 275sec inet6 fe80::dc3b:f8ff:fe45:d208/64 scope link valid_lft forever preferred_lft forever # ping gw ##################################################################### PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. 64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=0.359 ms --- 192.168.0.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.359/0.359/0.359/0.000 ms ############################################################################### [root@c7 ~]#

[root@c7 ~]# ./ts.sh ############################################################################### CentOS Linux release 7.2.1511 (Core) 20160601.232647 # ip link show ################################################################ 1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: ens32: mtu 1500 qdisc pfifo_fast master bond0 state UP mode DEFAULT qlen 1000 link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff 3: ens34: mtu 1500 qdisc pfifo_fast master bond0 state DOWN mode DEFAULT qlen 1000 link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff 6: bond0: mtu 1500 qdisc noqueue state UP mode DEFAULT link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff # ip addr show ################################################################ 1: lo: mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens32: mtu 1500 qdisc pfifo_fast master bond0 state UP qlen 1000 link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff 3: ens34: mtu 1500 qdisc pfifo_fast master bond0 state DOWN qlen 1000 link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff 6: bond0: mtu 1500 qdisc noqueue state UP link/ether 00:0c:29:fe:63:2c brd ff:ff:ff:ff:ff:ff inet 192.168.0.84/24 brd 192.168.0.255 scope global bond0 valid_lft forever preferred_lft forever inet6 240f:6f:ea7e:1:20c:29ff:fefe:632c/64 scope global mngtmpaddr dynamic valid_lft 270sec preferred_lft 270sec inet6 fe80::dc3b:f8ff:fe45:d208/64 scope link valid_lft forever preferred_lft forever # ping gw ##################################################################### PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. 64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=0.321 ms --- 192.168.0.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.321/0.321/0.321/0.000 ms ############################################################################### [root@c7 ~]#

0 件のコメント: