클러스터의 모든 서버에게 ping을 요청하고 싶다.

 

먼저, 각 서버가 broadcast ping에 응답하도록 설정한다.

$ sudo sysctl -w net.ipv4.icmp_echo_ignore_broadcasts=0

 

모든 서버의 설정이 끝나면, 요청하는 서버에서 broadcast ping을 전송한다.

(Broadcast IP는 ifconfig 명령에서 확인할 수 있다.)

$ ping -b {broadcast IP}

 

참고 자료

https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_%EB%B8%8C%EB%A1%9C%EB%93%9C%EC%BA%90%EC%8A%A4%ED%8A%B8_%ED%95%91

 

리눅스 브로드캐스트 핑 - 제타위키

다음 문자열 포함...

zetawiki.com

https://www.commandlinefu.com/commands/view/10774/find-all-machines-on-the-network-using-broadcast-ping

 

Find all machines on the network using broadcast ping Using ping

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down. Share Your Command

www.commandlinefu.com

 

+ Recent posts