Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



basic BGP


Code Block
titleBGP
router bgp 65000
 bgp log-neighbor-changes
 neighbor 10.10.100.20 remote-as 65000
 neighbor 10.10.100.20 update-source lo
 !
 address-family l2vpn evpn
 neighbor 10.10.100.7 activate
 exit-address-family
 !
 exit
!


Redistribute into BGP

router bgp 65003
bgp router-id 1.1.1.3
neighbor 1.1.1.1 remote-as 65001
neighbor 1.1.1.2 remote-as 65002
neighbor 192.168.37.2 remote-as 65007
neighbor 1.1.1.1 update-source 1.1.1.3
neighbor 1.1.1.2 update-source 1.1.1.3
neighbor 192.168.37.2 update-source 192.168.37.1
!
address-family ipv4 unicast
redistribute connected
neighbor 192.168.37.2 activate
exit-address-family

address-family ipv4 unicast
redistribute connected router-map XXXXXXXX
route-map ( route learn from BGP ???? )and ip-prefix

https://docs.ipinfusion.com/datacenter/index.html#page/OcNOS-DC_6.4.2/Layer3-Config/RouteMap_continue.html##ww1024887


Code Block
titleroute-map
ip prefix-list Export_IP@
 seq 5 permit x.x.x.xc/32

 route-map Export_to_DC1 permit 10
 match ip address prefix-list Export_IP@

 router bgp 65007
 !
 address-family ipv4 unicast
 neighbor 192.168.37.1 activate
 neighbor 192.168.37.1 route-map Export_to_DC1 out
 neighbor 192.168.47.1 activate
 neighbor 192.168.47.1 route-map Export_to_DC1 out
 exit-address-family