API Guide

3. 允许邻居 IP 地址以在 ROUTER-BGP-NEIGHBOR-AF 模式中使用 AS 路径的指定次数1 10
allowas-in number
配置 AS 数字外观
OS10(config)# router bgp 10
OS10(conf-router-bgp-10)# neighbor 1.1.1.2
OS10(conf-router-neighbor)# address-family ipv4 unicast
OS10(conf-router-bgp-neighbor-af)# allowas-in 5
查看 AS 路径中的 AS 编号
OS10# show running-configuration bgp
!
router bgp 101
no fast-external-fallover
!
address-family ipv4 unicast
dampening
!
neighbor 17.1.1.2
remote-as 102
no shutdown
!
address-family ipv4 unicast
allowas-in 4
显示 IP BGP
OS10(config)# router bgp 100
OS10(config-router-bgp-100)# neighbor 172:16:1::2
OS10(config-router-neighbor)# remote-as 100
OS10(config-router-neighbor)# no shutdown
OS10(config-router-neighbor)# address-family ipv6 unicast
OS10(config-router-bgp-neighbor-af)# activate
OS10(config-router-bgp-neighbor-af)# allowas-in 1
OS10(config-router-bgp-neighbor-af)# end
OS10# show running-configuration bgp
!
router bgp 100
!
neighbor 172:16:1::2
remote-as 100
no shutdown
!
address-family ipv6 unicast
activate
allowas-in 1
OS10# show ip bgp
BGP local RIB : Routes to be Added , Replaced , Withdrawn
BGP local router ID is 100.1.1.1
Status codes: s suppressed, S stale, d dampened, h history, * valid, > best
Path source: I - internal, a - aggregate, c - confed-external,
r - redistributed/network, S - stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>I 55::/64 172:16:1::2 0 0 0 100 200 300 400 i
*>I 55:0:0:1::/64 172:16:1::2 0 0 0 100 200 300 400 i
*>I 55:0:0:2::/64 172:16:1::2 0 0 0 100 200 300 400 i
Identifier
GUID-D8AB787E-1577-43B3-97DB-AAD172DE4DD8
Version 6
Status Translation approved
重新分发路由
添加从其他路由实例或协议到 BGP 进程的路由。您可以使用 redistribute 命令在 BGP 进程中包含 OSPF、静态或直接连接的路
由。
3 555