|
电话线接猫,猫接网卡,
root@darkslack:~# pppoe-start
. Connected!
root@darkslack:~# cat /etc/resolv.conf
nameserver 218.2.135.1
nameserver 61.147.37.1
root@darkslack:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:03:0D:6B:1A:83
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::203:dff:fe6b:1a83/64 Scopeink
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2628 errors:0 dropped:0 overruns:0 frame:0
TX packets:2959 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1437805 (1.3 MiB) TX bytes:388568 (379.4 KiB)
Interrupt:17 Base address:0x2000
lo Link encapocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:38 errors:0 dropped:0 overruns:0 frame:0
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3096 (3.0 KiB) TX bytes:3096 (3.0 KiB)
ppp0 Link encapoint-to-Point Protocol
inet addr:221.226.137.86 P-t-P:221.231.205.99 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:54 (54.0 b) TX bytes:61 (61.0 b)
root@darkslack:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.236 ms
--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.236/0.236/0.236/0.000 ms
root@darkslack:~# ping 221.226.137.86
PING 221.226.137.86 (221.226.137.86) 56(84) bytes of data.
64 bytes from 221.226.137.86: icmp_seq=1 ttl=64 time=0.033 ms
64 bytes from 221.226.137.86: icmp_seq=2 ttl=64 time=0.032 ms
--- 221.226.137.86 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.032/0.032/0.033/0.005 ms
root@darkslack:~# ping 221.231.205.99
PING 221.231.205.99 (221.231.205.99) 56(84) bytes of data.
From 192.168.1.100 icmp_seq=1 Destination Host Unreachable
From 192.168.1.100 icmp_seq=2 Destination Host Unreachable
From 192.168.1.100 icmp_seq=3 Destination Host Unreachable
--- 221.231.205.99 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3008ms
, pipe 3
root@darkslack:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
221.231.205.99 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 1 0 0 eth0 |
|