$ sudo ip netns add via-mape0
$ sudo ip link add link eno1 name eno1-via-mape0 type macvlan
$ sudo ip link set eno1-via-mape0 netns via-mape0
$ sudo ip netns exec via-mape0 ip link set up eno1-via-mape0
$ sudo ip netns exec via-mape0 ip addr add 192.168.1.194/24 dev eno1-via-mape0
$ sudo ip netns exec via-mape0 ip route add default via 192.168.1.4
$ sudo ip netns exec via-mape0 sysctl net.ipv6.conf.eno1-via-mape0.disable_ipv6=1
PPPoE(非固定IP)用Network namespace
1
2
3
4
5
6
7
$ sudo ip netns add via-pppoe0
$ sudo ip link add link eno1 name eno1-via-pppoe0 type macvlan
$ sudo ip link set eno1-via-pppoe0 netns via-pppoe0
$ sudo ip netns exec via-pppoe0 ip link set up eno1-via-pppoe0
$ sudo ip netns exec via-pppoe0 ip addr add 192.168.1.195/24 dev eno1-via-pppoe0
$ sudo ip netns exec via-pppoe0 ip route add default via 192.168.1.1
$ sudo ip netns exec via-pppoe0 sysctl net.ipv6.conf.eno1-via-pppoe0.disable_ipv6=1
PPPoE(固定IP)用Network namespace
1
2
3
4
5
6
7
$ sudo ip netns add via-pppoe1
$ sudo ip link add link eno1 name eno1-via-pppoe1 type macvlan
$ sudo ip link set eno1-via-pppoe1 netns via-pppoe1
$ sudo ip netns exec via-pppoe1 ip link set up eno1-via-pppoe1
$ sudo ip netns exec via-pppoe1 ip addr add 192.168.1.91/24 dev eno1-via-pppoe1
$ sudo ip netns exec via-pppoe1 ip route add default via 192.168.1.1
$ sudo ip netns exec via-pppoe1 sysctl net.ipv6.conf.eno1-via-pppoe1.disable_ipv6=1
Rakuten Mobile , Inc の ',' が column -t を邪魔するので適当に置換
日本から選択されるサーバーだと多分楽天くらいでしょ、という雑な思考。
こんな感じ。
1
2
3
4
5
6
7
$ cat *.csv | sed -e 's|Rakuten Mobile , Inc|Rakuten Mobile Inc|g'| sed -e 's|,,|, ,|g'| column -t -s,
Server ID Sponsor Server Name Timestamp Distance Ping Download Upload Share IP Address
24333 "Rakuten Mobile Inc" Tokyo 2021-02-07T03:05:47.475853Z 12.528808904013356 11.266 79505004.87288187 36668132.419154905 192.0.2.1
Server ID Sponsor Server Name Timestamp Distance Ping Download Upload Share IP Address
20976 GLBB Japan Tokyo 2021-02-07T03:05:25.837489Z 5.655995199339113 9.492 67140904.17977004 32070065.54473701 192.0.2.2
Server ID Sponsor Server Name Timestamp Distance Ping Download Upload Share IP Address
28910 fdcservers.net Tokyo 2021-02-07T03:05:02.623738Z 22.18603273987707 17.256 46765815.919281825 36843565.37561603 192.0.2.3