📄 调试记录.txt
字号:
[root@(none) udisk]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:00:02:50:10:08
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:53 Base address:0x300
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1320 (1.2 KiB) TX bytes:1320 (1.2 KiB)
[root@(none) udisk]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@(none) udisk]# ifconfig eth0 down
[root@(none) udisk]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
[root@(none) udisk]# syslogd
[root@(none) udisk]# tail -f/var/log/messages &
[1] 436
tail: invalid option -- /
BusyBox v1.00 (2004.10.18-05:07+0000) multi-call binary
Usage: tail [OPTION]... [FILE]...
Print last 10 lines of each FILE to standard output.
With more than one FILE, precede each with a header giving the
file name. With no FILE, or when FILE is -, read standard input.
Options:
-c N[kbm] output the last N bytes
-n N[kbm] print last N lines instead of last 10
-f output data as the file grows
-q never output headers giving file names
-s SEC wait SEC seconds between reads with -f
-v always output headers giving file names
If the first character of N (bytes or lines) is a '+', output begins with
the Nth item from the start of each file, otherwise, print the last N items
in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2).
[root@(none) udisk]# tail -f /var/log/messages &
[2] 437
[1] Exit 1 tail -f/var/log/messages
Dec 31 19:09:32 (none) daemon.debug pppd[423]: rcvd [IPCP ConfNak id=0x2 <addr 10.227.2.24> <ms-dns1 211.136.20.203> <ms-dns3 211.136.17.107>]
Dec 31 19:09:32 (none) daemon.debug pppd[423]: sent [IPCP ConfReq id=0x3 <addr 10.227.2.24> <ms-dns1 211.136.20.203> <ms-dns3 211.136.17.107>]
Dec 31 19:09:32 (none) daemon.debug pppd[423]: rcvd [IPCP ConfAck id=0x3 <addr 10.227.2.24> <ms-dns1 211.136.20.203> <ms-dns3 211.136.17.107>]
Dec 31 19:09:32 (none) daemon.err pppd[423]: not replacing existing default route via 192.168.1.1
Dec 31 19:09:32 (none) daemon.notice pppd[423]: local IP address 10.227.2.24
Dec 31 19:09:32 (none) daemon.notice pppd[423]: remote IP address 10.227.2.24
Dec 31 19:09:32 (none) daemon.notice pppd[423]: primary DNS address 211.136.20.203
Dec 31 19:09:32 (none) daemon.notice pppd[423]: secondary DNS address 211.136.17.107
Dec 31 19:09:54 (none) syslog.info System log daemon exiting.
Dec 31 19:10:59 (none) syslog.info syslogd started: BusyBox v1.00 (2004.10.18-05:07+0000)
[root@(none) udisk]# ./ppp-on
Dec 31 19:11:48 (none) daemon.notice pppd[439]: pppd 2.4.4 started by root, uid 0
[root@(none) udisk]# Dec 31 19:11:50 (none) local2.info chat[441]: timeout set to 15 seconds
Dec 31 19:11:50 (none) local2.info chat[441]: abort on (\nBUSY\r)
Dec 31 19:11:50 (none) local2.info chat[441]: abort on (\nNO ANSWER\r)
Dec 31 19:11:50 (none) local2.info chat[441]: abort on (\nRINGING\r\n\r\nRINGING\r)
Dec 31 19:11:50 (none) local2.info chat[441]: send (rAT^M)
Dec 31 19:11:50 (none) local2.info chat[441]: expect (OK)
Dec 31 19:11:50 (none) local2.info chat[441]:
Dec 31 19:11:50 (none) local2.info chat[441]:
Dec 31 19:11:50 (none) local2.info chat[441]: NO CARRIER
Dec 31 19:11:50 (none) local2.info chat[441]:
Dec 31 19:11:50 (none) local2.info chat[441]: ^M
Dec 31 19:11:50 (none) local2.info chat[441]: OK
Dec 31 19:11:50 (none) local2.info chat[441]: -- got it
Dec 31 19:11:50 (none) local2.info chat[441]: send (ATE0V1^M)
Dec 31 19:11:50 (none) local2.info chat[441]: expect (OK)
Dec 31 19:11:50 (none) local2.info chat[441]: ^M
Dec 31 19:11:50 (none) local2.info chat[441]: ^M
Dec 31 19:11:50 (none) local2.info chat[441]: OK
Dec 31 19:11:50 (none) local2.info chat[441]: -- got it
Dec 31 19:11:50 (none) local2.info chat[441]: send (ATS0=0^M)
Dec 31 19:11:50 (none) local2.info chat[441]: expect (OK)
Dec 31 19:11:50 (none) local2.info chat[441]: ^M
Dec 31 19:11:50 (none) local2.info chat[441]: ^M
Dec 31 19:11:50 (none) local2.info chat[441]: OK
Dec 31 19:11:50 (none) local2.info chat[441]: -- got it
Dec 31 19:11:50 (none) local2.info chat[441]: send (AT+CGDCONT=1,"IP","CMNET"^M)
Dec 31 19:11:51 (none) local2.info chat[441]: timeout set to 30 seconds
Dec 31 19:11:51 (none) local2.info chat[441]: expect (OK)
Dec 31 19:11:51 (none) local2.info chat[441]: ^M
Dec 31 19:11:51 (none) local2.info chat[441]: ^M
Dec 31 19:11:51 (none) local2.info chat[441]: OK
Dec 31 19:11:51 (none) local2.info chat[441]: -- got it
Dec 31 19:11:51 (none) local2.info chat[441]: send (ATDT*99***1#^M)
Dec 31 19:11:51 (none) local2.info chat[441]: expect (CONNECT)
Dec 31 19:11:51 (none) local2.info chat[441]: ^M
Dec 31 19:11:51 (none) local2.info chat[441]: ^M
Dec 31 19:11:51 (none) local2.info chat[441]: CONNECT
Dec 31 19:11:51 (none) local2.info chat[441]: -- got it
Dec 31 19:11:51 (none) local2.info chat[441]: send (^M)
Dec 31 19:11:51 (none) daemon.info pppd[439]: Serial connection established.
Dec 31 19:11:51 (none) daemon.debug pppd[439]: using channel 3
Dec 31 19:11:51 (none) daemon.info pppd[439]: Using interface ppp0
Dec 31 19:11:51 (none) daemon.notice pppd[439]: Connect: ppp0 <--> /dev/tts/1
Dec 31 19:11:52 (none) daemon.debug pppd[439]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x33dfa18c> <pcomp> <accomp>]
Dec 31 19:11:52 (none) daemon.debug pppd[439]: rcvd [LCP ConfRej id=0x1 <magic 0x33dfa18c>]
Dec 31 19:11:52 (none) daemon.debug pppd[439]: sent [LCP ConfReq id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
Dec 31 19:11:52 (none) daemon.debug pppd[439]: rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
Dec 31 19:11:54 (none) daemon.debug pppd[439]: rcvd [LCP ConfReq id=0x3 <asyncmap 0x0> <auth chap MD5> <pcomp> <accomp>]
Dec 31 19:11:54 (none) daemon.debug pppd[439]: sent [LCP ConfAck id=0x3 <asyncmap 0x0> <auth chap MD5> <pcomp> <accomp>]
Dec 31 19:11:54 (none) daemon.debug pppd[439]: rcvd [CHAP Challenge id=0x2 <45becf181fa370a7d07408c9000edb20d05e6241859bd756f1467f74a1e3bbbdc874cc35eeba6965582b03b236b2d27a8f29a7>, name = ""]
Dec 31 19:11:54 (none) daemon.warn pppd[439]: Warning - secret file /etc/ppp/chap-secrets has world and/or group access
Dec 31 19:11:54 (none) daemon.debug pppd[439]: sent [CHAP Response id=0x2 <14fc1a15265a2591e147e1ea5f9561e3>, name = "gprs"]
Dec 31 19:11:54 (none) daemon.debug pppd[439]: rcvd [CHAP Success id=0x2 ""]
Dec 31 19:11:54 (none) daemon.info pppd[439]: CHAP authentication succeeded
Dec 31 19:11:54 (none) daemon.notice pppd[439]: CHAP authentication succeeded
Dec 31 19:11:54 (none) daemon.debug pppd[439]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Dec 31 19:11:54 (none) daemon.debug pppd[439]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Dec 31 19:11:54 (none) daemon.debug pppd[439]: rcvd [LCP ProtRej id=0x2 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Dec 31 19:11:54 (none) daemon.debug pppd[439]: Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
Dec 31 19:11:55 (none) daemon.debug pppd[439]: rcvd [IPCP ConfReq id=0x3 <addr 10.227.27.37>]
Dec 31 19:11:55 (none) daemon.debug pppd[439]: sent [IPCP ConfAck id=0x3 <addr 10.227.27.37>]
Dec 31 19:11:55 (none) daemon.debug pppd[439]: rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
Dec 31 19:11:55 (none) daemon.debug pppd[439]: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Dec 31 19:11:55 (none) daemon.debug pppd[439]: rcvd [IPCP ConfNak id=0x2 <addr 10.227.27.37> <ms-dns1 211.136.20.203> <ms-dns3 211.136.17.107>]
Dec 31 19:11:55 (none) daemon.debug pppd[439]: sent [IPCP ConfReq id=0x3 <addr 10.227.27.37> <ms-dns1 211.136.20.203> <ms-dns3 211.136.17.107>]
Dec 31 19:11:55 (none) daemon.debug pppd[439]: rcvd [IPCP ConfAck id=0x3 <addr 10.227.27.37> <ms-dns1 211.136.20.203> <ms-dns3 211.136.17.107>]
Dec 31 19:11:55 (none) daemon.notice pppd[439]: local IP address 10.227.27.37
Dec 31 19:11:55 (none) daemon.notice pppd[439]: remote IP address 10.227.27.37
Dec 31 19:11:55 (none) daemon.notice pppd[439]: primary DNS address 211.136.20.203
Dec 31 19:11:55 (none) daemon.notice pppd[439]: secondary DNS address 211.136.17.107
[root@(none) udisk]# cp /tmp/pppresolv.conf /tmp/resolv.conf
[root@(none) udisk]#
[root@(none) tmp]# ftp 59.42.10.114
Connected to 59.42.10.114.
220 Welcome to GEC FTP service.
Name (59.42.10.114:root): 1
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp> quit
221 Goodbye.
[root@(none) tmp]#
[root@(none) tmp]# ping www.baidu.com
PING www.a.shifen.com (202.108.22.43): 56 data bytes
64 bytes from 202.108.22.43: icmp_seq=0 ttl=51 time=585.8 ms
64 bytes from 202.108.22.43: icmp_seq=1 ttl=51 time=590.1 ms
64 bytes from 202.108.22.43: icmp_seq=2 ttl=51 time=550.0 ms
64 bytes from 202.108.22.43: icmp_seq=3 ttl=51 time=630.3 ms
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -