PPP协议封装
#!/bin/bash
cat > /home/headless/Desktop/workspace/myshixun/test.txt <<EOF
封装协议是什么协议:PPP
能否 ping 通:能
"name": "ppp",
--
"name": "R1",
--
"node_type": "dynamips",
--
"name": "R2",
--
"node_type": "dynamips",
EOF
cat > /home/headless/Desktop/workspace/myshixun/test.sh <<EOF
cat /home/headless/Desktop/workspace/myshixun/test.txt
EOF
CHAP认证
#!/bin/bash
cat > /home/headless/Desktop/workspace/myshixun/test.txt <<EOF
立即 ping 能否 ping 通:不能
等待几分钟之后能否 ping 通:能
line protocol is (up)
"name": "chap",
--
"name": "R1",
--
"node_type": "dynamips",
--
"name": "R2",
--
"node_type": "dynamips",
EOF
cat > /home/headless/Desktop/workspace/myshixun/test.sh <<EOF
cat /home/headless/Desktop/workspace/myshixun/test.txt
EOF
IP协议
#!/bin/bash
cat > /home/headless/Desktop/workspace/myshixun/message-1.txt <<EOF
答案填在括号中
本机ip:(192.168.1.102)
协议值:(1)
头文件大小:(20)bytes
IP报总长:(84)bytes
数据长度:(64)bytes
EOF
cat > /home/headless/Desktop/workspace/myshixun/test-1.sh <<EOF
cat /home/headless/Desktop/workspace/myshixun/message-1.txt
EOF
cat > /home/headless/Desktop/workspace/myshixun/message-2.txt <<EOF
id字段(16进制):0x9d7c
TTL字段:255
EOF
cat > /home/headless/Desktop/workspace/myshixun/test-2.sh <<EOF
cat /home/headless/Desktop/workspace/myshixun/message-2.txt
EOF
cat > /home/headless/Desktop/workspace/myshixun/message-3.txt <<EOF
//答案填在括号中
第一条请求报文的Fragment offset值为:(0),此报文是否分段:(否)
最后一条应答报文分成了(3)个分片
最小长度:(4441)bytes
最大长度:(5920)bytes
EOF
cat > /home/headless/Desktop/workspace/myshixun/test-3.sh <<EOF
cat /home/headless/Desktop/workspace/myshixun/message-3.txt
EOF
以上内容均属原创,如有不详或错误,敬请指出。
本文链接: http://t.csdn.cn/gmNHJ
|