Skip to content

Ping

지정한 대상 호스트로 ICMP (Internet Control Message Protocol)패킷을 보내고 그 응답으로 받은 결과를 통하여 통신 상태를 점검하는 명령어이다.

Install

sudo apt-get install iputils-ping

Command-line flasg

  • -s: 패킷의 크기(size)를 설정.
  • -q: 종합 결과만 보여준다.
  • -i: Interval(지연시간) 설정.
  • -c: 패킷 수 지정.
  • -b: ping테스트를 하는 서버와 동일한 네트워크에 있는 모든 호스트로 패킷을 보낸다.

Tutorials

Making our own ping

  1. A short (and mostly wrong) history of computer networking
  2. Windows dynamic libraries, calling conventions, and transmute
  3. FFI-safe types in Rust, newtypes and MaybeUninit
  4. Designing and implementing a safer API on top of LoadLibrary
  5. A simple ping library, parsing strings into IPv4 address
  6. The builder pattern, and a macro that keeps FFI code DRY
  7. Finding the default network interface through WMI
  8. Binding C APIs with variable-length structs and UTF-16
  9. Consuming Ethernet frames with the nom crate
  10. Improving error handling - panics vs. proper errors
  11. Parsing IPv4 packets, including numbers smaller than bytes
  12. Parsing and serializing ICMP packets with cookie-factory
  13. Crafting ARP packets to find a remote host's MAC address
  14. Crafting ICMP-bearing IPv4 packets with the help of bitvec

Tutorials

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

방화벽(e.g. iptables) 등에서 필터링 되었을 가능성이 높다.

See also

Favorite site

References


  1. Fasterthanli.me-20201112.zip