光阴冢

We make choices and life has a way of making us pay for them.

Networking

Jul 7, 2020  

浙大网络

记得修改里面的 eth0 ,IP 地址和网关。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description='ZJU ethernet with routes'
Interface=eth0
Connection=ethernet
IP=static

# Any valid iproute command can be placed in this array
IPCustom=(
'addr add dev eth0 10.15.192.49/24 brd +'
'route add 10.0.0.0/8 via 10.15.192.1'
'route add 210.32.0.0/20 via 10.15.192.1'
'route add 222.205.0.0/17 via 10.15.192.1'
'route add 210.32.128.0/19 via 10.15.192.1'
'route add 210.32.160.0/21 via 10.15.192.1'
'route add 210.32.168.0/22 via 10.15.192.1'
'route add 210.32.172.0/23 via 10.15.192.1'
'route add 210.32.174.0/24 via 10.15.192.1'
'route add 210.32.176.0/20 via 10.15.192.1'
'route add 58.196.192.0/19 via 10.15.192.1'
'route add 58.196.224.0/20 via 10.15.192.1'
)
DNSOptions=('resolv_conf_local_only=no')
DNS=('10.10.0.21' '2001:da8::666')

科研网络

https://gist.github.com/megrxu/1ad492eac2d343b4dbd4bb964ca37670

DDNS

推荐 dynv6 。 它还有一个用来更新 DNS 的脚本 https://gist.github.com/corny/7a07f5ac901844bd20c9