目录
1 IPv6 BGP配置命令............................................................................................................................1-1
1.1 IPv6 BGP配置命令............................................................................................................................1-1
1.1.1 aggregate (IPv6 address family view)....................................................................................1-1
1.1.2 balance (IPv6 address family view)........................................................................................1-2
1.1.3 bestroute as-path-neglect (IPv6 address family view)...........................................................1-2
1.1.4 bestroute compare-med (IPv6 address family view)..............................................................1-3
1.1.5 bestroute med-confederation (IPv6 address family view)......................................................1-4
1.1.6 compare-different-as-med (IPv6 address family view)...........................................................1-4
1.1.7 dampening (IPv6 address family view)...................................................................................1-5
1.1.8 default local-preference (IPv6 address family view)...............................................................1-6
1.1.9 default med (IPv6 address family view).................................................................................1-6
1.1.10 default-route imported (IPv6 address family view)...............................................................1-7
1.1.11 display bgp 1-7
1.1.12 display bgp 1-9
1.1.13 display bgp 1-10
1.1.14 display bgp 1-11
1.1.15 display bgp ipv6 peer 1-15
1.1.16 display bgp .1-16
1.1.17 display bgp ipv6 1-18
1.1.18 display bgp ipv6 1-19
1.1.19 display bgp ipv6 1-20
1.1.20 display bgp ipv6 1-20
1.1.21 display bgp ipv6 routing-table 1-21
1.1.22 display bgp ipv6 1-22
1.1.23 display bgp ipv6 .1-23
1.1.24 display bgp ipv6 1-24
1.1.25 display bgp ipv6 1-25
1.1.26 display bgp ipv6 1-26
1.1.27 display bgp ipv6 .1-26
1.1.28 filter-policy export (IPv6 address family view)....................................................................1-27
1.1.29 filter-policy import (IPv6 address family view)....................................................................1-28
1.1.30 group (IPv6 address family view).......................................................................................1-29
服务体验1.1.31 import-route (IPv6 address family view).............................................................................1-29
1.1.1-30
1.1.33 network (IPv6 address family view)....................................................................................1-31
1.1.34 peer adverti-community (IPv6 address family view).......................................................1-31
1.1.35 peer adverti-ext-community (IPv6 address family view).................................................1-32
1.1.37 peer as-number (IPv6 address family view).......................................................................1-33 1.1.38 peer as-path-acl (IPv6 address family view)......................................................................1-34 1.1.39 peer bfd (IPv6 address family view)...................................................................................1-34 1.1.40 peer capability-adverti orf (IPv6 address family view)....................................................1-35 1.1.41 peer capability-adverti orf non-standard(IPv6 address family view)...............................1-36 1.1.42 peer .1-37 1.1.43 peer connect-interface (IPv6 address family view)............................................................1-37 1.1.44 1-38 1.1.45 peer description (IPv6 address family view).......................................................................1-38
1.1.46 peer ebgp-max-hop (IPv6 address family view).................................................................1-39 1.1.47 peer enable (IPv6 address family view).............................................................................1-40 1.1.48 peer fake-as (IPv6 address family view)............................................................................1-40 1.1.49 peer filter-policy (IPv6 address family view).......................................................................1-41 1.1.50 peer group (IPv6 address family view)...............................................................................1-42 1.1.51 peer ignore (IPv6 address family view)..............................................................................1-42 1.1.52 1-43 1.1.53 peer ipc-policy (IPv6 address family view).....................................................................1-43 1.1.54 peer keep-all-routes (IPv6 address family view)................................................................1-44 1.1.55 peer label-route-capability (IPv6 address family view).......................................................1-45 1.1.56 peer log-change (IPv6 address family view)......................................................................1-45 1.1.57 peer next-hop-local (IPv6 address family view).................................................................1-46 1.1.58 1-46 1.1.59 peer preferred-value (IPv6 address family view)................................................................1-47 1.1.60 peer public-as-only (IPv6 address family view)..................................................................1-48 1.1.61 peer reflect-client (IPv6 address family view).....................................................................1-49 1.1.62 peer route-limit (IPv6 address family view)........................................................................1-49 1.
1.63 peer route-policy (IPv6 address family view).....................................................................1-50 1.1.64 peer route-update-interval (IPv6 address family view).......................................................1-51 1.1.65 peer substitute-as (IPv6 address family view)....................................................................1-52 1.1.66 peer timer (IPv6 address family view)................................................................................1-52 1.1.67 preference (IPv6 address family view)...............................................................................1-53 1.1.68 reflect between-clients (IPv6 address family view)............................................................1-54 1.1.69 reflector cluster-id (IPv6 address family view)....................................................................1-54 1.1.70 refresh .1-55 1.1.71 ret 1-56 1.1.72 ret bgp 1-56 1.1.73 ret bgp 1-57 1.1.1-57 1.1.75 synchronization (IPv6 address family view).......................................................................1-58
1 IPv6 BGP配置命令
IPv6 BGP中有关用来定义路由策略的命令,请参见“三层技术-IP路由命令参考”中的“路由策略”。
1.1 IPv6 BGP配置命令
1.1.1 aggregate (IPv6 address family view)
【命令】
aggregate ipv6-address prefix-length [ as-t | attribute-policy route-policy-name | detail-suppresd | origin-policy route-policy-name | suppress-policy route-policy-name ] *
undo aggregate ipv6-address prefix-length
【视图】
IPv6地址族视图
【缺省级别】
2:系统级
【参数】
ipv6-address:IPv6聚合路由的目的IPv6地址。
prefix-length:IPv6聚合路由的网络掩码长度,取值范围为0~128。
as-t:生成具有AS集合段的路由。
attribute-policy route-policy-name:根据指定的路由策略route-policy-name设置聚合路由的属性,route-policy-name表示路由策略名,为1~19个字符的字符串。
detail-suppresd:仅通告聚合路由。
suppress-policy route-policy-name:根据指定的路由策略route-policy-name抑制选定的具体路由,不通告部分具体路由,route-policy-name表示路由策略名,为1~19个字符的字符串。
origin-policy route-policy-name:根据指定的路由策略route-policy-name选择用于聚合的源路由,route-policy-name表示路由策略名,为1~19个字符的字符串。
【描述】
aggregate命令用来在BGP IPv6路由表中创建一条IPv6聚合路由。undo aggregate命令用来删除该IPv6聚合路由。
缺省情况下,不进行IPv6路由聚合。
上述命令的关键字的用法如表1-1所示。
表1-1关键字的用法
二年级口算题关键字用法
as-t 通过设置该关键字,可创建一条聚合路由,该路由的AS路径包含了具体路由的AS路径信息。若需聚合较多AS路径时,请慎用此关键字,因为当具体路由的变化较频繁时,会导致路由振荡
detail-suppresd 该关键字不抑制聚合路由,但抑制所有具体路由的通告。如果只想对一部分具体路
关键字用法
由进行抑制,可以使用peer filter-policy命令
suppress-policy 该关键字能产生聚合路由,但抑制指定路由的通告。可以用route-policy的if-match子句有选择地抑制一些具体路由,其它具体路由仍被通告
origin-policy 该关键字仅选择符合路由策略的具体路由来生成聚合路由
attribute-policy 该关键字可设置聚合路由的属性。通过peer route-policy等方式也可以完成实现相同的
功能。该关键字不能设置聚合路由的AS-PATH属性
【举例】
# 在BGP IPv6路由表中创建一条IPv6聚合路由12::/64。
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] aggregate 12:: 64
三承诺
1.1.2 balance (IPv6 address family view)
【命令】
balance number
undo balance
【视图】
IPv6地址族视图
【缺省级别】
写给父亲的诗2:系统级
【参数】
number:进行IPv6 BGP负载分担的路由条数,当number取值为1时,相当于不进行负载分担,取值我范围为1~8
【描述】
balance命令用来配置进行IPv6 BGP负载分担的路由条数。undo balance命令用来取消路由负载分担功能。
缺省情况下,没有进行路由负载分担。
与IGP路由的负载分担不同,IPv6 BGP没有明确的度量值决定是否对路由进行负载分担。IPv6 BGP
的负载分担是通过改变IPv6 BGP选路规则来实现的。
相关配置可参考命令display bgp ipv6 routing-table。
【举例】
# 配置IPv6 BGP负载分担的路由条数为2条。
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] balance 2
1.1.3 bestroute as-path-neglect (IPv6 address family view)
【命令】
bestroute as-path-neglect
undo bestroute as-path-neglect
二年级上册的书【视图】
IPv6地址族视图
【缺省级别】
2:系统级
【参数】
无
【描述】
bestroute as-path-neglect命令用来禁止路由器将AS_PATH当作选路算法中的一个因素。undo bestroute as-path-neglect命令用来允许路由器将AS_PATH当作选路算法中的一个因素。
缺省情况下,路由器将AS_PATH当作选路算法中的一个因素。
【举例】
# 禁止路由器将AS_PATH当作选路算法中的一个因素。
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
领导职位[Sysname-bgp-af-ipv6] bestroute as-path-neglect
1.1.4 bestroute compare-med (IPv6 address family view)
【命令】
bestroute compare-med
undo bestroute compare-med
【视图】
IPv6地址族视图
【缺省级别】
2:系统级
【参数】
无歌德的诗
【描述】
bestroute compare-med命令用来配置根据路由来自的AS进行分组对MED排序优选。undo bestroute compare-med命令用来取消根据路由来自的AS进行分组对MED排序优选。
缺省情况下,不根据路由来自的AS进行分组对MED排序优选。
爱眼征文
配置该命令后,balance命令将不生效。
【举例】
# 设置在选择最佳路由时,根据路由来自的AS进行分组对MED排序优选。
<Sysname> system-view
[Sysname] bgp 100