用bgpcommunity属性实现路由的双路备份( 三 )


10.4.0.1/32 Direct0 0127.0.0.1 LoopBack0
10.4.0.2/32 Direct0 0 10.4.0.2 Serial0
127.0.0.0/8Direct0 0127.0.0.1 LoopBack0
127.0.0.1/32 Direct0 0127.0.0.1 LoopBack0
[RTC]
[RTC]
//路由器D没有任何非凡配置,只是bgp的
基本配置,所以配置省略:
[RTD]
[RTD]dis bgp
^
% Incomplete command found at "^" position.
[RTD]dis bgp r
[RTD]dis bgp routing-table
Flags:# - valid^ - active I - internal
D - damped H - history S - aggregate suppressed
Dest/Mask Next-hopMedLocal-pref Origin As-path
---------------------------------------------------------------------------
#^I 6.6.6.0/24 10.1.0.10 400 IGP100
#^I 7.7.7.0/24 10.2.0.10 400 IGP100
#^I 10.1.0.0/2410.3.0.10 100 IGP
#^I 10.2.0.0/2410.4.0.10 100 IGP
Routes total: 4
[RTD]
[RTD]dis ip rou
Routing Table: public net
Destination/MaskProtocol Pre CostNexthop Interface
6.6.6.0/24 BGP 256 010.1.0.1Serial3/1
7.7.7.0/24 BGP 256 010.2.0.1Serial3/0
10.1.0.0/24BGP 256 010.3.0.1Serial3/1
10.2.0.0/24BGP 256 010.4.0.1Serial3/0
10.3.0.0/24DIRECT0010.3.0.2Serial3/1
10.3.0.1/32DIRECT0010.3.0.1Serial3/1
10.3.0.2/32DIRECT00127.0.0.1InLoopBack0
10.4.0.0/24DIRECT0010.4.0.2Serial3/0
10.4.0.1/32DIRECT0010.4.0.1Serial3/0
10.4.0.2/32DIRECT00127.0.0.1InLoopBack0
127.0.0.0/8DIRECT00127.0.0.1InLoopBack0
127.0.0.1/32DIRECT00127.0.0.1InLoopBack0
[RTD]
[RTD]
[RTD]dis bgp pe
[RTD]dis bgp peer
PeerAS-num Ver Queued-TxMsg-RxMsg-TxUp/Down State
--------------------------------------------------------------------------------
10.3.0.1 200 4 0 31 2400:21:42 Established
10.4.0.1 200 4 0 35 2500:22:07 Established
[RTD]

推荐阅读