mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 08:41:46 +01:00
Examples/BGP: fix indenting causing wrong rendered page
This commit is contained in:
parent
225a56a7c5
commit
070197ce0d
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
.. _examples-bgp-ipv6-unnumbered:
|
.. _examples-bgp-ipv6-unnumbered:
|
||||||
|
|
||||||
VyOS BGP ipv6 unnumbered with extended nexthop
|
VyOS BGP ipv6 unnumbered with extended nexthop
|
||||||
@ -10,7 +9,9 @@ Configuration
|
|||||||
^^^^^^^^^^^^^
|
^^^^^^^^^^^^^
|
||||||
|
|
||||||
- Router A:
|
- Router A:
|
||||||
|
|
||||||
.. code-block:: sh
|
.. code-block:: sh
|
||||||
|
|
||||||
set protocols bgp 65020 address-family ipv4-unicast redistribute connected
|
set protocols bgp 65020 address-family ipv4-unicast redistribute connected
|
||||||
set protocols bgp 65020 address-family ipv6-unicast redistribute connected
|
set protocols bgp 65020 address-family ipv6-unicast redistribute connected
|
||||||
set protocols bgp 65020 neighbor eth1 interface v6only
|
set protocols bgp 65020 neighbor eth1 interface v6only
|
||||||
@ -27,7 +28,9 @@ set protocols bgp 65020 peer-group fabric capability extended-nexthop
|
|||||||
set protocols bgp 65020 peer-group fabric remote-as 'external'
|
set protocols bgp 65020 peer-group fabric remote-as 'external'
|
||||||
|
|
||||||
- Router B:
|
- Router B:
|
||||||
|
|
||||||
.. code-block:: sh
|
.. code-block:: sh
|
||||||
|
|
||||||
set protocols bgp 65021 address-family ipv4-unicast redistribute connected
|
set protocols bgp 65021 address-family ipv4-unicast redistribute connected
|
||||||
set protocols bgp 65021 address-family ipv6-unicast redistribute connected
|
set protocols bgp 65021 address-family ipv6-unicast redistribute connected
|
||||||
set protocols bgp 65021 neighbor eth1 interface v6only
|
set protocols bgp 65021 neighbor eth1 interface v6only
|
||||||
@ -47,7 +50,9 @@ Results
|
|||||||
^^^^^^^^^^^^^
|
^^^^^^^^^^^^^
|
||||||
|
|
||||||
- Router A:
|
- Router A:
|
||||||
|
|
||||||
.. code-block:: sh
|
.. code-block:: sh
|
||||||
|
|
||||||
vyos@vyos:~$ show interfaces
|
vyos@vyos:~$ show interfaces
|
||||||
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
|
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
|
||||||
Interface IP Address S/L Description
|
Interface IP Address S/L Description
|
||||||
@ -58,6 +63,9 @@ eth2 - u/u
|
|||||||
lo 127.0.0.1/8 u/u
|
lo 127.0.0.1/8 u/u
|
||||||
192.168.0.1/32
|
192.168.0.1/32
|
||||||
::1/128
|
::1/128
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
vyos@vyos:~$ show ip route
|
vyos@vyos:~$ show ip route
|
||||||
Codes: K - kernel route, C - connected, S - static, R - RIP,
|
Codes: K - kernel route, C - connected, S - static, R - RIP,
|
||||||
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
|
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
|
||||||
@ -70,6 +78,9 @@ C>* 62.104.56.0/24 is directly connected, eth0, 03:21:53
|
|||||||
C>* 192.168.0.1/32 is directly connected, lo, 03:21:56
|
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
|
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
|
* via fe80::a00:27ff:fe7b:4000, eth1, 00:05:07
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
vyos@vyos:~$ ping 192.168.0.2
|
vyos@vyos:~$ ping 192.168.0.2
|
||||||
PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
|
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=1 ttl=64 time=0.575 ms
|
||||||
@ -77,10 +88,13 @@ PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
|
|||||||
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=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=4 ttl=64 time=0.682 ms
|
||||||
64 bytes from 192.168.0.2: icmp_seq=5 ttl=64 time=0.597 ms
|
64 bytes from 192.168.0.2: icmp_seq=5 ttl=64 time=0.597 ms
|
||||||
^C
|
|
||||||
--- 192.168.0.2 ping statistics ---
|
--- 192.168.0.2 ping statistics ---
|
||||||
5 packets transmitted, 5 received, 0% packet loss, time 4086ms
|
5 packets transmitted, 5 received, 0% packet loss, time 4086ms
|
||||||
rtt min/avg/max/mdev = 0.575/0.612/0.682/0.047 ms
|
rtt min/avg/max/mdev = 0.575/0.612/0.682/0.047 ms
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
vyos@vyos:~$ show ip bgp summary
|
vyos@vyos:~$ show ip bgp summary
|
||||||
|
|
||||||
IPv4 Unicast Summary:
|
IPv4 Unicast Summary:
|
||||||
@ -97,7 +111,9 @@ eth2 4 65021 13 14 0 0 0 00:05:29
|
|||||||
Total number of neighbors 2
|
Total number of neighbors 2
|
||||||
|
|
||||||
- Router B:
|
- Router B:
|
||||||
|
|
||||||
.. code-block:: sh
|
.. code-block:: sh
|
||||||
|
|
||||||
vyos@vyos:~$ show interfaces
|
vyos@vyos:~$ show interfaces
|
||||||
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
|
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
|
||||||
Interface IP Address S/L Description
|
Interface IP Address S/L Description
|
||||||
@ -108,6 +124,9 @@ eth2 - u/u
|
|||||||
lo 127.0.0.1/8 u/u
|
lo 127.0.0.1/8 u/u
|
||||||
192.168.0.2/32
|
192.168.0.2/32
|
||||||
::1/128
|
::1/128
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
vyos@vyos:~$ show ip route
|
vyos@vyos:~$ show ip route
|
||||||
Codes: K - kernel route, C - connected, S - static, R - RIP,
|
Codes: K - kernel route, C - connected, S - static, R - RIP,
|
||||||
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
|
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
|
||||||
@ -120,18 +139,23 @@ C>* 62.104.56.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
|
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
|
* via fe80::a00:27ff:fe93:e142, eth2, 00:06:18
|
||||||
C>* 192.168.0.2/32 is directly connected, lo, 00:44:11
|
C>* 192.168.0.2/32 is directly connected, lo, 00:44:11
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
vyos@vyos:~$ ping 192.168.0.1
|
vyos@vyos:~$ ping 192.168.0.1
|
||||||
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
|
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=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=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=3 ttl=64 time=0.782 ms
|
||||||
64 bytes from 192.168.0.1: icmp_seq=4 ttl=64 time=0.715 ms
|
64 bytes from 192.168.0.1: icmp_seq=4 ttl=64 time=0.715 ms
|
||||||
^C
|
|
||||||
--- 192.168.0.1 ping statistics ---
|
--- 192.168.0.1 ping statistics ---
|
||||||
4 packets transmitted, 4 received, 0% packet loss, time 3051ms
|
4 packets transmitted, 4 received, 0% packet loss, time 3051ms
|
||||||
rtt min/avg/max/mdev = 0.427/0.598/0.782/0.155 ms
|
rtt min/avg/max/mdev = 0.427/0.598/0.782/0.155 ms
|
||||||
vyos@vyos:~$ show ip bgp summary
|
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
|
vyos@vyos:~$ show ip bgp summary
|
||||||
IPv4 Unicast Summary:
|
IPv4 Unicast Summary:
|
||||||
BGP router identifier 192.168.0.2, local AS number 65021 vrf-id 0
|
BGP router identifier 192.168.0.2, local AS number 65021 vrf-id 0
|
||||||
BGP table version 4
|
BGP table version 4
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user