キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 
cancel
77
閲覧回数
1
いいね!
0
コメント
hongwli3
Cisco Employee
Cisco Employee

MP-BGP( Multi Protocol BGP )では IPv4 以外に IPv6 もネイバーの確立に使用できるように拡張しており、ipv4 over ipv6 設定もできます。

 

a4d2edbf-461f-40af-a197-692dd44e396d.PNG
 
R1#show run
 interface Loopback0
 ip address 1.1.1.1 255.255.255.255
 ipv6 address 2000::1/128
!
interface GigabitEthernet0/0/0
 ip address 10.1.1.1 255.255.255.0
 negotiation auto
 ipv6 address 2056::1/64

router bgp 100
 bgp log-neighbor-changes
 neighbor 2056::2 remote-as 200
 !
 address-family ipv4
  network 1.1.1.1 mask 255.255.255.255
  neighbor 2056::2 activate
 exit-address-family

 

 R2#show run
 interface Loopback0
 ip address 2.2.2.2 255.255.255.255
 ipv6 address 2000::2/128
!
interface GigabitEthernet0/0/0
 ip address 10.1.1.2 255.255.255.0
 negotiation auto
 ipv6 address 2056::2/64

router bgp 200
 bgp log-neighbor-changes
 neighbor 2056::1 remote-as 100
 !
 address-family ipv4
  network 2.2.2.2 mask 255.255.255.255
  neighbor 2056::1 activate
 exit-address-family


上記通りに設定後、show ip bgp all summary で IPv4 Unicast にて IPv6 のネイバーが確立されていることが確認できましたが、R2 で 1.1.1.1 のルートが学習されていません。

R2#show ip bgp all summary
For address family: IPv4 Unicast

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
2056::1 4 100 13 13 2 0 0 00:08:19 0

R2#show ip bgp all
For address family: IPv4 Unicast

Network Next Hop Metric LocPrf Weight Path
*> 2.2.2.2/32 0.0.0.0 0 32768 i


解決策:R1 で route-map を設定することでネイバーにアドバタイズしたいネットワークの Next Hop を手動で指定すると、1.1.1.1 のルートが 学習できるようになります。

R1(config)#route-map next_hop permit 10
R1(config-route-map)#set ip next-hop 10.1.1.1
R1(config-route-map)#exit
R1(config)#router bgp 100
R1(config-router)#address-family ipv4
R1(config-router-af)#neighbor 2056::2 route-map next_hop out

R2#show ip bgp all   
For address family: IPv4 Unicast 
     Network          Next Hop            Metric LocPrf Weight Path
 *>   1.1.1.1/32       10.1.1.1                 0             0 1 i
 *>   2.2.2.2/32       0.0.0.0                  0         32768 i


※上記は、IOS-XE 17.9.4 で検証した内容になります。

Getting Started

検索バーにキーワード、フレーズ、または質問を入力し、お探しのものを見つけましょう

シスコ コミュニティをいち早く使いこなしていただけるよう役立つリンクをまとめました。みなさんのジャーニーがより良いものとなるようお手伝いします