Ubuntu 配置PPTP客户端---命令行

时间:2024-11-13 22:09:00
root@localhost:~ # ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
     link /loopback  00:00:00:00:00:00 brd 00:00:00:00:00:00
     inet 127.0.0.1 /8  scope host lo
        valid_lft forever preferred_lft forever
     inet6 ::1 /128  scope host
        valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
     link /ether  00:0c:29:19:a7:0c brd ff:ff:ff:ff:ff:ff
     inet 192.168.1.113 /24  brd 255.255.255.255 scope global eth0
        valid_lft forever preferred_lft forever
     inet6 fe80::20c:29ff:fe19:a70c /64  scope link
        valid_lft forever preferred_lft forever
10: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1496 qdisc pfifo_fast state UNKNOWN group default qlen 3
     link /ppp
     inet 172.31.26.100 peer 172.31.26.143 /32  scope global ppp0
        valid_lft forever preferred_lft forever
 
root@localhost:~ # ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
     link /loopback  00:00:00:00:00:00 brd 00:00:00:00:00:00
     inet 127.0.0.1 /8  scope host lo
        valid_lft forever preferred_lft forever
     inet6 ::1 /128  scope host
        valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
     link /ether  00:0c:29:19:a7:0c brd ff:ff:ff:ff:ff:ff
     inet 192.168.1.113 /24  brd 255.255.255.255 scope global eth0
        valid_lft forever preferred_lft forever
     inet6 fe80::20c:29ff:fe19:a70c /64  scope link
        valid_lft forever preferred_lft forever
10: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1496 qdisc pfifo_fast state UNKNOWN group default qlen 3
     link /ppp
     inet 172.31.26.100 peer 172.31.26.143 /32  scope global ppp0
        valid_lft forever preferred_lft forever
root@localhost:~ # ping
PING (216.58.221.132) 56(84) bytes of data.
64 bytes from hkg07s02- in -f132. (216.58.221.132): icmp_seq=1 ttl=53  time =310 ms
64 bytes from hkg07s02- in -f132. (216.58.221.132): icmp_seq=2 ttl=53  time =323 ms