ITPub博客

首页 > Linux操作系统 > Linux操作系统 > IP别名的IPAT的接管测试

IP别名的IPAT的接管测试

原创 Linux操作系统 作者:westzq1984 时间:2009-05-09 01:19:33 0 删除 编辑

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/,如需转载,请注明出处,否则将追究法律责任。

上一篇: Asynchronous Commit
请登录后发表评论 登录
全部评论

注册时间:2009-04-06

  • 博文量
    251
  • 访问量
    953783