모든 네트워크 인터페이스를 기준으로 Link 활성화 대상 찾기
Linux OS상에 인식된 Ethernet Device 에 대하여 Speed와 Link 여부를 아래와 같은 명령으로 확인 가능하다. [root@TEST01 ~]# [root@TEST01 ~]# for LIST in `ip addr | grep -w mtu | cut -d ":" -f 2 | egrep -v 'lo|inet|virbr'`; do echo "${LIST} - `ethtool ${LIST} | egrep 'Speed|Link detected'`" && echo; done eth0 - Speed: Unknown! Link detected: no eth1 - Speed: 10000Mb/s Link detected: yes eth2 - Speed: 10000Mb/s Link detected: yes..
System Story/CentOS 5,6
2013. 11. 10. 18:23
반응형
최근에 올라온 글
최근에 달린 댓글
- Total
- 303,446
- Today
- 7
- Yesterday
- 97