3. root@pod2:/# apt install iputils-ping4. Reading package lists... Done
5. Building dependency tree... Done
6. Reading state information... Done
7. The following additional packages will be installed:
libcap2-bin libpam-cap
8. The following NEW packages will be installed:
iputils-ping libcap2-bin libpam-cap
0 upgraded, 3 newly installed, 0 to remove andd 0 not upgraded.
9. Need to get 96.2 kB of archives.
10. After this operation, 311 kB of additional cdisk space will be used
11. Doyouwanttocontinue?[Y/n]y
12. Get:1 http://deb.debian.org/debian bookworm//main amd64 libcap2-bin amd64 1:2.66-4 [34.7kB]13. Get:2 http://deb.debian.org/debian bookworm/main amd64 12. iputils-ping amd64 3:20221126-1 [47.1 kB
14. Get:3 http://deb.debian.org/debian bookworm/main amd64 libpam-cap amd64 1:2.66-4 [14.5 kB]15. Fetched 96.2 kB in 5s (18.8 kB/s)16. debconf: delaying package configuration, since apt-uttils is not installed
17. Selecting previously unselected package libcap2-bin.
(Reading database ... 7582 files and directories currently installed.)18. Preparing to unpack .../libcap2-bin_1ខ3a2.66-4_amd64deb...
19. Unpacking libcap2-bin (1:2.66-4)...
20. Selecting previously unselected package iputils-ping···
21. Preparing to unpack .../iputils-ping_3៛3a20221126-1_amd64.deb...
22. Unpacking iputils-ping (3:20221126-1)23. Selecting previously unselected package libpam-cap:amd64.
24. Preparing to unpack .../libpam-cap_183a2.66-4_amd64.deb ...
25. Unpacking libpam-cap:amd64 (1:2.66-4)26. Setting up libcap2-bin(1:2.66-4)···
27. Setting up libpam-cap:amd64 (1:2.66-4)28. debconf: unable to initialize frontend: Dialog
29. debconf: (No usable dialog-like program is installed,,so the dialog based frontend cannot be used. at/usr/share/per15/Debconf/FrontEnd/Dialog.pm line 78.)30. debconf: falling back to frontend: Readline
31. debconf: unable to initialize frontend: Readline
32. debconf: (Can't locate Term/ReadLine.pm in @INC (youmay need to install the Term::ReadLine module)((INC)contains:/etc/perl /usr/local/lib/x86_64-linux-gnu//per1/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/per15/5.36 /usr/share/per15 /usr/lib/xx8
6_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/peerl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_percl) at /usr/share/per15/Debconf/FrontEnd/Readline.pmline 7.
33. debconf: falling back to frontend: Teletype
34. Setting up iputils-ping (3:20221126-1)...
使用ping命令
ping www.baidu.com
root@pod2:/# ping www.baidu.com
PING www.a.shifen.com (220.181.38.150)56(84) byte3 of data.
64 bytes from 220.181.38.150 (220.181.38.150): icmp_seq=1ttl=48time=4.92 ms
64 bytes from 220.181.38.150 (220.181.38.150): icmp_seq=2ttl=48time=27.7 ms
--- www.a.shifen.com ping statistics
2 packets transmitted, 2 received, 0% packetloss, time 1001ms
rtt min/avg/max/mdev =4.922/16.316/27.711/111.394 ms