49、BGP配置实验之联邦
2015-12-13 17:08
471 查看
1、联邦解析
联邦工作原理:在AS内部手动划分多个私有AS(联邦中的私有AS好不增加AS-PATH的路径长度)
配置步骤:
第一步:router bgp 小AS号(私有AS号)
第二步:声明所在大AS号
第三步:小AS号之间互指peer
2、实验拓扑
3、基础配置
R1配置
interface Loopback0 ip address 1.1.1.1 255.255.255.0interface Serial0/0 ip address 12.1.1.1 255.255.255.0router bgp 1 no synchronization bgp router-id 1.1.1.1 network 1.1.1.0 mask 255.255.255.0 neighbor 12.1.1.2 remote-as 2 no auto-summary
R2配置interface Loopback0 ip address 2.2.2.2 255.255.255.0interface Serial0/0 ip address 12.1.1.2 255.255.255.0interface Serial0/1 ip address 23.1.1.2 255.255.255.0router ospf 110 router-id 2.2.2.2 network 2.2.2.0 0.0.0.255 area 0 network 23.1.1.0 0.0.0.255 area 0
R3配置interface Loopback0 ip address 3.3.3.3 255.255.255.0interface Serial0/0 ip address 34.1.1.3 255.255.255.0interface Serial0/1 ip address 23.1.1.3 255.255.255.0router ospf 110 router-id 3.3.3.3 network 3.3.3.0 0.0.0.255 area 0 network 23.1.1.0 0.0.0.255 area 0 network 34.1.1.0 0.0.0.255 area 0
R4配置interface Loopback0 ip address 4.4.4.4 255.255.255.0interface Serial0/0 ip address 34.1.1.4 255.255.255.0router ospf 110 router-id 4.4.4.4 network 4.4.4.0 0.0.0.255 area 0 network 34.1.1.0 0.0.0.255 area 0
4、配置邻邦解决水平分割R2配置router bgp 64512
no synchronization
bgp router-id 2.2.2.2
bgp confederation identifier 2
neighbor 3.3.3.3 remote-as 64512
neighbor 3.3.3.3 update-source Loopback0
neighbor 3.3.3.3 next-hop-self
neighbor 12.1.1.1 remote-as 1
no auto-summary
R3配置
router bgp 64512
no synchronization
bgp router-id 3.3.3.3
bgp confederation identifier 2
bgp confederation peers 64513
neighbor 2.2.2.2 remote-as 64512
neighbor 2.2.2.2 update-source Loopback0
neighbor 4.4.4.4 remote-as 64513
neighbor 4.4.4.4 ebgp-multihop 255
neighbor 4.4.4.4 update-source Loopback0
no auto-summary
R4配置
router bgp 64513
no synchronization
bgp router-id 4.4.4.4
bgp confederation identifier 2
bgp confederation peers 64512
neighbor 3.3.3.3 remote-as 64512
neighbor 3.3.3.3 ebgp-multihop 255
neighbor 3.3.3.3 update-source Loopback0
no auto-summary
本文出自 “开源殿堂” 博客,请务必保留此出处http://kaiyuandiantang.blog.51cto.com/10699754/1722529
联邦工作原理:在AS内部手动划分多个私有AS(联邦中的私有AS好不增加AS-PATH的路径长度)
配置步骤:
第一步:router bgp 小AS号(私有AS号)
第二步:声明所在大AS号
第三步:小AS号之间互指peer
2、实验拓扑
3、基础配置
R1配置
interface Loopback0 ip address 1.1.1.1 255.255.255.0interface Serial0/0 ip address 12.1.1.1 255.255.255.0router bgp 1 no synchronization bgp router-id 1.1.1.1 network 1.1.1.0 mask 255.255.255.0 neighbor 12.1.1.2 remote-as 2 no auto-summary
R2配置interface Loopback0 ip address 2.2.2.2 255.255.255.0interface Serial0/0 ip address 12.1.1.2 255.255.255.0interface Serial0/1 ip address 23.1.1.2 255.255.255.0router ospf 110 router-id 2.2.2.2 network 2.2.2.0 0.0.0.255 area 0 network 23.1.1.0 0.0.0.255 area 0
R3配置interface Loopback0 ip address 3.3.3.3 255.255.255.0interface Serial0/0 ip address 34.1.1.3 255.255.255.0interface Serial0/1 ip address 23.1.1.3 255.255.255.0router ospf 110 router-id 3.3.3.3 network 3.3.3.0 0.0.0.255 area 0 network 23.1.1.0 0.0.0.255 area 0 network 34.1.1.0 0.0.0.255 area 0
R4配置interface Loopback0 ip address 4.4.4.4 255.255.255.0interface Serial0/0 ip address 34.1.1.4 255.255.255.0router ospf 110 router-id 4.4.4.4 network 4.4.4.0 0.0.0.255 area 0 network 34.1.1.0 0.0.0.255 area 0
4、配置邻邦解决水平分割R2配置router bgp 64512
no synchronization
bgp router-id 2.2.2.2
bgp confederation identifier 2
neighbor 3.3.3.3 remote-as 64512
neighbor 3.3.3.3 update-source Loopback0
neighbor 3.3.3.3 next-hop-self
neighbor 12.1.1.1 remote-as 1
no auto-summary
R3配置
router bgp 64512
no synchronization
bgp router-id 3.3.3.3
bgp confederation identifier 2
bgp confederation peers 64513
neighbor 2.2.2.2 remote-as 64512
neighbor 2.2.2.2 update-source Loopback0
neighbor 4.4.4.4 remote-as 64513
neighbor 4.4.4.4 ebgp-multihop 255
neighbor 4.4.4.4 update-source Loopback0
no auto-summary
R4配置
router bgp 64513
no synchronization
bgp router-id 4.4.4.4
bgp confederation identifier 2
bgp confederation peers 64512
neighbor 3.3.3.3 remote-as 64512
neighbor 3.3.3.3 ebgp-multihop 255
neighbor 3.3.3.3 update-source Loopback0
no auto-summary
本文出自 “开源殿堂” 博客,请务必保留此出处http://kaiyuandiantang.blog.51cto.com/10699754/1722529
相关文章推荐
- 多态
- Windows下pip安装包报错:Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat
- linux下的时间调整
- IOS RSA加密
- 自定义JSON配置器
- java实现数据结构中的环形队列
- poj3617 Best Cow Line (贪心)
- [转]提问的智慧
- TCP连接的状态详解以及故障排查
- mysql view(视图)
- 使用 C++11 让程序更简洁、更现代
- Eddy's research I
- 垂直方向的viewPager
- [leetcode] 283. Move Zeroes 解题报告
- Weblogic 节点管理器 nodemanager
- REST API设计步骤
- mysql半同步复制实现
- IOS安装FFmpeg调用成功总结的一些问题
- 用户画像
- hibernate query.list() 返回的数据类型