User Tools

Site Tools


documentation:examples:bgp_route_reflector_and_confederation_using_quagga_and_bird

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
documentation:examples:bgp_route_reflector_and_confederation_using_quagga_and_bird [2018/10/22 10:42] – external edit 127.0.0.1documentation:examples:bgp_route_reflector_and_confederation_using_quagga_and_bird [2021/03/22 21:15] (current) – [Router 7] olivier
Line 851: Line 851:
 sysrc ipsec_enable=YES sysrc ipsec_enable=YES
 sysrc ipsec_file="/etc/ipsec.conf" sysrc ipsec_file="/etc/ipsec.conf"
-service frr start 
 cat <<EOF > /etc/ipsec.conf cat <<EOF > /etc/ipsec.conf
 flush ; flush ;
Line 860: Line 859:
 EOF EOF
 service ipsec start service ipsec start
-cli +cat > /usr/local/etc/frr/frr.conf <<EOF
-conf t+
 interface vtnet2 interface vtnet2
  ip address 10.0.2.4/24  ip address 10.0.2.4/24
Line 872: Line 870:
  bgp confederation identifier 200  bgp confederation identifier 200
  bgp confederation peers 65535  bgp confederation peers 65535
 + no bgp ebgp-requires-policy
  no bgp default ipv4-unicast  no bgp default ipv4-unicast
  neighbor 10.0.2.3 remote-as 100  neighbor 10.0.2.3 remote-as 100
Line 879: Line 878:
  neighbor 2001:db8:2::3 password abigpassword  neighbor 2001:db8:2::3 password abigpassword
  neighbor 2001:db8:3::5 remote-as 64512  neighbor 2001:db8:3::5 remote-as 64512
 + !
  address-family ipv4 unicast  address-family ipv4 unicast
   network 10.0.3.0/24   network 10.0.3.0/24
 +  neighbor 10.0.2.3 activate
   neighbor 10.0.3.5 activate   neighbor 10.0.3.5 activate
   neighbor 10.0.3.5 next-hop-self   neighbor 10.0.3.5 next-hop-self
-  neighbor 10.0.2.3 activate 
   no neighbor 2001:db8:2::3 activate   no neighbor 2001:db8:2::3 activate
   no neighbor 2001:db8:3::5 activate   no neighbor 2001:db8:3::5 activate
  exit-address-family  exit-address-family
 + !
  address-family ipv6 unicast  address-family ipv6 unicast
   network 2001:db8:3::/64   network 2001:db8:3::/64
Line 893: Line 894:
   neighbor 2001:db8:3::5 next-hop-self   neighbor 2001:db8:3::5 next-hop-self
  exit-address-family  exit-address-family
- exit +! 
-exit +EOF 
-wr +service frr start
-exit+
 config save config save
 </code> </code>
Line 955: Line 955:
 sysrc hostname=R5 sysrc hostname=R5
 sysrc frr_enable=YES sysrc frr_enable=YES
-hostname R5 +cat <<EOF > /usr/local/etc/frr/frr.conf 
-service frr start +log syslog
-cli +
-conf t+
 interface vtnet3 interface vtnet3
  ip address 10.0.3.5/24  ip address 10.0.3.5/24
  ipv6 address 2001:db8:3::5/64  ipv6 address 2001:db8:3::5/64
 +!
 interface vtnet4 interface vtnet4
  ip address 10.0.4.5/24  ip address 10.0.4.5/24
Line 969: Line 968:
  bgp confederation identifier 200  bgp confederation identifier 200
  bgp confederation peers 65535  bgp confederation peers 65535
 + no bgp ebgp-requires-policy
  no bgp default ipv4-unicast  no bgp default ipv4-unicast
  neighbor 10.0.3.4 remote-as 64512  neighbor 10.0.3.4 remote-as 64512
Line 974: Line 974:
  neighbor 2001:db8:3::4 remote-as 64512  neighbor 2001:db8:3::4 remote-as 64512
  neighbor 2001:db8:4::6 remote-as 65535  neighbor 2001:db8:4::6 remote-as 65535
 + !
  address-family ipv4 unicast  address-family ipv4 unicast
   network 10.0.3.0/24   network 10.0.3.0/24
Line 984: Line 985:
   no neighbor 2001:db8:4::6 activate   no neighbor 2001:db8:4::6 activate
  exit-address-family  exit-address-family
 + !
  address-family ipv6 unicast  address-family ipv6 unicast
   network 2001:db8:3::/64   network 2001:db8:3::/64
Line 992: Line 994:
   neighbor 2001:db8:4::6 next-hop-self   neighbor 2001:db8:4::6 next-hop-self
  exit-address-family  exit-address-family
- exit +EOF 
-exit +hostname R5 
-wr +service frr start
-exit+
 config save config save
 </code> </code>
Line 1055: Line 1056:
 sysrc ipsec_file="/etc/ipsec.conf" sysrc ipsec_file="/etc/ipsec.conf"
 sysrc frr_enable=YES sysrc frr_enable=YES
-service frr start 
 cat <<EOF > /etc/ipsec.conf cat <<EOF > /etc/ipsec.conf
 flush ; flush ;
Line 1064: Line 1064:
 EOF EOF
 service ipsec start service ipsec start
-cli +cat <<EOF > /usr/local/etc/frr/frr.conf 
-conf t+log syslog
 interface vtnet4 interface vtnet4
  ip address 10.0.4.6/24  ip address 10.0.4.6/24
  ipv6 address 2001:db8:4::6/64  ipv6 address 2001:db8:4::6/64
 +!
 interface vtnet5 interface vtnet5
  ip address 10.0.5.6/24  ip address 10.0.5.6/24
Line 1076: Line 1077:
  bgp confederation identifier 200  bgp confederation identifier 200
  bgp confederation peers 64512  bgp confederation peers 64512
 + no bgp ebgp-requires-policy
  no bgp default ipv4-unicast  no bgp default ipv4-unicast
  neighbor 10.0.4.5 remote-as 64512  neighbor 10.0.4.5 remote-as 64512
Line 1083: Line 1085:
  neighbor 2001:db8:5::7 remote-as 65535  neighbor 2001:db8:5::7 remote-as 65535
  neighbor 2001:db8:5::7 password abcdefgh  neighbor 2001:db8:5::7 password abcdefgh
 + !
  address-family ipv4 unicast  address-family ipv4 unicast
   network 10.0.5.0/24   network 10.0.5.0/24
Line 1092: Line 1095:
   no neighbor 2001:db8:5::7 activate   no neighbor 2001:db8:5::7 activate
  exit-address-family  exit-address-family
 + !
  address-family ipv6 unicast  address-family ipv6 unicast
   network 2001:db8:5::/64   network 2001:db8:5::/64
Line 1099: Line 1103:
   neighbor 2001:db8:5::7 next-hop-self   neighbor 2001:db8:5::7 next-hop-self
  exit-address-family  exit-address-family
- exit +EOF 
-exit +service frr start
-wr +
-exit+
 config save config save
 </code> </code>
Line 1165: Line 1167:
 sysrc ipsec_file="/etc/ipsec.conf" sysrc ipsec_file="/etc/ipsec.conf"
 sysrc frr_enable=YES sysrc frr_enable=YES
-service frr start 
 cat <<EOF > /etc/ipsec.conf cat <<EOF > /etc/ipsec.conf
 flush ; flush ;
Line 1174: Line 1175:
 EOF EOF
 service ipsec start service ipsec start
-cli +cat <<EOF > /usr/local/etc/frr/frr.conf 
-conf t+log syslog
 interface vtnet0 interface vtnet0
  ip address 10.0.7.7/24  ip address 10.0.7.7/24
  ipv6 address 2001:db8:7::7/64  ipv6 address 2001:db8:7::7/64
 +!
 interface vtnet5 interface vtnet5
  ip address 10.0.5.7/24  ip address 10.0.5.7/24
Line 1186: Line 1188:
  bgp confederation identifier 200  bgp confederation identifier 200
  bgp confederation peers 64512  bgp confederation peers 64512
 + no bgp ebgp-requires-policy
 + no bgp default ipv4-unicast
  neighbor 10.0.5.6 remote-as 65535  neighbor 10.0.5.6 remote-as 65535
  neighbor 10.0.5.6 password abcdefgh  neighbor 10.0.5.6 password abcdefgh
  neighbor 2001:db8:5::6 remote-as 65535  neighbor 2001:db8:5::6 remote-as 65535
  neighbor 2001:db8:5::6 password abcdefgh  neighbor 2001:db8:5::6 password abcdefgh
 + !
  address-family ipv4 unicast  address-family ipv4 unicast
   network 10.0.5.0/24   network 10.0.5.0/24
Line 1195: Line 1200:
   neighbor 10.0.5.6 activate   neighbor 10.0.5.6 activate
   no neighbor 2001:db8:5::6 activate   no neighbor 2001:db8:5::6 activate
-  exit-address-family+ exit-address-family 
 + !
  address-family ipv6 unicast  address-family ipv6 unicast
   network 2001:db8:5::/64   network 2001:db8:5::/64
   network 2001:db8:7::/64   network 2001:db8:7::/64
   neighbor 2001:db8:5::6 activate   neighbor 2001:db8:5::6 activate
-  exit-address-family + exit-address-family 
- exit +EOF 
-exit +service frr start
-wr +
-exit+
 config save config save
 </code> </code>
documentation/examples/bgp_route_reflector_and_confederation_using_quagga_and_bird.1540197771.txt.gz · Last modified: 2018/10/22 10:42 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: BSD 2-Clause
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki