20181015_jeffrey - silenceuncrio/diary GitHub Wiki

0910

一早來就有急件 - CTCU 的客訴問題

HTTPS 服務異常 說是 1.72 版

這個在 09-12 的版本就在 develop branch 解掉了

不過 1.73 release 的很急

是從 1.72 branch 出去的

後續的 hotfix/v1.73 也沒能套用倒

1000

盤一下待作事項

  • M300
    • GRE tunnel with NHRP - 11-01 ~ 11-15
  • M360 - end: 11-09
    • web UI/CLI: Traceroute from selected APN1/2 (In Routing)
    • Ethernet Status
    • Schedule Reboot
    • PLMN display

M360 除了 Schedule Reboot 是從 M300 porting 之外

其餘都是 UI 的工作

M300 的 GRE tunnel with NHRP 是我需要獨立負責的項目

先找一下相關的情報

20180717

是方科技 拿我們的 M300 想跟 CISCO 用 GRE 連接

但是 CISCO 對於 GRE 的詮釋方式跟我們不同

有提到啥 NHRP

要設啥 key 和 network-id

我需要找時間 survey 一下

20180731

為了作 是方科技 的生意

我需要 survey 一下如何與 cisco 的 gre 互聯

這引發出不少我不知道的技術
- mGRE
- DMVPN
- NHRP

這需要花時間消化一下才能知道該怎麼來實作

還需要估一個時間給主管

20180801

今天來了解一下啥是 mGRE 還有 NHRP

先看 [Introduction to Multipoint GRE and NHRP](https://www.pluralsight.com/blog/it-ops/multipoint-gre-tunnel-introduction)

是方科技有提供他們 GRE 的相關設定

`Cisco: 202.153.188.46`

interface Tunnel87654321
 bandwidth 2000
 ip address 172.30.96.5 255.255.255.248
 no ip redirects
 no ip unreachables
 no ip proxy-arp
 ip mtu 1500
 ip nhrp authentication LTEGRE
 ip nhrp network-id 87654321
 load-interval 30
 tunnel source FastEthernet4
 tunnel mode gre multipoint
 tunnel key 87654321

利用 `ip nhrp network-id` 可以搜尋到 `DMVPN` 這個關鍵字

20180809

之前 是方科技 表示 M300 的 GRE 沒辦法跟他們的 CISCO 作連接

因為 M300 沒有 NHRP

我們業務想著訂單

所以想知道 CISCO 可不可以跟沒有 NHRP 的 GRE 的 M300 作連接

相關的資訊可以看一下 M300 RD 的 LINE 群組

1020

再 review 一下 Introduction to Multipoint GRE and NHRP

1305

monkeyjj time...

1530

先針對以下的 task 先 survey 一下

  • M360 - end: 11-09
    • web UI/CLI: Traceroute from selected APN1/2 (In Routing)

之前 ping 可以指定 interface 是因為現有的 ping 就已經提供了 -I IFACE/IP Use interface or IP address as source

root@M360-P:/home/pi_admin# ping
BusyBox v1.22.1 (2018-09-14 04:24:50 UTC) multi-call binary.

Usage: ping [OPTIONS] HOST

Send ICMP ECHO_REQUEST packets to network hosts

        -4,-6           Force IP or IPv6 name resolution
        -c CNT          Send only CNT pings
        -s SIZE         Send SIZE data bytes in packets (default:56)
        -t TTL          Set TTL
        -I IFACE/IP     Use interface or IP address as source
        -W SEC          Seconds to wait for the first response (default:10)
                        (after all -c CNT packets are sent)
        -w SEC          Seconds until ping exits (default:infinite)
                        (can exit earlier with -c CNT)
        -q              Quiet, only displays output at start
                        and when finished

發現 traceroute 也有耶

root@M360-P:/home/pi_admin# traceroute
BusyBox v1.22.1 (2018-09-14 04:24:50 UTC) multi-call binary.

Usage: traceroute [-46FIldnrv] [-f 1ST_TTL] [-m MAXTTL] [-p PORT] [-q PROBES]
        [-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-g GATEWAY] [-i IFACE]
        [-z PAUSE_MSEC] HOST [BYTES]

Trace the route to HOST

        -4,-6   Force IP or IPv6 name resolution
        -F      Set the don't fragment bit
        -I      Use ICMP ECHO instead of UDP datagrams
        -l      Display the TTL value of the returned packet
        -d      Set SO_DEBUG options to socket
        -n      Print numeric addresses
        -r      Bypass routing tables, send directly to HOST
        -v      Verbose
        -m      Max time-to-live (max number of hops)
        -p      Base UDP port number used in probes
                (default 33434)
        -q      Number of probes per TTL (default 3)
        -s      IP address to use as the source address
        -t      Type-of-service in probe packets (default 0)
        -w      Time in seconds to wait for a response (default 3)
        -g      Loose source route gateway (8 max)

看來 implement 不是問題

順手作一下吧

1620

commit 2dd018c194488335e7c0419544d3f6170eadc4b0
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Oct 15 16:19:56 2018 +0800

    add 'Use Interface As Source' for 'Diagnosis / Traceroute'

 proscend/prosrc/www/app/feature/traceroute.html | 26 +++++++++++++++++++
 proscend/prosrc/www/app/feature/traceroute.js   | 34 ++++++++++++++++++++++++-
 proscend/prosrc/www/app/locale-en.json          |  2 ++
 proscend/prosrc/www/app/locale-fr.json          |  2 ++
 proscend/prosrc/www/app/locale-zh-tw.json       |  2 ++
 5 files changed, 65 insertions(+), 1 deletion(-)