ip命令

从运维(PE)同学那边学了几句基本的网络命令

ip route add 140.205.xx.xx (这个ip是对方的ip) via 10.110.xx.xx(这个是自己的网关) dev bond0 
ip addr
ip route

windows

route add 140.205.59.86 mask 255.255.255.255 10.110.75.247 -p

解决访问不了 github问题

[root workflow_10048421 /ossfs/workspace] 三 3月 22 11:26:01 
$ping  github.com
connect: Network is unreachable

[root workflow_10048421 /ossfs/workspace] 三 3月 22 11:26:59 
$telnet  github.com
Trying 20.205.243.166...
telnet: connect to address 20.205.243.166: Network is unreachable

[root workflow_10048421 /ossfs/workspace] 三 3月 22 11:33:50 
$ip route
6.0.0.0/8 via 33.137.127.253 dev eth0 
10.0.0.0/8 via 33.137.127.253 dev eth0 
11.0.0.0/8 via 33.137.127.253 dev eth0 
30.0.0.0/8 via 33.137.127.253 dev eth0 
33.0.0.0/8 via 33.137.127.253 dev eth0 
33.137.112.0/20 dev eth0  proto kernel  scope link  src 33.137.122.93 
42.96.128.0/17 via 33.137.127.253 dev eth0 
...

[root workflow_10048421 /ossfs/workspace] 三 3月 22 11:34:02 
$ip route add 20.0.0.0/8 via 33.137.127.253 dev eth0

[root workflow_10048421 /ossfs/workspace] 三 3月 22 11:35:25 
$ping  github.com
PING github.com (20.205.243.166) 56(84) bytes of data.
^Z
[6]+  Stopped                 ping github.com

[root workflow_10048421 /ossfs/workspace] 三 3月 22 11:35:44 
$git clone https://github.com/shenweichen/DeepCTR.git --depth=1
Cloning into 'DeepCTR'...
remote: Enumerating objects: 279, done.
remote: Counting objects: 100% (279/279), done.
remote: Compressing objects: 100% (220/220), done.
remote: Total 279 (delta 91), reused 170 (delta 54), pack-reused 0
Receiving objects: 100% (279/279), 5.45 MiB | 6.03 MiB/s, done.
Resolving deltas: 100% (91/91), done.
Checking out files: 100% (262/262), done.
posted @ 2017-10-14 21:02  bregman  阅读(152)  评论(0)    收藏  举报