CCNP课程实验-08-BGP-Trouble-Shooting

该博客围绕网络实验展开,先介绍实验的网络拓扑和背景环境配置。在确保邻居正常建立过程中,排查出BGP认证不通过、IP未宣告进OSPF等错点;在路由选择方面,对去往不同IP地址的路径进行调整,找出宣告路由不正确、过滤路由配置错误等问题并解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

实验条件

网络拓朴

在这里插入图片描述

背景环境配置

R1

interface Loopback0
 ip address 1.1.1.2 255.255.255.255 secondary
 ip address 1.1.1.1 255.255.255.255
interface Ethernet0/0
 ip address 12.1.1.1 255.255.255.0
interface Ethernet0/1
 ip address 13.1.1.1 255.255.255.0

ip prefix-list CON seq 5 deny 12.1.1.0/24
ip prefix-list CON seq 10 deny 13.1.1.0/24

route-map RED permit 10
 match ip address prefix-list CON

router bgp 1111
 bgp router-id 1.1.1.1
 redistribute connected route-map RED
 neighbor 12.1.1.2 remote-as 12345
 neighbor 13.1.1.3 remote-as 12345

R2

interface Loopback0
 ip address 2.2.2.2 255.255.255.255
 ip ospf 12345 area 0
interface Ethernet0/0
 ip address 12.1.1.2 255.255.255.0
interface Ethernet0/2
 ip address 23.1.1.2 255.255.255.0
 ip ospf 12345 area 0
 ip ospf cost 1000
interface Ethernet0/3
 ip address 25.1.1.2 255.255.255.0
 ip ospf 12345 area 0

router ospf 12345
 router-id 2.2.2.2
router bgp 12345
 bgp router-id 2.2.2.2
 bgp default local-preference 150
 network 2.2.2.2 mask 255.255.255.255
 neighbor 5.5.5.5 remote-as 12345
 neighbor 5.5.5.5 update-source Loopback0
 neighbor 5.5.5.5 route-map LP in
 neighbor 12.1.1.1 remote-as 1111

access-list 1 permit 1.1.1.1
access-list 1 permit 1.1.1.0

route-map LP permit 10
 match ip address 1
 set local-preference 99
route-map LP permit 20

R3

interface Loopback0
 ip address 3.3.3.3 255.255.255.255
 ip ospf 12345 area 0
interface Ethernet0/0
 ip address 34.1.1.3 255.255.255.0
 ip ospf 12345 area 0
interface Ethernet0/1
 ip address 13.1.1.3 255.255.255.0
interface Ethernet0/2
 ip address 23.1.1.3 255.255.255.0
 ip ospf 12345 area 0
 ip ospf cost 1000

router ospf 12345
 router-id 3.3.3.3
router bgp 12345
 bgp router-id 3.3.3.3
 network 3.3.3.0 mask 255.255.255.0
 neighbor 4.4.4.4 remote-as 12345
 neighbor 4.4.4.4 update-source Loopback0
 neighbor 4.4.4.4 next-hop-self
 neighbor 13.1.1.1 remote-as 1111

R4

interface Loopback0
 ip address 4.4.4.4 255.255.255.255
interface Ethernet0/0
 ip address 34.1.1.4 255.255.255.0
 ip ospf 12345 area 0
interface Ethernet0/2
 ip address 45.1.1.4 255.255.255.0
 ip ospf 12345 area 0
interface Ethernet0/3
 ip address 47.1.1.4 255.255.255.0
 ip ospf 12345 area 0

router ospf 12345
 router-id 4.4.4.4
router bgp 12345
 bgp router-id 4.4.4.4
 bgp log-neighbor-changes
 neighbor 3.3.3.3 remote-as 12345
 neighbor 3.3.3.3 update-source Loopback0
 neighbor 3.3.3.3 route-reflector-client
 neighbor 5.5.5.5 remote-as 12345
 neighbor 5.5.5.5 update-source Loopback0
 neighbor 5.5.5.5 next-hop-self
 neighbor 7.7.7.7 remote-as 12345
 neighbor 7.7.7.7 update-source Loopback0
 neighbor 7.7.7.7 route-reflector-client

R5

interface Loopback0
 ip address 5.5.5.5 255.255.255.255
 ip ospf 12345 area 0
interface Ethernet0/1
 ip address 56.1.1.5 255.255.255.0
 ip ospf 12345 area 0
interface Ethernet0/2
 ip address 45.1.1.5 255.255.255.0
 ip ospf 12345 area 0
interface Ethernet0/3
 ip address 25.1.1.5 255.255.255.0
 ip ospf 12345 area 0

router ospf 12345
 router-id 5.5.5.5
router bgp 12345
 bgp router-id 5.5.5.5
 bgp log-neighbor-changes
 neighbor 2.2.2.2 remote-as 12345
 neighbor 2.2.2.2 update-source Loopback0
 neighbor 2.2.2.2 route-reflector-client
 neighbor 4.4.4.4 remote-as 12345
 neighbor 4.4.4.4 update-source Loopback0
 neighbor 4.4.4.4 route-reflector-client
 neighbor 6.6.6.6 remote-as 12345
 neighbor 6.6.6.6 shutdown
 neighbor 6.6.6.6 update-source Loopback0
 neighbor 6.6.6.6 route-reflector-client

R6

interface Loopback0
 ip address 6.6.6.6 255.255.255.255
 ip ospf 12345 area 0
interface Ethernet0/0
 ip address 6.7.8.6 255.255.255.0
interface Ethernet0/1
 ip address 56.1.1.6 255.255.255.0
 ip ospf 12345 area 0
interface Ethernet0/2
 ip address 67.1.1.6 255.255.255.0
 ip ospf 12345 area 0

router ospf 12345
 router-id 6.6.6.6
router bgp 12345
 bgp router-id 6.6.6.6
 bgp log-neighbor-changes
 neighbor 5.5.5.5 remote-as 12345
 neighbor 5.5.5.5 update-source Loopback0
 neighbor 5.5.5.5 next-
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

烈火蜓蜻

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值