2013年(12)
分类: LINUX
2013-03-01 15:15:39
<*> PPP (point-to-point protocol) support
[*] PPP multilink support
<*> PPP support for async serial ports
<*> PPP support for sync tty ports
<*> SLIP (serial line) support
[*] CSLIP compressed headers
********************************** Quidway A8010 Internet Server ** welcome!! **********************************please input username:16300
timeout set to 15 seconds
abort on (\nBUSY\r)
abort on (\nNO ANSWER\r)
abort on (\nRINGING\r\n\r\nRINGING\r)
send (AT^M)
expect (OK)
^M
OK
-- got it
send (ATH0^M)
timeout set to 35 seconds
send (^MAT^M)
expect (OK)
^M
^M
OK
-- got it
send (ATS0=0^M)
expect (OK)
^M
^M
OK
-- got it
send (ATE0V1^M)
expect (OK)
^M
^M
OK
-- got it
send (ATDT16300^M)
expect (sername:)
^M
^M
OK^M
^M
CONNECT 115200^M
^M
*********************************^M
* Quidway A8010 Internet Server *^M
* welcome!! *^M
*********************************^M
please input username:
-- got it
send (16300^M)
expect (assword:)
16300^M
please input password:
-- got it
send (16300^M)
Serial connection established.
using channel 33
Using interface ppp0
Connect: ppp0 <--> /dev/ttyAM0
rcvd [LCP ConfReq id=0xf]
sent [LCP ConfReq id=0x1]
sent [LCP ConfRej id=0xf]
rcvd [LCP ConfReq id=0x10]
sent [LCP ConfAck id=0x10]
rcvd [LCP ConfAck id=0x1]
sent [IPCP ConfReq id=0x1]
rcvd [IPCP ConfReq id=0x9]
sent [IPCP ConfAck id=0x9]
rcvd [IPCP ConfRej id=0x1]
sent [IPCP ConfReq id=0x2]
rcvd [IPCP ConfNak id=0x1]
rcvd [IPCP ConfNak id=0x2]
sent [IPCP ConfReq id=0x3]
rcvd [IPCP ConfAck id=0x3]
local IP address 61.131.21.193
remote IP address 61.154.24.26
primary DNS address 218.85.157.99
secondary DNS address 218.85.152.99
运行ifconfig -a 查看IP地址[linux_T1@witsi]ifconfig -alo Link encap:Local Loopback
LOOPBACK MTU:16436 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ppp0 Link encap:Point-to-Point Protocol
inet addr:61.131.21.65 P-t-P:61.154.24.24 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:20 errors:1 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1230 (1.2 KiB) TX bytes:1518 (1.4 KiB)
运行netstat -r 查看路由表
[linux_T1@witsi]netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
61.154.24.24 * 255.255.255.255 UH 0 0 0 ppp0
default * 0.0.0.0 U 0 0 0 ppp0
PING 202.108.23.153 (202.108.23.153): 56 data bytes
64 bytes from 202.108.23.153: seq=0 ttl=52 time=440.129 ms
64 bytes from 202.108.23.153: seq=1 ttl=52 time=444.117 ms
64 bytes from 202.108.23.153: seq=2 ttl=52 time=728.819 ms
64 bytes from 202.108.23.153: seq=3 ttl=52 time=434.603 ms
64 bytes from 202.108.23.153: seq=4 ttl=52 time=739.271 ms
64 bytes from 202.108.23.153: seq=5 ttl=52 time=435.060 ms
64 bytes from 202.108.23.153: seq=6 ttl=52 time=429.737 ms
64 bytes from 202.108.23.153: seq=7 ttl=52 time=425.529 ms
64 bytes from 202.108.23.153: seq=8 ttl=52 time=439.989 ms
64 bytes from 202.108.23.153: seq=9 ttl=52 time=685.783 ms
64 bytes from 202.108.23.153: seq=10 ttl=52 time=430.271 ms
64 bytes from 202.108.23.153: seq=11 ttl=52 time=426.696 ms
64 bytes from 202.108.23.153: seq=12 ttl=52 time=431.173 ms
64 bytes from 202.108.23.153: seq=13 ttl=52 time=666.597 ms
64 bytes from 202.108.23.153: seq=14 ttl=52 time=432.987 ms
64 bytes from 202.108.23.153: seq=15 ttl=52 time=688.002 ms
64 bytes from 202.108.23.153: seq=16 ttl=52 time=442.673 ms
64 bytes from 202.108.23.153: seq=17 ttl=52 time=688.515 ms
64 bytes from 202.108.23.153: seq=18 ttl=52 time=454.500 ms
64 bytes from 202.108.23.153: seq=19 ttl=52 time=699.022 ms
64 bytes from 202.108.23.153: seq=20 ttl=52 time=464.852 ms
64 bytes from 202.108.23.153: seq=21 ttl=52 time=449.543 ms
64 bytes from 202.108.23.153: seq=22 ttl=52 time=455.588 ms
64 bytes from 202.108.23.153: seq=23 ttl=52 time=709.351 ms
64 bytes from 202.108.23.153: seq=24 ttl=52 time=445.172 ms
64 bytes from 202.108.23.153: seq=25 ttl=52 time=719.790 ms
64 bytes from 202.108.23.153: seq=26 ttl=52 time=445.616 ms
64 bytes from 202.108.23.153: seq=27 ttl=52 time=450.068 ms
64 bytes from 202.108.23.153: seq=28 ttl=52 time=455.900 ms
64 bytes from 202.108.23.153: seq=29 ttl=52 time=440.347 ms
64 bytes from 202.108.23.153: seq=30 ttl=52 time=446.166 ms
64 bytes from 202.108.23.153: seq=31 ttl=52 time=450.638 ms
^C
--- 202.108.23.153 ping statistics ---
32 packets transmitted, 32 packets received, 0% packet lossround-trip min/avg/max = 425.529/515.515/739.271 ms
问题:还有一个疑惑的问题是 只能ping ip地址,不能ping 域名。在网络上有人说要建立/etc/resolv.conf就OK啦,可是我也建了,就是不能ping 域名,希望高手指点。
作者 :frp 转载请注明出处,谢谢合作。