리눅스 본딩 확인

Jmnote (토론 | 기여)님의 2014년 8월 27일 (수) 19:51 판 (→‎1개 확인)
리눅스 이더넷 bond 확인
리눅스 bonding 확인
리눅스 bonding 정보 수집

1 방법 1: ifcfg-eth 파일

[root@localhost ~]# grep -H MASTER= /etc/sysconfig/network-scripts/ifcfg-eth*
/etc/sysconfig/network-scripts/ifcfg-eth0:MASTER=bond0
/etc/sysconfig/network-scripts/ifcfg-eth1:MASTER=bond0
/etc/sysconfig/network-scripts/ifcfg-eth2:MASTER=bond1
/etc/sysconfig/network-scripts/ifcfg-eth3:MASTER=bond1
→ eth0 + eth1 → bond0
→ eth2 + eth3 → bond1

2 전체 확인

2.1 명령어

DEVNAMES=(`ifconfig -a | grep eth | awk '{print $1}' | xargs echo`)
for DEVNAME in "${DEVNAMES[@]}"
do
        MASTER=`grep MASTER= /etc/sysconfig/network-scripts/ifcfg-$DEVNAME`
        echo "$DEVNAME --- $MASTER"
done

2.2 실행예시

[root@jmnote ~]# for DEVNAME in "${DEVNAMES[@]}"; do MASTER=`grep MASTER= /etc/sysconfig/network-scripts/ifcfg-$DEVNAME`; echo "$DEVNAME --- $MASTER"; done
eth0 --- MASTER=bond1
eth1 --- MASTER=bond1
eth2 --- 
eth3 --- 
eth4 --- MASTER=bond0
eth5 --- 
eth6 --- MASTER=bond0
eth7 ---
→ eth0과 eth1이 bond1로 묶여 있음
→ eth4과 eth6이 bond0으로 묶여 있음

3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}