summaryrefslogtreecommitdiff
path: root/docs/configexamples/bgp-ipv6-unnumbered.rst
diff options
context:
space:
mode:
authorrebortg <github@ghlr.de>2020-12-08 14:57:44 +0100
committerrebortg <github@ghlr.de>2020-12-08 14:57:44 +0100
commitf6c43343bbea7c98b6e735f5204da1759343ca23 (patch)
tree8ddd1150ffaf65cd36678ebc95c7d9fb22ae1dce /docs/configexamples/bgp-ipv6-unnumbered.rst
parente6d0a80db37769a3d40084a8d55abfd7b24b941a (diff)
parent0bb741b58bc0dd7f0beae7364ed519f7165bdbb7 (diff)
downloadvyos-documentation-f6c43343bbea7c98b6e735f5204da1759343ca23.tar.gz
vyos-documentation-f6c43343bbea7c98b6e735f5204da1759343ca23.zip
Merge branch 'sagitta' of https://github.com/rebortg/vyos-documentation
Diffstat (limited to 'docs/configexamples/bgp-ipv6-unnumbered.rst')
-rw-r--r--docs/configexamples/bgp-ipv6-unnumbered.rst172
1 files changed, 172 insertions, 0 deletions
diff --git a/docs/configexamples/bgp-ipv6-unnumbered.rst b/docs/configexamples/bgp-ipv6-unnumbered.rst
new file mode 100644
index 00000000..ccc1f69a
--- /dev/null
+++ b/docs/configexamples/bgp-ipv6-unnumbered.rst
@@ -0,0 +1,172 @@
+.. _examples-bgp-ipv6-unnumbered:
+
+#########################################
+BGP IPv6 unnumbered with extended nexthop
+#########################################
+
+General information can be found in the :ref:`bgp` chapter.
+
+Configuration
+=============
+
+- Router A:
+
+.. code-block:: none
+
+ set protocols bgp 64496 address-family ipv4-unicast redistribute connected
+ set protocols bgp 64496 address-family ipv6-unicast redistribute connected
+ set protocols bgp 64496 neighbor eth1 interface v6only
+ set protocols bgp 64496 neighbor eth1 interface v6only peer-group 'fabric'
+ set protocols bgp 64496 neighbor eth2 interface v6only
+ set protocols bgp 64496 neighbor eth2 interface v6only peer-group 'fabric'
+ set protocols bgp 64496 parameters bestpath as-path multipath-relax
+ set protocols bgp 64496 parameters bestpath compare-routerid
+ set protocols bgp 64496 parameters default no-ipv4-unicast
+ set protocols bgp 64496 parameters router-id '192.168.0.1'
+ set protocols bgp 64496 peer-group fabric address-family ipv4-unicast
+ set protocols bgp 64496 peer-group fabric address-family ipv6-unicast
+ set protocols bgp 64496 peer-group fabric capability extended-nexthop
+ set protocols bgp 64496 peer-group fabric remote-as 'external'
+
+- Router B:
+
+.. code-block:: none
+
+ set protocols bgp 64499 address-family ipv4-unicast redistribute connected
+ set protocols bgp 64499 address-family ipv6-unicast redistribute connected
+ set protocols bgp 64499 neighbor eth1 interface v6only
+ set protocols bgp 64499 neighbor eth1 interface v6only peer-group 'fabric'
+ set protocols bgp 64499 neighbor eth2 interface v6only
+ set protocols bgp 64499 neighbor eth2 interface v6only peer-group 'fabric'
+ set protocols bgp 64499 parameters bestpath as-path multipath-relax
+ set protocols bgp 64499 parameters bestpath compare-routerid
+ set protocols bgp 64499 parameters default no-ipv4-unicast
+ set protocols bgp 64499 parameters router-id '192.168.0.2'
+ set protocols bgp 64499 peer-group fabric address-family ipv4-unicast
+ set protocols bgp 64499 peer-group fabric address-family ipv6-unicast
+ set protocols bgp 64499 peer-group fabric capability extended-nexthop
+ set protocols bgp 64499 peer-group fabric remote-as 'external'
+
+Results
+=======
+
+- Router A:
+
+.. code-block:: none
+
+ vyos@vyos:~$ show interfaces
+ Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
+ Interface IP Address S/L Description
+ --------- ---------- --- -----------
+ eth0 198.51.100.34/24 u/u
+ eth1 - u/u
+ eth2 - u/u
+ lo 127.0.0.1/8 u/u
+ 192.168.0.1/32
+ ::1/128
+
+.. code-block:: none
+
+ vyos@vyos:~$ show ip route
+ Codes: K - kernel route, C - connected, S - static, R - RIP,
+ O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
+ T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
+ F - PBR, f - OpenFabric,
+ > - selected route, * - FIB route
+
+ S>* 0.0.0.0/0 [210/0] via 198.51.100.34, eth0, 03:21:53
+ C>* 198.51.100.0/24 is directly connected, eth0, 03:21:53
+ C>* 192.168.0.1/32 is directly connected, lo, 03:21:56
+ B>* 192.168.0.2/32 [20/0] via fe80::a00:27ff:fe3b:7ed2, eth2, 00:05:07
+ * via fe80::a00:27ff:fe7b:4000, eth1, 00:05:07
+
+.. code-block:: none
+
+ vyos@vyos:~$ ping 192.168.0.2
+ PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
+ 64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=0.575 ms
+ 64 bytes from 192.168.0.2: icmp_seq=2 ttl=64 time=0.628 ms
+ 64 bytes from 192.168.0.2: icmp_seq=3 ttl=64 time=0.581 ms
+ 64 bytes from 192.168.0.2: icmp_seq=4 ttl=64 time=0.682 ms
+ 64 bytes from 192.168.0.2: icmp_seq=5 ttl=64 time=0.597 ms
+
+ --- 192.168.0.2 ping statistics ---
+ 5 packets transmitted, 5 received, 0% packet loss, time 4086ms
+ rtt min/avg/max/mdev = 0.575/0.612/0.682/0.047 ms
+
+.. code-block:: none
+
+ vyos@vyos:~$ show ip bgp summary
+
+ IPv4 Unicast Summary:
+ BGP router identifier 192.168.0.1, local AS number 65020 vrf-id 0
+ BGP table version 4
+ RIB entries 5, using 800 bytes of memory
+ Peers 2, using 41 KiB of memory
+ Peer groups 1, using 64 bytes of memory
+
+ Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
+ eth1 4 64499 13 13 0 0 0 00:05:33 2
+ eth2 4 64499 13 14 0 0 0 00:05:29 2
+
+ Total number of neighbors 2
+
+- Router B:
+
+.. code-block:: none
+
+ vyos@vyos:~$ show interfaces
+ Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
+ Interface IP Address S/L Description
+ --------- ---------- --- -----------
+ eth0 198.51.100.33/24 u/u
+ eth1 - u/u
+ eth2 - u/u
+ lo 127.0.0.1/8 u/u
+ 192.168.0.2/32
+ ::1/128
+
+.. code-block:: none
+
+ vyos@vyos:~$ show ip route
+ Codes: K - kernel route, C - connected, S - static, R - RIP,
+ O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
+ T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
+ F - PBR, f - OpenFabric,
+ > - selected route, * - FIB route
+
+ S>* 0.0.0.0/0 [210/0] via 198.51.100.33, eth0, 00:44:08
+ C>* 198.51.100.0/24 is directly connected, eth0, 00:44:09
+ B>* 192.168.0.1/32 [20/0] via fe80::a00:27ff:fe2d:205d, eth1, 00:06:18
+ * via fe80::a00:27ff:fe93:e142, eth2, 00:06:18
+ C>* 192.168.0.2/32 is directly connected, lo, 00:44:11
+
+.. code-block:: none
+
+ vyos@vyos:~$ ping 192.168.0.1
+ PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
+ 64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.427 ms
+ 64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.471 ms
+ 64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=0.782 ms
+ 64 bytes from 192.168.0.1: icmp_seq=4 ttl=64 time=0.715 ms
+
+ --- 192.168.0.1 ping statistics ---
+ 4 packets transmitted, 4 received, 0% packet loss, time 3051ms
+ rtt min/avg/max/mdev = 0.427/0.598/0.782/0.155 ms
+
+.. code-block:: none
+
+ vyos@vyos:~$ show ip bgp summary
+ IPv4 Unicast Summary:
+ BGP router identifier 192.168.0.2, local AS number 65021 vrf-id 0
+ BGP table version 4
+ RIB entries 5, using 800 bytes of memory
+ Peers 2, using 41 KiB of memory
+ Peer groups 1, using 64 bytes of memory
+
+ Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
+ eth1 4 64496 14 14 0 0 0 00:06:40 2
+ eth2 4 64496 14 14 0 0 0 00:06:37 2
+
+ Total number of neighbors 2
+