HuaWei ❀ 配置BGP4+基本功能
Posted 无糖可乐没有灵魂
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HuaWei ❀ 配置BGP4+基本功能相关的知识,希望对你有一定的参考价值。
配置BGP4+基本功能
如下图所示,在AS 1与AS 2中配置路由协议来实现互联;
配置接口IPv6地址:
[r1]ipv6
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ipv6 enable
[r1-GigabitEthernet0/0/0]ipv6 address 1001::1/64
配置BGP4+:
[r1]bgp 1
[r1-bgp]router-id 1.1.1.1
[r1-bgp]peer 1001::2 as-number 2
[r1-bgp]ipv6-family unicast
[r1-bgp-af-ipv6]peer 1001::2 enable
[r1-bgp-af-ipv6]network 1001:: 64
[r2]bgp 2
[r2-bgp]router-id 2.2.2.2
[r2-bgp]peer 1001::1 as-number 1
[r2-bgp]peer 1002::2 as-number 2
[r2-bgp]ipv6-family unicast
[r2-bgp-af-ipv6]peer 1001::1 enable
[r2-bgp-af-ipv6]network 1001:: 64
[r2-bgp-af-ipv6]peer 1002::2 enable
[r2-bgp-af-ipv6]network 1002:: 64
[r3]bgp 2
[r3-bgp]router-id 3.3.3.3
[r3-bgp]peer 1002::1 as-number 2
[r3-bgp]ipv6-family unicast
[r3-bgp-af-ipv6]peer 1002::1 enable
[r3-bgp-af-ipv6]network 1002:: 64
查询BGP4+邻居关系:
[r1]display bgp ipv6 peer
BGP local router ID : 1.1.1.1
Local AS number : 1
Total number of peers : 1 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
1001::2 4 2 12 11 0 00:08:33 Established 2
查询BGP4+路由信息:
[r1]display bgp ipv6 routing-table
BGP Local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 3
*> Network : 1001:: PrefixLen : 64
NextHop : :: LocPrf :
MED : 0 PrefVal : 0
Label :
Path/Ogn : i
NextHop : 1001::2 LocPrf :
MED : 0 PrefVal : 0
Label :
Path/Ogn : 2 i
*> Network : 1002:: PrefixLen : 64
NextHop : 1001::2 LocPrf :
MED : 0 PrefVal : 0
Label :
Path/Ogn : 2 i
以上是关于HuaWei ❀ 配置BGP4+基本功能的主要内容,如果未能解决你的问题,请参考以下文章