20181120_jeffrey - silenceuncrio/diary GitHub Wiki

0905

review

再來爭取一下 NHRP 的進度

先把手邊的 Cisco 2951 開機

盤一下這好一陣子為了 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 群組

20181015

20181029

  • 把 quagga 提供的 NHRP build 起來

20181030

  • 針對新版的 quagga 把既有的 routing protocol 測一遍

20181101

整理一下 nhrp 可以參考的文件

20181109

20181112

  • 把 Cisco 2951 interface 設定 ip

0940

參考 20181112

利用 enable - Turn on privileged commands

Router>enable
Router#?

利用 configure - Enter configuration mode

Router#configure
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#

利用 interface - Select an interface to configure 指定 GigabitEthernet 0/0

Router(config)#interface GigabitEthernet 0/0
Router(config-if)#

利用 ip address ? 得知怎麼來設定 ip

Router(config-if)#ip address ?
  A.B.C.D  IP address
  dhcp     IP Address negotiated via DHCP
  pool     IP Address autoconfigured from a local DHCP pool

設定 IP - ip address 192.168.1.200 255.255.255.0

Router(config-if)#ip address 192.168.1.200 255.255.255.0
Router(config-if)#

利用 exit 退出 configuration mode

利用 show interfaces GigabitEthernet 0/0 來 check

如果是 administratively down

Router#show interfaces GigabitEthernet 0/0
GigabitEthernet0/0 is administratively down, line protocol is down
...

回到 configuration mode 的 interface GigabitEthernet 0/0

利用 no shutdown 把該 interface 叫起來

Router(config-if)#no shutdown
...
*Nov 12 07:05:02.923: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to down
*Nov 12 07:05:06.735: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to up
*Nov 12 07:05:07.735: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
...

具體的流程如下

Router>enable
Router#config
Router#configure
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface GigabitEthernet 0/0
Router(config-if)#ip address 192.168.1.200 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#exit
Router#show interfaces GigabitEthernet 0/0
GigabitEthernet0/0 is up, line protocol is up
  Hardware is PQ3_TSEC, address is d0d0.fd3f.42e0 (bia d0d0.fd3f.42e0)
  Internet address is 192.168.1.200/24
  MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Full Duplex, 100Mbps, media type is RJ45
  output flow-control is XON, input flow-control is XON
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input 00:00:02, output 00:00:09, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     41 packets input, 4818 bytes, 0 no buffer
     Received 15 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 2 multicast, 0 pause input
     360 packets output, 37101 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     2 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output
     0 output buffer failures, 0 output buffers swapped out
Router#

從 PC 端 ping

Windows PowerShell
著作權 (C) Microsoft Corporation. 著作權所有,並保留一切權利。

PS C:\Users\JEFFREY> ping 192.168.1.200

Ping 192.168.1.200 (使用 32 位元組的資料):
回覆自 192.168.1.200: 位元組=32 時間=1ms TTL=255
回覆自 192.168.1.200: 位元組=32 時間=1ms TTL=255
回覆自 192.168.1.200: 位元組=32 時間=1ms TTL=255
回覆自 192.168.1.200: 位元組=32 時間=1ms TTL=255

192.168.1.200 的 Ping 統計資料:
    封包: 已傳送 = 4,已收到 = 4, 已遺失 = 0 (0% 遺失),
大約的來回時間 (毫秒):
    最小值 = 1ms,最大值 = 1ms,平均 = 1ms

0955

切回 M360 工作

ariel 表示 top banner 上 online manual 的問號按鈕超級不顯眼

修正前

image

修正後

image

上 code

commit 53883f45689a4b9d9aaac15b17240a6175e23608
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Tue Nov 20 10:19:00 2018 +0800

    use a bigger question button to catch your eye

 proscend/prosrc/www/brand_proscend/src/brand/top.html.src | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

1050

繼續 NHRP

把 M300 開機

確認 M300 ping 的到 Cisco 2951

root@Cellular Router:~# ping 192.168.1.200
PING 192.168.1.200 (192.168.1.200): 56 data bytes
64 bytes from 192.168.1.200: seq=0 ttl=255 time=1.726 ms
64 bytes from 192.168.1.200: seq=1 ttl=255 time=0.875 ms
64 bytes from 192.168.1.200: seq=2 ttl=255 time=0.845 ms
64 bytes from 192.168.1.200: seq=3 ttl=255 time=1.085 ms
^C
--- 192.168.1.200 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.845/1.132/1.726 ms

目前已知的情報有 是方科技 GRE 的相關設定

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

我需要把這些設定套到 Cisco 2951 上

1120

沒什麼意外地都套完了

先進 configure mode

Router>enable
Router#configure
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#

interface Tunnel87654321

Router(config)#interface Tunnel ?
  <0-2147483647>  Tunnel interface number

Router(config)#interface Tunnel 87654321
Router(config-if)#
*Nov 20 03:36:44.270: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel87654321, changed state to down

bandwidth 2000

Router(config-if)#bandwidth ?
  <1-10000000>   Bandwidth in kilobits
  inherit        Specify how bandwidth is inherited
  qos-reference  Reference bandwidth for QOS test
  receive        Specify receive-side bandwidth

Router(config-if)#bandwidth 2000

ip address 172.30.96.5 255.255.255.248

Router(config-if)#ip address ?
  A.B.C.D     IP address
  dhcp        IP Address negotiated via DHCP
  negotiated  IP Address negotiated via IKEv2 Modeconfig
  pool        IP Address autoconfigured from a local DHCP pool

Router(config-if)#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

敲敲敲

Router(config-if)#no ip redirects
Router(config-if)#no ip unreachables
Router(config-if)#no ip proxy-arp
Router(config-if)#ip mtu 1500
Router(config-if)#ip nhrp authentication LTEGRE
Router(config-if)#ip nhrp network-id 87654321
Router(config-if)#load-interval 30
Router(config-if)#tunnel source GigabitEthernet 0/0
Router(config-if)#tunnel mode gre multipoint
Router(config-if)#
*Nov 20 03:39:11.314: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel87654321, changed state to uptu
Router(config-if)#tunnel key 87654321
Router(config-if)#

check 一下 - show interfaces tunnel 87654321

Router#show interfaces tunnel 87654321
Tunnel87654321 is up, line protocol is up
  Hardware is Tunnel
  Internet address is 172.30.96.5/29
  MTU 17912 bytes, BW 2000 Kbit/sec, DLY 50000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation TUNNEL, loopback not set
  Keepalive not set
  Tunnel linestate evaluation up
  Tunnel source 192.168.1.200 (GigabitEthernet0/0)
   Tunnel Subblocks:
      src-track:
         Tunnel87654321 source tracking subblock associated with GigabitEthernet0/0
          Set of tunnels with source GigabitEthernet0/0, 1 member (includes iterators), on interface <OK>
  Tunnel protocol/transport multi-GRE/IP
    Key 0x5397FB1, sequencing disabled
    Checksumming of packets disabled
  Tunnel TTL 255, Fast tunneling enabled
  Tunnel transport MTU 1472 bytes
  Tunnel transmit bandwidth 8000 (kbps)
  Tunnel receive bandwidth 8000 (kbps)
  Last input never, output never, output hang never
  Last clearing of "show interface" counters 00:07:32
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/0 (size/max)
  30 second input rate 0 bits/sec, 0 packets/sec
  30 second output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     0 packets output, 0 bytes, 0 underruns
     0 output errors, 0 collisions, 0 interface resets
     0 unknown protocol drops
     0 output buffer failures, 0 output buffers swapped out

看來可以研究 M300 怎麼跟這些 configure 配套了

1150

ariel 希望 online help 的字型能跟我們網頁一樣

commit 06793da8a449cff571c684c0cccfda326bffd0ba
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Tue Nov 20 11:59:09 2018 +0800

    do not specify the font-family at the CSS of online manual

 proscend/prosrc/www/manual/style.css | 3 ---
 1 file changed, 3 deletions(-)

1325

monkeyjj react-firebase-02

參考 A complete Firebase in React Tutorial [2018]

前期的目錄先規劃好

commit f113577f66051836c02a9413f88d76bdd9092624
Refs: [master], {origin/master}, {origin/HEAD}
Author: jeffrey <[email protected]>
Date:   Tue Nov 20 13:24:06 2018 +0800

    refactoring

 src/App.css                | 32 ---------------------
 src/App.js                 | 69 ----------------------------------------------
 src/App.test.js            |  9 ------
 src/components/App.css     | 32 +++++++++++++++++++++
 src/components/App.js      | 69 ++++++++++++++++++++++++++++++++++++++++++++++
 src/components/App.test.js |  9 ++++++
 src/index.js               |  2 +-
 src/logo.svg               |  7 -----
 8 files changed, 111 insertions(+), 118 deletions(-)

1415

monkeyjj react-firebase-02

firebase 有自己的 module

也就是把 firebase 的細節從 App.js 抽離

commit 9008585ef07fa16a553f09a8b572c96b91814ed3
Refs: [master], {origin/master}, {origin/HEAD}
Author: jeffrey <[email protected]>
Date:   Tue Nov 20 14:14:19 2018 +0800

    refactoring

 src/components/App.js    | 59 +++++++++++++++++++++++++++---------------------
 src/firebase/auth.js     | 13 +++++++++++
 src/firebase/firebase.js | 33 +++++++++++++++++++++++++++
 src/firebase/index.js    | 11 +++++++++
 4 files changed, 90 insertions(+), 26 deletions(-)

1455

monkeyjj react-firebase-02

A complete Firebase in React Tutorial [2018] 有更新了 - NOVEMBER 13, 2018

先套用一下

commit 838306ca0bef5937e64957aaf724ca35ee8b01f5
Refs: [master], {origin/master}, {origin/HEAD}
Author: jeffrey <[email protected]>
Date:   Tue Nov 20 14:53:16 2018 +0800

    refactoring:
    - according to https://www.robinwieruch.de/complete-firebase-authentication-react-tutorial/

 package-lock.json                  | 115 ++++++++++++++++++++++++++++++-------
 package.json                       |   1 +
 src/components/Account/index.js    |  14 +++++
 src/components/Admin/index.js      |  14 +++++
 src/components/App.css             |  32 -----------
 src/components/App.js              |  76 ------------------------
 src/components/App.test.js         |   9 ---
 src/components/App/index.js        |  36 ++++++++++++
 src/components/Home/index.js       |  14 +++++
 src/components/Landing/index.js    |  14 +++++
 src/components/Navigation/index.js |  22 +++++++
 src/constants/routes.js            |   6 ++
 src/firebase/firebase.js           |   1 -
 src/index.js                       |  10 ++--
 14 files changed, 219 insertions(+), 145 deletions(-)

facebook login 的部分後續再補上

1745

M360 最新的 develop iweb 沒起來

我複製不出該問題

ariel 表示 clean 之後再 build 就好了

⚠️ **GitHub.com Fallback** ⚠️