Solaris IPMP两种配置方法

更换华为防火墙后,发现Solaris基于ip探测方式配置的IPMP 呈现failed状态。经过分析,更改为基于link的IPMP配置方式后,解决了这次问题。

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


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

192.168.1.2 netmask + broadcast + group IPMPgroup up

/etc/hostname.e1000g1

group IPMPgroup up
Before Failure :
# ifconfig -a

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

inet 127.0.0.1 netmask ff000000

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

inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255

groupname IPMPgroup

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

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

inet 0.0.0.0 netmask ff000000

groupname IPMPgroup

ether 0:c:29:f6:ef:71
After Failure
# ifconfig -a

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

inet 127.0.0.1 netmask ff000000

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

inet 0.0.0.0 netmask 0

groupname IPMPgroup

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

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

inet 0.0.0.0 netmask ff000000

groupname IPMPgroup

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

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

inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255


b. Active standby Configuration
Command line :

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

192.168.1.2 netmask + broadcast + group IPMPgroup up

/etc/hostname.e1000g1

group IPMPgroup standby up
Before failure
# ifconfig -a

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

inet 127.0.0.1 netmask ff000000

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

inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255

groupname IPMPgroup

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

e1000g0:1: flags=1000842[BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 20

inet 0.0.0.0 netmask 0

e1000g1: flags=69000842[BROADCAST,RUNNING,MULTICAST,IPv4,NOFAILOVER,STANDBY,INACTIVE] mtu 0 index 21

inet 0.0.0.0 netmask 0

groupname IPMPgroup

ether 0:c:29:f6:ef:71
After failure
# ifconfig -a

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

inet 127.0.0.1 netmask ff000000

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

inet 0.0.0.0 netmask 0

groupname IPMPgroup

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

e1000g1: flags=21000842[BROADCAST,RUNNING,MULTICAST,IPv4,STANDBY] mtu 1500 index 21

inet 0.0.0.0 netmask 0

groupname IPMPgroup

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

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

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 :

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


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

/
/etc/hostname.e1000g1:

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

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

e1000g0: flags=1000843[UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 9
 
        inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255
 
        groupname ipmp0
 
        ether 0:c:29:f6:ef:67

e1000g0:1: flags=9040843[UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER] mtu 1500 index 9
 
        inet 192.168.1.3 netmask ffffff00 broadcast 192.168.1.255

e1000g1: flags=9040843[UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER] mtu 1500 index 10
 
        inet 192.168.1.4 netmask ffffff00 broadcast 192.168.1.255
 
        groupname ipmp0
 
        ether 0:c:29:f6:ef:71


After failure :
# ifconfig -a

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

e1000g0: flags=19000802[BROADCAST,MULTICAST,IPv4,NOFAILOVER,FAILED] mtu 0 index 9
 
        inet 0.0.0.0 netmask 0
 
        groupname ipmp0
 
        ether 0:c:29:f6:ef:67

e1000g0:1: flags=19040803[UP,BROADCAST,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,FAILED] mtu 1500 index 9
 
        inet 192.168.1.3 netmask ffffff00 broadcast 192.168.1.255

e1000g1: flags=9040843[UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER] mtu 1500 index 10
 
        inet 192.168.1.4 netmask ffffff00 broadcast 192.168.1.255
 
        groupname ipmp0
 
        ether 0:c:29:f6:ef:71

e1000g1:1: flags=1000843[UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 10
 
        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 :

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

192.168.1.2 netmask + broadcast + group ipmp0 up \

addif 192.168.1.3 netmask + broadcast + deprecated -failover up

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

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

e1000g0: flags=1000843[UP,BROADCAST,RUNNING,MULTICAST,IPv4] mtu 1500 index 11
 
        inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255
 
        groupname ipmp0
 
        ether 0:c:29:f6:ef:67

e1000g0:1: flags=9040843[UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER] mtu 1500 index 11
 
        inet 192.168.1.3 netmask ffffff00 broadcast 192.168.1.255

e1000g1: flags=69040843[UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE] mtu 1500 index 12
 
        inet 192.168.1.4 netmask ffffff00 broadcast 192.168.1.255
 
        groupname ipmp0
 
        ether 0:c:29:f6:ef:71
After failure :
# ifconfig -a

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

e1000g0: flags=19000802[BROADCAST,MULTICAST,IPv4,NOFAILOVER,FAILED] mtu 0 index 11
 
        inet 0.0.0.0 netmask 0
 
        groupname ipmp0
 
        ether 0:c:29:f6:ef:67

e1000g0:1: flags=19040803[UP,BROADCAST,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,FAILED] mtu 1500 index 11
 
        inet 192.168.1.3 netmask ffffff00 broadcast 192.168.1.255

e1000g1: flags=29040843[UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY] mtu 1500 index 12
 
        inet 192.168.1.4 netmask ffffff00 broadcast 192.168.1.255
 
        groupname ipmp0
 
        ether 0:c:29:f6:ef:71

e1000g1:1: flags=21000843[UP,BROADCAST,RUNNING,MULTICAST,IPv4,STANDBY] mtu 1500 index 12
 
        inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255

 

posted on 2017-07-26 17:56  #东来# 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/airport/p/7241100.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值