- 积分
- 93
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 最后登录
- 1970-1-1
- 阅读权限
- 20
- 听众
- 收听
助理工程师
 
|
实验要求R4和R5之间只能是静态路由,流量走R2,当R2掉线后走R3。用as-path选路原则。最后保证10.1网段的ping通10.80网段的。我做了好久怎么都ping不通。
R1的配置:
R1#show run | sec router
router bgp 1234
bgp log-neighbor-changes
network 10.1.0.0 mask 255.255.0.0
network 12.1.1.0 mask 255.255.255.252
network 13.1.1.0 mask 255.255.255.248
neighbor 12.1.1.2 remote-as 65000
neighbor 13.1.1.3 remote-as 65000
R1的summary:
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
12.1.1.2 4 65000 85 86 8 0 0 01:07:39 5
13.1.1.3 4 65000 83 99 8 0 0 01:05:18 5
R1的bgp
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C 10.1.0.0/16 is directly connected, Loopback0
L 10.1.0.1/32 is directly connected, Loopback0
B 10.80.0.0/16 [20/0] via 13.1.1.3, 00:07:08
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.1.1.0/30 is directly connected, Ethernet0/0
L 12.1.1.1/32 is directly connected, Ethernet0/0
13.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 13.1.1.0/29 is directly connected, Ethernet0/1
L 13.1.1.1/32 is directly connected, Ethernet0/1
24.0.0.0/29 is subnetted, 1 subnets
B 24.1.1.0 [20/0] via 12.1.1.2, 00:07:08
34.0.0.0/29 is subnetted, 1 subnets
B 34.1.1.0 [20/0] via 13.1.1.3, 00:07:08
45.0.0.0/29 is subnetted, 1 subnets
B 45.1.1.0 [20/0] via 12.1.1.2, 00:07:08
R3的配置:
R3#show run | sec router
router bgp 65000
bgp log-neighbor-changes
network 13.1.1.0 mask 255.255.255.248
network 34.1.1.0 mask 255.255.255.248
neighbor 13.1.1.1 remote-as 1234
neighbor 13.1.1.1 route-map backup in
neighbor 34.1.1.4 remote-as 65000
R3的控制列表:
route-map backup permit 1
match ip address 1
set as-path prepend 65001 65002
!
!
access-list 1 permit 10.1.0.0 0.0.255.255
R2的配置:
R2#show run | sec router
router bgp 65000
bgp log-neighbor-changes
network 12.1.1.0 mask 255.255.255.252
network 24.1.1.0 mask 255.255.255.248
neighbor 12.1.1.1 remote-as 1234
neighbor 24.1.1.4 remote-as 65000
R4的配置:
R4#show run | sec router
router bgp 65000
bgp log-neighbor-changes
network 24.1.1.0 mask 255.255.255.248
network 34.1.1.0 mask 255.255.255.248
redistribute connected
redistribute static
neighbor 24.1.1.2 remote-as 65000
neighbor 34.1.1.3 remote-as 65000
R5的配置:
R5#show run | sec router
router bgp 65000
bgp log-neighbor-changes
network 56.1.1.4 mask 255.255.255.252
redistribute connected
redistribute static
neighbor 56.1.1.6 remote-as 17493
R6的配置:
R6#show running-config | sec router
router bgp 17493
bgp log-neighbor-changes
network 10.80.0.0 mask 255.255.0.0
network 56.1.1.4 mask 255.255.255.252
neighbor 56.1.1.5 remote-as 65000
|
|