IP別名的IPAT的接管測試
10.10.1.61 P61A_boot
10.10.1.62 P61B_boot
12.0.0.61 P61A_priv
12.0.0.62 P61B_priv
10.10.3.101 svc_1 P61A
10.10.3.102 svc_2 P61B
10.10.3.201 P61A_p
10.10.3.202 P61B_p
測試前:
-bash-3.00# ifconfig -a
en0: flags=4e080863,80
inet 12.0.0.61 netmask 0xffffff00 broadcast 12.0.0.255
inet 10.10.3.101 netmask 0xffffff00 broadcast 10.10.3.255 -- 持續IP
en1: flags=4e080863,80
inet 10.10.1.61 netmask 0xffffff00 broadcast 10.10.1.255
inet 10.10.3.201 netmask 0xffffff00 broadcast 10.10.3.255 --服務IP
lo0: flags=e08084b
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
-bash-3.00# rsh P61B ifconfig -a
en0: flags=4e080863,80
inet 12.0.0.62 netmask 0xffffff00 broadcast 12.0.0.255
inet 10.10.3.202 netmask 0xffffff00 broadcast 10.10.3.255 --持續IP
en1: flags=4e080863,80
inet 10.10.1.62 netmask 0xffffff00 broadcast 10.10.1.255
inet 10.10.3.102 netmask 0xffffff00 broadcast 10.10.3.255 --服務IP
lo0: flags=e08084b
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
測試1:宕掉P61B的en1
-bash-3.00# ifconfig -a
en0: flags=4e080863,80
inet 12.0.0.62 netmask 0xffffff00 broadcast 12.0.0.255
inet 10.10.3.202 netmask 0xffffff00 broadcast 10.10.3.255
inet 10.10.3.102 netmask 0xffffff00 broadcast 10.10.3.255
en1: flags=4e080862,80
inet 10.10.1.62 netmask 0xffffff00 broadcast 10.10.1.255
lo0: flags=e08084b
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
測試2:啟動P61B的en1
-bash-3.00# ifconfig en1 up
服務IP依然駐留在en0上
測試3:宕掉P61B的en0,en1
-bash-3.00# ifconfig en1 down
-bash-3.00# ifconfig en0 down
P61A的IP
-bash-3.00# ifconfig -a
en0: flags=4e080863,80
inet 12.0.0.61 netmask 0xffffff00 broadcast 12.0.0.255
inet 10.10.3.101 netmask 0xffffff00 broadcast 10.10.3.255
en1: flags=4e080863,80
inet 10.10.1.61 netmask 0xffffff00 broadcast 10.10.1.255
inet 10.10.3.201 netmask 0xffffff00 broadcast 10.10.3.255
inet 10.10.3.102 netmask 0xffffff00 broadcast 10.10.3.255
lo0: flags=e08084b
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
服務IP102掛到了P61A的en1上面
測試4:我在把P61A的en1也宕掉
-bash-3.00# ifconfig en1 down
-bash-3.00# ifconfig -a
en0: flags=4e080863,80
inet 12.0.0.61 netmask 0xffffff00 broadcast 12.0.0.255
inet 10.10.3.101 netmask 0xffffff00 broadcast 10.10.3.255
inet 10.10.3.201 netmask 0xffffff00 broadcast 10.10.3.255
en1: flags=4e080862,80
inet 10.10.1.61 netmask 0xffffff00 broadcast 10.10.1.255
inet 10.10.3.102 netmask 0xffffff00 broadcast 10.10.3.255
lo0: flags=e08084b
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
持續IP可以跳到en0上,而服務IP102是無法跳過去的,102不可用
測試5:啟動P61A的en1
-bash-3.00# ifconfig en1 up
-bash-3.00# ifconfig -a
en0: flags=4e080863,80
inet 12.0.0.61 netmask 0xffffff00 broadcast 12.0.0.255
inet 10.10.3.102 netmask 0xffffff00 broadcast 10.10.3.255
en1: flags=4e080863,80
inet 10.10.1.61 netmask 0xffffff00 broadcast 10.10.1.255
inet 10.10.3.201 netmask 0xffffff00 broadcast 10.10.3.255
inet 10.10.3.101 netmask 0xffffff00 broadcast 10.10.3.255
lo0: flags=e08084b
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
en0和en1的IP對調了(出去本來的IP地址)
測試6:重啟P61B,重啟HACMP
-bash-3.00# ifconfig -a
en0: flags=4e080863,80
inet 12.0.0.61 netmask 0xffffff00 broadcast 12.0.0.255
en1: flags=4e080863,80
inet 10.10.1.61 netmask 0xffffff00 broadcast 10.10.1.255
inet 10.10.3.201 netmask 0xffffff00 broadcast 10.10.3.255
inet 10.10.3.101 netmask 0xffffff00 broadcast 10.10.3.255
lo0: flags=e08084b
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
-bash-3.00# rsh P61B ifconfig -a
en0: flags=4e080863,80
inet 12.0.0.62 netmask 0xffffff00 broadcast 12.0.0.255
inet 10.10.3.202 netmask 0xffffff00 broadcast 10.10.3.255
en1: flags=4e080863,80
inet 10.10.1.62 netmask 0xffffff00 broadcast 10.10.1.255
inet 10.10.3.102 netmask 0xffffff00 broadcast 10.10.3.255
lo0: flags=e08084b
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
IP已經切換回來了
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8242091/viewspace-594577/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- IP替換的IPAT的接管測試
- 單網路卡的基於IP別名的IPAT測試
- IP別名\替換IP
- 介面測試和效能測試的區別
- 介面測試和功能測試的區別
- 快代理代理IP測試,最新代理IP質量測試
- 小白測試系列:介面測試與效能測試的區別
- 功能測試、自動化測試、效能測試的區別
- 安全測試和滲透測試的區別
- 測試方案和測試計劃的區別
- 遊戲測試和軟體測試的區別遊戲
- 白盒測試、灰盒測試以及黑盒測試的區別
- APP的測試版與正式版區別——蘋果企業簽名APP蘋果
- 測試NUMBER型別的效能型別
- 識別主機名和IP地址
- 黑盒測試、白盒測試、單元測試、整合測試、系統測試、驗收測試的區別與聯絡...
- 福祿克的驗證測試和認證測試的區別
- 聊聊各種測試的區別
- JB的測試之旅-IOS證書及簽名iOS
- 測試物件和測試級別物件
- 知識普及:黑盒測試、白盒測試、灰盒測試之間的區別
- Debug模式下,測試app字尾名“-測試”模式APP
- 軟體驗收測試 常見測試報告的型別測試報告型別
- 軟體驗收測試和系統測試的區別點
- 如何測試重簽名的應用功能是否正常
- 一名測試工程師的日常習慣工程師
- CTS測試與GTS測試區別
- 做一名能文能武的測試員,教你測試與開發溝通時的常勝秘籍
- 4大軟體測試策略的特點和區別(單元測試、整合測試、確認測試和系統測試)
- 介面測試,負載測試,併發測試,壓力測試區別負載
- 福祿克線纜驗收測試、鑑定測試和認證測試的區別
- 手工測試用例與自動化測試用例的區別
- 自動化裝置測試與自動化測試的區別
- 提問:遊戲測試與一般的軟體測試的區別在哪裡?遊戲
- IP_別名、路徑_別名、路徑_wwid及開機啟動設定
- Android Testing學習01 介紹 測試測什麼 測試的型別Android型別
- 有哪些特別好用的 app 測試工具?APP
- 測試Java中的long,int基本型別Java型別