Skip to content

Instantly share code, notes, and snippets.

eval "$(rbenv init -)"
rbenv local 2.5.1
bundle install
bundle exec jekyll new docs
@hkwi
hkwi / README.md
Last active October 23, 2018 10:25
Challenge Open Governance (COG) データ分析

Challenge Open Governance (COG) データ分析

  • cog.py : 課題を集めるプログラム
    • cog201x.csv : COG201x 課題
    • cog201x_meta.csv : COG201x 課題に使えるデータ
@hkwi
hkwi / 01_update_source.md
Last active November 5, 2018 00:51
cisco IOS bgp command memo

cisco IOS bgp command memo

  • neigbor A.B.C.D remote-as N

    • 二つの役割がある
    • A.B.C.D への接続を試みる候補である
    • A.B.C.D からの接続を許可するリストの役目も同時に持っている
  • neighbor A.B.C.D update-source

    • BGP 上の機能に違いはない
  • BGP のトランスポートである TCP/IP に作用する

@hkwi
hkwi / README.md
Last active November 7, 2018 05:30
batfish example (just for my memorandom)

batfish snapshot directory layout に従う。

snapshot は zip ファイルにまとめることもできる。

@hkwi
hkwi / README.md
Last active November 14, 2018 05:59
python logging strange behavior

disable_existing_loggers option in logging.config.fileConfig looks not working consistent.

@hkwi
hkwi / README.md
Last active November 18, 2018 11:39
mpls-bgp inter-as asbr

ASBR exchange (in BGP)

  • vpnv4 address (= rd + vrf ipv4)
  • mpls label (in BGP)
show mpls forwarding-table
show ip route vrf A
show bgp all
@hkwi
hkwi / README.md
Last active November 19, 2018 01:05
mpls bgp inter-as asbr next-hop-self

from r4

ping vrf A 192.168.3.1
@hkwi
hkwi / README.md
Last active December 4, 2018 07:08
mpls bgp inter-as asbr without next-hop-self

mpls bgp inter-as asbr

  • without LDP
  • without next-hop-self
  • without loopback
  • with bgp labeled-unicast
  • without route-reflector
  • without multi-hop ebgp
 +----+ +----+
@hkwi
hkwi / README.md
Last active November 21, 2018 03:17
LDP linux cisco

LDP interop

linux enforces loopback address in LDP

@hkwi
hkwi / README.md
Created November 21, 2018 03:29
bgp linux cisco

show bgp は動作がかなり違う