金鞍玉勒寻芳客,未信我庐别有春。这篇文章主要讲述BGP初步配置实验相关的知识,希望能为你提供帮助。
实验要求:
结合其他路由协议,完成BGP初步配置,实现全网互通。
实验环境:
实验配置:
基本配置:IOU1:config terminal
int e0/0
ip address 12.12.12.1 255.255.255.0
no shutdown
int loop 0
ip address 1.1.1.1 255.255.255.255
no shutdown
exit
IOU2:config terminal
int e0/0
ip address 12.12.12.2 255.255.255.0
no shutdown
int e0/1
ip address 23.23.23.2 255.255.255.0
no shutdown
int loop 0
ip address 2.2.2.2 255.255.255.0
no shutdown
exit
IOU3:config terminal
int e0/0
ip address 23.23.23.3 255.255.255.0
no shutdown
int e0/1
ip address 34.34.34.3 255.255.255.0
no shutdown
int loop 0
ip address 3.3.3.3 255.255.255.255
no shutdown
exit
IOU4:config terminal
int e0/0
ip address 34.34.34.4 255.255.255.0
no shutdown
int loop 0
ip address 4.4.4.4 255.255.255.255
no shutdown
exit
路由配置:IOU1:router bgp 100
bgp router-id 1.1.1.1
no synchronization
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source loopback 0
network 12.12.12.0 mask 255.255.255.0
network 1.1.1.1 mask 255.255.255.255
neighbor 3.3.3.3 remote-as 100
neighbor 3.3.3.3 update-source loopback 0
exit
router ospf 1
network 1.1.1.1 0.0.0.0 area 0
network 12.12.12.0 0.0.0.255 area 0
exit
IOU2:router bgp 100
bgp router-id 2.2.2.2
no synchronization
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.1 update-source loopback 0
neighbor 3.3.3.3 remote-as 100
neighbor 3.3.3.3 update-source loopback 0
network 2.2.2.2 mask 255.255.255.255
network 23.23.23.0 mask 255.255.255.0
exit
router ospf 1
network 2.2.2.2 0.0.0.0 area 0
network 12.12.12.0 0.0.0.255 area 0
network 23.23.23.0 0.0.0.255 area 0
exit
IOU3:router bgp 100
bgp router-id 3.3.3.3
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.1 update-source loopback 0
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source loopback 0
neighbor 4.4.4.4 remote-as 200
neighbor 4.4.4.4 update-source loopback 0
neighbor 4.4.4.4 ebgp-multihop 10
exit
ip route 4.4.4.0 255.255.255.0 34.34.34.4
router ospf 1
network 3.3.3.3 0.0.0.0 area 0
network 23.23.23.0 0.0.0.255 area 0
exit
IOU4:router bgp 200
no synchronization
bgp router-id 4.4.4.4
neighbor 3.3.3.3 remote-as 100
neighbor 3.3.3.3 update-source loopback 0
neighbor 3.3.3.3 ebgp-multihop 10
network 4.4.4.4 mask 255.255.255.255
exit
ip route 3.3.3.0 255.255.255.0 34.34.34.3
验证结果:
验证完成,配置结束。
【BGP初步配置实验】(如有疏漏,还请读者指出)
推荐阅读
- 盘点spring事务失效的情况
- 基于智能数据库的自助式机器学习
- electron学习笔记如何在electron集成截屏功能()
- Shell编程及自动化运维流程控制(if)
- 基于Spark+Grafana可视化电商项目实战,好文收藏~
- Hive跨集群和版本迁移
- 小案例--python编写设置拼手气红包模块
- 要想用活Redis,Lua脚本是绕不过去的坎 !
- 万字干货(IM 会话列表卡顿优化实践)