Difference between revisions of "BGP Cisco IOS IPv6"
From Teknologisk videncenter
m (Created page with "You will have to understand the MBGP address families. One of the basic rule of MBGP is that when I'm advertising a route from a specific address family, the next hop has to be f...") |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | =IPv6 eBGP= | ||
+ | <source lang=cli> | ||
+ | interface fastethernet0/0 | ||
+ | ipv6 address 2001:410:ffff:1::1/64 | ||
+ | ipv6 nd suppress-ra | ||
+ | ! | ||
+ | ipv6 route ::/0 fastethernet0/0 fe80::250:3eff:fea4:5f12 | ||
+ | ! | ||
+ | router bgp 100 | ||
+ | no bgp default ipv4-unicast | ||
+ | bgp router-id 1.1.1.1 | ||
+ | neighbor 3ffe:b00:ffff:2::2 remote-as 200 | ||
+ | address-family ipv6 | ||
+ | neighbor 3ffe:b00:ffff:2::2 activate | ||
+ | exit-address-family | ||
+ | </source> | ||
+ | =Advertising IPv4 through IPv6 and IPv6 through IPv4= | ||
You will have to understand the MBGP address families. One of the basic rule of MBGP is that when I'm advertising a route from a specific address family, the next hop has to be from the same address family. So, you will have to make sure the next hop is from the same address family. Couple of examples for you: | You will have to understand the MBGP address families. One of the basic rule of MBGP is that when I'm advertising a route from a specific address family, the next hop has to be from the same address family. So, you will have to make sure the next hop is from the same address family. Couple of examples for you: | ||
A basic rule of mBGP is that when advertising a route from a specific Address-family the next-hop address has to be from the same address-family, or you will have to use roue-maps. | A basic rule of mBGP is that when advertising a route from a specific Address-family the next-hop address has to be from the same address-family, or you will have to use roue-maps. | ||
− | =IPv6 route through BGP IPv4 neighbor= | + | ==IPv6 route through BGP IPv4 neighbor== |
To pass the [[NLRI]] - Next-Hop address - | To pass the [[NLRI]] - Next-Hop address - | ||
Line 19: | Line 36: | ||
set ipv6 next-hop 2150:1:1::3 | set ipv6 next-hop 2150:1:1::3 | ||
</source> | </source> | ||
− | =IPv4 route through BGP IPv6 neighbor= | + | ==IPv4 route through BGP IPv6 neighbor== |
− | + | <source lang=cli> | |
− | |||
router bgp 300 | router bgp 300 | ||
bgp router-id 192.168.30.1 | bgp router-id 192.168.30.1 | ||
Line 34: | Line 50: | ||
set ip next-hop 150.1.1.3 | set ip next-hop 150.1.1.3 | ||
</source> | </source> | ||
+ | {{source cli}} | ||
+ | |||
=Links= | =Links= | ||
*https://supportforums.cisco.com/thread/2077109 | *https://supportforums.cisco.com/thread/2077109 | ||
*http://fengnet.com/book/Cisco.IOS.Cookbook.2nd/I_0596527225_CHP_25_SECT_11.html | *http://fengnet.com/book/Cisco.IOS.Cookbook.2nd/I_0596527225_CHP_25_SECT_11.html | ||
[[Category:IPv6]][[Category:BGP]] | [[Category:IPv6]][[Category:BGP]] |
Latest revision as of 07:21, 7 December 2011
Contents
IPv6 eBGP
interface fastethernet0/0
ipv6 address 2001:410:ffff:1::1/64
ipv6 nd suppress-ra
!
ipv6 route ::/0 fastethernet0/0 fe80::250:3eff:fea4:5f12
!
router bgp 100
no bgp default ipv4-unicast
bgp router-id 1.1.1.1
neighbor 3ffe:b00:ffff:2::2 remote-as 200
address-family ipv6
neighbor 3ffe:b00:ffff:2::2 activate
exit-address-family
Advertising IPv4 through IPv6 and IPv6 through IPv4
You will have to understand the MBGP address families. One of the basic rule of MBGP is that when I'm advertising a route from a specific address family, the next hop has to be from the same address family. So, you will have to make sure the next hop is from the same address family. Couple of examples for you: A basic rule of mBGP is that when advertising a route from a specific Address-family the next-hop address has to be from the same address-family, or you will have to use roue-maps.
IPv6 route through BGP IPv4 neighbor
To pass the NLRI - Next-Hop address -
1. IPv6 NLRI in IPv4
router bgp 300
bgp router-id 192.168.146.1
neighbor 192.168.151.1 remote-as 400
!
address-family ipv6
neighbor 192.168.151.1 activate
neighbor 192.168.151.1 route-map IPv6NEXTHOP out
network 2001:16d8:dd85::/48
!
route-map IPv6NEXTHOP permit 10
set ipv6 next-hop 2150:1:1::3
IPv4 route through BGP IPv6 neighbor
router bgp 300
bgp router-id 192.168.30.1
neighbor 2150:1:1::2 remote-as 400
!
address-family ipv4
neighbor 2150:1:1::2 activate
neighbor 2150:1:1::2 route-map IPv4NEXTHOP out
network 192.10.0.0
!
route-map IPv4NEXTHOP permit 10
set ip next-hop 150.1.1.3