Dynamic Routing with MBGP
Problem
You want to use MBGP to carry IPv6 routing information between autonomous systems.
Solution
MBGP readily carries IPv6 unicast routing information between IPv6 BGP peers:
Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router1(config)#router bgp
Router1(config-router)#
65520
no bgp default ipv4-unicast
Router1(config-router)#neighbor
AAAA:5::2
remote-as
Router1(config-router)#
65522
neighbor
AAAA:5::AA9
remote-as
Router1(config-router)#
65521
address-family ipv6
Router1(config-router-af)#neighbor
AAAA:5::2
activate
Router1(config-router-af)#neighbor
AAAA:5::AA9
activate
Router1(config-router-af)#network
Router1(config-router-af)#
AAAA:2222::2/64
no synchronization
Router1(config-router-af)#exit-address-family
Router1(config-router)#exit
Router1(config)#end
Router1#
And you can even run a combination of IPv4 and IPv6 BGP on the same router:
Router9#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router9(config)#router bgp
Router9(config-router)#
65521
no bgp default ipv4-unicast
Router9(config-router)#neighbor
AAAA:5::1
remote-as
Router9(config-router)#
65520
neighbor
192.168.1.103
remote-as
Router9(config-router)#
65525
address-family ipv4
Router9(config-router-af)#redistribute connected
Router9(config-router-af)#neighbor
192.168.1.103
activate
Router9(config-router-af)#no auto-summary
Router9(config-router-af)#no synchronization
Router9(config-router-af)#exit-address-family
Router9(config-router)# ...
Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.