Skip to content

Instantly share code, notes, and snippets.

@hkwi
hkwi / README.md
Created November 24, 2018 06:41
frr bgp example

frr/linux bgp example

show ip bgp sum
show ip route
@hkwi
hkwi / README.md
Last active December 16, 2023 07:03
frrouting/linux bgp mpls example

frrouting/linux bgp mpls example

Prepare vrf netdev before frrouting configuration. Exit from vtysh and execute following commands in bash, then invoke vtysh again.

ip link add vrfA type vrf table 10
ip link set eth1 master vrfA
ip link set vrfA up
@hkwi
hkwi / README.md
Created November 26, 2018 02:23
frrouting/linux, cisco ebgp mpls example

frrouting/linux, cisco ebgp mpls example

Prepare vrf netdev before frrouting configuration. Exit from vtysh and execute following commands in bash, then invoke vtysh again.

ip link add vrfA type vrf table 10
ip link set eth1 master vrfA
ip link set vrfA up
@hkwi
hkwi / README.md
Last active November 30, 2018 10:08
frrouting vpn/bgp+mpls inter-as option b

frrouting vpn/bgp+mpls inter-as option b

  • with next-hop-self
  • without loopback
  • without bgp labeled-unicast
  • without route-reflector
  • without multi-hop ebgp

r1, r2

exit
@hkwi
hkwi / README.md
Last active November 30, 2018 10:08
frrouting vpn/bgp+mpls inter-as option b

frrouting vpn/bgp+mpls inter-as option b

  • with next-hop-self
  • with loopback
  • without bgp labeled-unicast
  • without route-reflector
  • without multi-hop ebgp

r1, r2

@hkwi
hkwi / README.md
Last active December 4, 2018 06:23
cisco vpn/bgp+mpls inter-as option b

cisco vpn/bgp+mpls inter-as option b

  • with next-hop-self
  • with loopback
  • with ldp
  • without bgp labeled-unicast
  • without route-reflector
  • without multi-hop ebgp

表示バグの罠に注意。

@hkwi
hkwi / 19.txt
Last active December 20, 2018 15:36
漢字演習
実働
労働
重労働
働き者
工場で働く
特集
特色
特別
独特
特急電車
@hkwi
hkwi / README.md
Last active December 4, 2018 06:23
cisco+frrouting vpn/bgp+mpls ibgp

cisco+frrouting vpn/bgp+mpls ibgp

  • with next-hop-self
  • with loopback
  • with ldp
  • without bgp labeled-unicast
  • without route-reflector
  • without multi-hop ebgp

Linux の MPLS は loopback を使うことが前提になっている。Linux では LDP を動作させなくても 192.168.0.1 が label 付きパケットを受け取るという前提で動作してしまう。

@hkwi
hkwi / README.md
Last active December 17, 2018 04:00
kubernetes setup

kubernetes setup

qemu

python seed.py base.cfg:cloud-config setup.sh:x-shellscript > user-data

genisoimage  -output kube.iso -volid cidata -joliet -rock user-data meta-data
@hkwi
hkwi / hello.xml
Created December 4, 2018 15:41
7200 netconf capabilities
<?xml version="1.0" encoding="UTF-8"?>
<hello>
<capabilities>
<capability>urn:ietf:params:netconf:base:1.0</capability>
<capability>urn:ietf:params:netconf:capability:writeable-running:1.0</capability>
<capability>urn:ietf:params:netconf:capability:startup:1.0</capability>
<capability>urn:ietf:params:netconf:capability:url:1.0</capability>
<capability>urn:cisco:params:netconf:capability:pi-data-model:1.0</capability>
<capability>urn:cisco:params:netconf:capability:notification:1.0</capability>
</capabilities>