2018.10.29-2018.11.4
簡述osi七層模型和TCP/IP五層模型
|
2.簡述iproute家族命令
3.詳細說明進行管理工具htop、vmstat等相關命令,並舉例
4.使用until和while分別實現192.168.0.0/24
網段內,地址是否能夠ping通,弱ping通則輸出"success!",若ping不通則輸出"fail!"
##############while迴圈############# #!/bin/bash declare -i ip=0 while [ $ip -lt 255 ];do ping -c 1 -W 1 172.16.100.$ip &> /dev/null && echo -e "ping 172.16.100.$ip \033[31msuccessful...\033[0m" || echo "ping 172.16.100.$ip failed..." let ip++ done ##############until迴圈############# #!/bin/bash declare -i ip=0 until [ $ip -ge 255 ];do ping -c 1 -W 1 172.16.100.$ip &> /dev/null && echo -e "ping 172.16.100.$ip \033[31msuccessful...\033[0m" || echo "ping 172.16.100.$ip failed..." let ip++ done |