20181203_jeffrey - silenceuncrio/diary GitHub Wiki
0920
review
0935
繼續 GRE NHRP
將 Cisco 2951 開機
0945
設定 Cisco 2951 的 IP 讓 M300 與 Cisco 2951 能互通
Router>enable
Router#configure 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:06:23, 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
28 packets input, 3082 bytes, 0 no buffer
Received 7 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 1 multicast, 0 pause input
241 packets output, 24704 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
1 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#
verify from M300
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=11.505 ms
64 bytes from 192.168.1.200: seq=1 ttl=255 time=1.091 ms
64 bytes from 192.168.1.200: seq=2 ttl=255 time=0.932 ms
64 bytes from 192.168.1.200: seq=3 ttl=255 time=0.963 ms
^C
--- 192.168.1.200 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.932/3.622/11.505 ms
root@Cellular Router:~#
1000
monkeyjj react-calendar-02
複習 Create a custom calendar in React
1155
將 Cisco 2951 關機
1315
將 Cisco 2951 開機
設定 Cisco 2951 的 IP 讓 M300 與 Cisco 2951 能互通
把 是方科技 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 上
Router(config)#interface Tunnel 87654321
Router(config-if)#bandwidth 2000
Router(config-if)#ip address 172.30.96.5 255.255.255.248
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)#tunnel source GigabitEthernet 0/0
Router(config-if)#tunnel mode gre multipoint
Router(config-if)#tunnel key 87654321
開始來 try M300 - 參考 Dynamic Multipoint VPN (DMVPN) Phase 3 with Quagga NHRPd
先把 nhrpd 叫起來
root@Cellular Router:~# touch /etc/quagga/nhrpd.conf
root@Cellular Router:~# nhrpd -d
參考 Introduction to Multipoint GRE and NHRP
M300 若是一台 Cisco 的話 config 應該會是像
interface Tunnel0
ip address 172.30.96.6 255.255.255.248
no ip redirects
ip nhrp authentication LTEGRE
ip nhrp network-id 87654321
tunnel source tunnel source 192.168.1.1
tunnel destination 192.168.1.200
tunnel key 87654321
先搞定 gre 部分
root@Cellular Router:~# ip tunnel add gre1 mode gre key 87654321 remote 192.168.1.200 local 192.168.1.1 ttl 255
root@Cellular Router:~# ip link set gre1 up
root@Cellular Router:~# ip addr add 172.30.96.6/29 dev gre1
再利用 vtysh 搞定 nhrpd
root@Cellular Router:~# vtysh
Hello, this is Quagga (version 1.2.4).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
Cellular Router# configure terminal
Cellular Router(config)# nhrp nflog-group 1
Cellular Router(config)# interface gre1
Cellular Router(config-if)# ip nhrp network-id 87654321
Cellular Router(config-if)# ip nhrp registration no-unique
Cellular Router(config-if)# ip nhrp shortcut
Cellular Router(config-if)# tunnel source 192.168.1.1
Cellular Router(config-if)# exit
Cellular Router(config)# exit
Cellular Router# write memory
Building Configuration...
Configuration saved to /etc/quagga/zebra.conf
Configuration saved to /etc/quagga/nhrpd.conf
[OK]
Cellular Router#
再來就進入未知的領域了
要怎麼知道 M300 與 Cisco 2951 之間的 GRE 到底連線了沒呢
直接 ping GRE tunnel ip 不知行不行
M300 gre1 的 ip 是 172.30.96.6/29
Cisco 2951 則是 172.30.96.5/29
從 M300 ping 看看吧
Cisco 2951 沒有任何回應
不過從 Cisco 2951 可以看到 counter 有增加
從 Cisco ping M300 也 ping 不到
不過 Cisco tx 的 counter 並沒有增加
1440
monkeyjj
1530
複習 Create a custom calendar in React 的過程又發現 CSS flexbox
這新玩意兒
CSS 的確值得再重新學習
為了 monkeyjj 我應該有 bootstrap 之外的選擇
不過現階段先不要為了 CSS 而停下了腳步
1615
將 Cisco 2951 關機
來解一下 M360 mantis issue
先拉一版最新的 release/v0.10
commit 422b4f3e0eed0d1074ef0816a031a9a20091eaa6
Author: jeffrey <[email protected]>
Date: Mon Dec 3 16:54:51 2018 +0800
add 'Active Image Partition' field at 'Management / Identification' web page
proscend/base_fs/default/rootfs/etc/rc.local | 15 ++++++++++-----
proscend/prosrc/icos/icoslib/system/systemcfg.c | 8 ++++++--
proscend/prosrc/icos/include/module_system.h | 1 +
proscend/prosrc/webcgi/system.c | 1 +
proscend/prosrc/www/app/feature/identification.html | 1 +
proscend/prosrc/www/app/locale-en.json | 1 +
proscend/prosrc/www/app/locale-fr.json | 1 +
proscend/prosrc/www/app/locale-zh-tw.json | 1 +
.../www/src/manual/management_identification.h.html | 4 ++++
9 files changed, 26 insertions(+), 7 deletions(-)
1700
又要幫忙 sync code 了