본문 바로가기

Work/Solaris

solaris IPMP 설정 ( 네트워크 bonding or Teaming )

* IPMP Active - Standby *


eeprom local-mac-address?=true

eerpom local-mac-address?


vi /etc/hosts

192.168.100.176    solaris

192.168.100.1 router


vi /etc/defaultrouter

router


vi /etc/netmasks

192.168.100.0 255.255.255.0


ifconfig fjgi0 192.168.100.176 netmask 255.255.255.0 group ipmp broadcast + up

vi /etc/hostname.fjgi0

solaris netmask 255.255.255.0 broadcast + group ipmp up



ifconfig fjgi2 group ipmp standby up

vi /etc/hostname.fjgi2

group ipmp standby up


ifconfig -a


* ipmp 확인 *

tail -f /var/adm/messages

if_mpadm -d fjgi0 

ifconfig -a



if_mpadm -r fjgi0




===============================================================2015.05.2cd /7

IPMP는 Solaris 8 up2 부터 기본 제공

IPMP 구성시 "local-mac-address?" 는 true 로 설정해야 합니다.


================================================================


IPMP auto-failback tuning

# vi /etc/default/mpathd

FAILBACK=yes  => no


Add IPMP ICMP target partner(switch)

# vi /etc/rc2.d/S70staticroutes

route -p add -host <Active_switch_IP_address> -static

route -p add -host <Standby_switch_IP_address> -static

#chmod 755 /etc/rc2.d/S70staticroutes




==========================================================

\* link-based active-active 구성

/etc/hostname.ce0
192.168.10.10 netmask + broadcast + group ipmp0 up

/etc/hostname.ce1
group ipmp0 up

# ifconfig -a
ce0: flags=1000843 mtu 1500 index 4
inet 192.168.10.10 netmask ffffff00 broadcast 192.168.10.255
groupname ipmp0
ether 0:3:ba:93:90:fc
ce1: flags=1000843 mtu 1500 index 5
inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255
groupname ipmp0
ether 0:3:ba:93:91:35

\* link-based active-standby 구성

/etc/hostname.ce0
192.168.10.10 netmask + broadcast + group ipmp0 up

/etc/hostname.ce1
group ipmp0 standby up


# ifconfig -a
ce0: flags=1000843 mtu 1500 index 4
inet 192.168.10.10 netmask ffffff00 broadcast 192.168.10.255
groupname ipmp0
ether 0:3:ba:93:90:fc
ce1: flags=69000842 mtu 0 index 5
inet 0.0.0.0 netmask 0
groupname ipmp0
ether 0:3:ba:93:91:35


참고용

출처 : https://blogs.oracle.com/clustermania/entry/solaris_10%EC%9D%98_link_base_ipmp

================================================================================




'Work > Solaris' 카테고리의 다른 글

tcp 파라미터  (0) 2015.01.13
while 문 사용하기  (0) 2015.01.07
zfs 파일 시스템  (0) 2014.12.30
solaris 10 NFS 설정  (0) 2014.12.28
solaris 10 zfs 상태 보기, 미러 걸기  (0) 2014.12.28