Created
February 8, 2023 15:21
-
-
Save jtdub/b4ff52ec0b08dbba7012cb4325684df8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vrf definition RED | |
! | |
interface Ethernet2 | |
no switchport | |
vrf forwarding RED | |
ip address 10.10.0.6/31 | |
! | |
ip routing vrf RED | |
! | |
ipv6 unicast-routing vrf RED | |
! | |
router bgp 65000 | |
neighbor 10.0.1.3 remote-as 65000 | |
neighbor 10.0.1.3 next-hop-self | |
neighbor 10.0.1.3 update-source Loopback0 | |
neighbor 10.0.1.3 maximum-routes 12000 | |
! | |
address-family vpn-ipv4 | |
neighbor 10.0.1.3 activatea | |
neighbor default encapsulation mpls next-hop-self source-interface Loopback0 | |
! | |
address-family vpn-ipv6 | |
neighbor 10.0.1.3 activate | |
neighbor default encapsulation mpls next-hop-self source-interface Loopback0 | |
! | |
vrf RED | |
rd 10.0.1.2:65100 | |
route-target import vpn-ipv4 65000:65100 | |
route-target import vpn-ipv4 65000:65200 | |
route-target export vpn-ipv4 65000:65100 | |
neighbor 10.10.0.7 remote-as 65100 | |
neighbor 10.10.0.7 maximum-routes 12000 | |
redistribute connected | |
! | |
address-family ipv4 | |
neighbor 10.10.0.7 activate | |
neighbor 10.10.0.7 route-map ALLOW-ALL in | |
neighbor 10.10.0.7 route-map ALLOW-ALL out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment