IPv4 BGP Configuration

IPv4 BGP Configuration

notion image
router bgp 64777 bgp router-id 1.1.1.1 neighbor 198.51.100.13 remote-as 65500 neighbor 10.5.9.2 remote-as 64777 next-hop-self network 201.0.113.0 mask 255.255.255.128 show ip bgp summary show ip bgp show ip route show ip bgp neighbour 198.51.100.9 advertised-routes
notion image
⚠️
Network command needs to match exactly
ip route 203.0.133.0 255.255.255.0 null 0

Redistributing and Summarization

ip access-list extended BGP_FILTER permit ip 203.0.113.0 0.0.0.255 any route-map FILTER_OSPF match ip address BGP_FILTER router bgp 64777 redistribute ospf 1 route-map FILTER_OSPF ip access-list extended BGP_TO_OSPF permit ip 1.0.0.0 0.255.255.255 any route-map BGP_TO_OSPF match ip address BGP_TO_OSPF router ospf 1 redistribute bgp 64777 subnets route-map BGP_TO_OSPF metric 50 router bgp 64777 aggregate-address 203.0.113.0 255.255.255.0 summary-only

IPv4 Mutliprotocol BGP Configuration

ISP BGP Network
IOS Configuration
router bgp 6509 neighbor 10.1.11.1 remote-as 5505 address-family ipv4 unicast network 172.16.1.0 mask 255.255.255.0 neighbor 10.1.11.1 activate
IOS-XR Configuration
router bgp 5505 address-family ipv4 unicast network 172.16.10.0/24 neighbor 10.1.11.2 remote-as 6509 address-family ipv4 unicast route-policy PASS in route-policy PASS out route-policy PASS pass commit