程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> PHP編程 >> 關於PHP編程 >> Solaris IPMP兩種配置方法

Solaris IPMP兩種配置方法

編輯:關於PHP編程

Solaris IPMP兩種配置方法


更換華為防火牆後,發現Solaris基於ip探測方式配置的IPMP 呈現failed狀態。經過分析,更改為基於link的IPMP配置方式後,解決了這次問題。

1、Multiple interface Link based IPMP configuration
a. Active – Active configuration
Command line :

  1. # ifconfig e1000g0 plumb 192.168.1.2 netmask + broadcast + group IPMPgroup up
  2. #
  3. # ifconfig e1000g1 plumb group IPMPgroup up
  4. For persistent configuration across reboots edit the files :
  5. /etc/hostname.e1000g0

  6. 192.168.1.2 netmask + broadcast + group IPMPgroup up

  7. /etc/hostname.e1000g1

  8. group IPMPgroup up
  9. Before Failure :
  10. # ifconfig -a

  11. lo0: flags=2001000849[UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL] mtu 8232 index 1
  12. inet 127.0.0.1 netmask ff000000

  13. e1000g0: flags=1000843[UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 14
  14. inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255
  15. groupname IPMPgroup
  16. ether 0:c:29:f6:ef:67

  17. e1000g1: flags=1000843[UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 15
  18. inet 0.0.0.0 netmask ff000000
  19. groupname IPMPgroup
  20. ether 0:c:29:f6:ef:71
  21. After Failure
  22. # ifconfig -a

  23. lo0: flags=2001000849[UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL] mtu 8232 index 1
  24. inet 127.0.0.1 netmask ff000000

  25. e1000g0: flags=19000802[BROADCAST,MULTICAST,IPv4,NOFAILOVER,FAILED] mtu 0 index 14
  26. inet 0.0.0.0 netmask 0
  27. groupname IPMPgroup
  28. ether 0:c:29:f6:ef:67

  29. e1000g1: flags=1000843[UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 15
  30. inet 0.0.0.0 netmask ff000000
  31. groupname IPMPgroup
  32. ether 0:c:29:f6:ef:71

  33. e1000g1:1: flags=1000843[UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 15
  34. inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255


b. Active standby Configuration
Command line :

  1. # ifconfig e1000g0 plumb 192.168.1.2 netmask + broadcast + group IPMPgroup up
  2. #
  3. # ifconfig e1000g1 plumb group IPMPgroup standby up
  4. For persistent configuration across reboots edit the files :
  5. /etc/hostname.e1000g0

  6. 192.168.1.2 netmask + broadcast + group IPMPgroup up

  7. /etc/hostname.e1000g1

  8. group IPMPgroup standby up
  9. Before failure
  10. # ifconfig -a

  11. lo0: flags=2001000849[UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL] mtu 8232 index 1
  12. inet 127.0.0.1 netmask ff000000

  13. e1000g0: flags=1000843[UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 20
  14. inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255
  15. groupname IPMPgroup
  16. ether 0:c:29:f6:ef:67

  17. e1000g0:1: flags=1000842[BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 20
  18. inet 0.0.0.0 netmask 0

  19. e1000g1: flags=69000842[BROADCAST,RUNNING,MULTICAST,IPv4,NOFAILOVER,STANDBY,INACTIVE] mtu 0 index 21
  20. inet 0.0.0.0 netmask 0
  21. groupname IPMPgroup
  22. ether 0:c:29:f6:ef:71
  23. After failure
  24. # ifconfig -a

  25. lo0: flags=2001000849[UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL] mtu 8232 index 1
  26. inet 127.0.0.1 netmask ff000000

  27. e1000g0: flags=19000802[BROADCAST,MULTICAST,IPv4,NOFAILOVER,FAILED] mtu 0 index 20
  28. inet 0.0.0.0 netmask 0
  29. groupname IPMPgroup
  30. ether 0:c:29:f6:ef:67

  31. e1000g1: flags=21000842[BROADCAST,RUNNING,MULTICAST,IPv4,STANDBY] mtu 1500 index 21
  32. inet 0.0.0.0 netmask 0
  33. groupname IPMPgroup
  34. ether 0:c:29:f6:ef:71

  35. e1000g1:1: flags=21000843[UP,BROADCAST,RUNNING,MULTICAST,IPv4,STANDBY] mtu 1500 index 21
  36. inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255
2、Most commonly used Probe-Based IPMP configurations
a. Active – Active configuration
Groupname: ipmp0
Active interface(s): e1000g0
e1000g1
Standby interface(s): -
Data IP addresse(s): 192.168.1.2
Test IP addresse(s): 192.168.1.3
192.168.1.4
Command line :

  1. # ifconfig e1000g0 plumb 192.168.1.2 netmask + broadcast + group ipmp0 up addif 192.168.1.3 netmask + broadcast + deprecated -failover up
  2. #
  3. # ifconfig e1000g1 plumb 192.168.1.4 netmask + broadcast + deprecated -failover group ipmp0 up


  4. To ensure persistent configuration across reboots edit the files :
  5. /etc/hostname.e1000g0:
  6. 192.168.1.2 netmask + broadcast + group ipmp0 up \
  7. addif 192.168.1.3 netmask + broadcast + deprecated -failover up

  8. /
  9. /etc/hostname.e1000g1:

  10. 192.168.1.4 netmask + broadcast + deprecated -failover group ipmp0 up
  11. Before failure :
  12. # ifconfig -a

  13. lo0: flags=2001000849[UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL] mtu 8232 index 1

  14. inet 127.0.0.1 netmask ff000000

  15. e1000g0: flags=1000843[UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 9

  16. inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255

  17. groupname ipmp0

  18. ether 0:c:29:f6:ef:67

  19. e1000g0:1: flags=9040843[UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER] mtu 1500 index 9

  20. inet 192.168.1.3 netmask ffffff00 broadcast 192.168.1.255

  21. e1000g1: flags=9040843[UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER] mtu 1500 index 10

  22. inet 192.168.1.4 netmask ffffff00 broadcast 192.168.1.255

  23. groupname ipmp0

  24. ether 0:c:29:f6:ef:71


  25. After failure :
  26. # ifconfig -a

  27. lo0: flags=2001000849[UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL] mtu 8232 index 1

  28. inet 127.0.0.1 netmask ff000000

  29. e1000g0: flags=19000802[BROADCAST,MULTICAST,IPv4,NOFAILOVER,FAILED] mtu 0 index 9

  30. inet 0.0.0.0 netmask 0

  31. groupname ipmp0

  32. ether 0:c:29:f6:ef:67

  33. e1000g0:1: flags=19040803[UP,BROADCAST,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,FAILED] mtu 1500 index 9

  34. inet 192.168.1.3 netmask ffffff00 broadcast 192.168.1.255

  35. e1000g1: flags=9040843[UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER] mtu 1500 index 10

  36. inet 192.168.1.4 netmask ffffff00 broadcast 192.168.1.255

  37. groupname ipmp0

  38. ether 0:c:29:f6:ef:71

  39. e1000g1:1: flags=1000843[UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 10

  40. inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255


2. Active – Standby
The only difference in case of a active-standby configuration is – the interface configured as standby is not used to send any out bound traffic. Thus disabling the load balancing feature of an active-active configuration.
Groupname: ipmp0
Active interface(s): e1000g0
Standby interface(s): e1000g1
Data IP addresse(s): 192.168.1.2
Test IP addresse(s): 192.168.1.3
192.168.1.4
Command line :

  1. # ifconfig e1000g0 plumb 192.168.1.2 netmask + broadcast + group ipmp0 up addif 192.168.1.3 netmask + broadcast + deprecated -failover up
  2. #
  3. # ifconfig e1000g1 plumb 192.168.1.4 netmask + broadcast + deprecated -failover group ipmp0 standby up
  4. To ensure persistent configuration across reboots edit the files :
  5. /etc/hostname.e1000g0:

  6. 192.168.1.2 netmask + broadcast + group ipmp0 up \

  7. addif 192.168.1.3 netmask + broadcast + deprecated -failover up

  8. /
  9. /etc/hostname.e1000g1:
  10. 192.168.1.4 netmask + broadcast + deprecated -failover group ipmp0 standby up
  11. Before failure :
  12. # ifconfig -a

  13. lo0: flags=2001000849[UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL] mtu 8232 index 1

  14. inet 127.0.0.1 netmask ff000000

  15. e1000g0: flags=1000843[UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 11

  16. inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255

  17. groupname ipmp0

  18. ether 0:c:29:f6:ef:67

  19. e1000g0:1: flags=9040843[UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER] mtu 1500 index 11

  20. inet 192.168.1.3 netmask ffffff00 broadcast 192.168.1.255

  21. e1000g1: flags=69040843[UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE] mtu 1500 index 12

  22. inet 192.168.1.4 netmask ffffff00 broadcast 192.168.1.255

  23. groupname ipmp0

  24. ether 0:c:29:f6:ef:71
  25. After failure :
  26. # ifconfig -a

  27. lo0: flags=2001000849[UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL] mtu 8232 index 1

  28. inet 127.0.0.1 netmask ff000000

  29. e1000g0: flags=19000802[BROADCAST,MULTICAST,IPv4,NOFAILOVER,FAILED] mtu 0 index 11

  30. inet 0.0.0.0 netmask 0

  31. groupname ipmp0

  32. ether 0:c:29:f6:ef:67

  33. e1000g0:1: flags=19040803[UP,BROADCAST,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,FAILED] mtu 1500 index 11

  34. inet 192.168.1.3 netmask ffffff00 broadcast 192.168.1.255

  35. e1000g1: flags=29040843[UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY] mtu 1500 index 12

  36. inet 192.168.1.4 netmask ffffff00 broadcast 192.168.1.255

  37. groupname ipmp0

  38. ether 0:c:29:f6:ef:71

  39. e1000g1:1: flags=21000843[UP,BROADCAST,RUNNING,MULTICAST,IPv4,STANDBY] mtu 1500 index 12

  40. inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255




  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved