bgp联邦

简介:

wKiom1NY0righ2xWAACnb7CWApo121.jpg


hostname r1 
R1#show run 
Building configuration... 

Current configuration : 1372 bytes 

version 12.4 
service timestamps debug datetime msec 
service timestamps log datetime msec 
no service password-encryption 

hostname R1 

boot-start-marker 
boot-end-marker 


no aaa new-model 


ip cef 
no ip domain lookup 




!          













!  




interface Loopback0 
ip address 1.1.1.1 255.255.255.0 

interface FastEthernet0/0 
no ip address 
shutdown 
duplex half 

interface Serial1/0 
ip address 12.0.0.1 255.255.255.0 
serial restart-delay 0 

interface Serial1/1 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/2 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/3 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/4 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/5 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/6 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/7 
no ip address 
shutdown 
serial restart-delay 0 

router bgp 100 
no synchronization 
bgp log-neighbor-changes 
network 1.1.1.0 mask 255.255.255.0 
network 12.0.0.0 mask 255.255.255.0 
neighbor 12.0.0.2 remote-as 234 
no auto-summary 


no ip http server 
no ip http secure-server 






control-plane 






gatekeeper 
shutdown 
!          

line con 0 
exec-timeout 0 0 
logging synchronous 
stopbits 1 
line aux 0 
stopbits 1 
line vty 0 4 


end 



hostname r2 
R2#show run 
Building configuration... 

Current configuration : 1559 bytes 

version 12.4 
service timestamps debug datetime msec 
service timestamps log datetime msec 
no service password-encryption 

hostname R2 

boot-start-marker 
boot-end-marker 


no aaa new-model 


ip cef 
no ip domain lookup 




!          













!  




interface Loopback0 
ip address 2.2.2.2 255.255.255.0 

interface FastEthernet0/0 
no ip address 
shutdown 
duplex half 

interface Serial1/0 
ip address 12.0.0.2 255.255.255.0 
serial restart-delay 0 

interface Serial1/1 
ip address 23.0.0.2 255.255.255.0 
serial restart-delay 0 

interface Serial1/2 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/3 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/4 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/5 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/6 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/7 
no ip address 
shutdown 
serial restart-delay 0 

router eigrp 11 
network 2.0.0.0 
network 23.0.0.0 
no auto-summary 
!          
router bgp 65023 
no synchronization 
bgp log-neighbor-changes 
bgp confederation identifier 234 
network 2.2.2.0 mask 255.255.255.0 
neighbor 3.3.3.3 remote-as 65023 
neighbor 3.3.3.3 update-source Loopback0 
neighbor 3.3.3.3 next-hop-self 
neighbor 12.0.0.1 remote-as 100 
no auto-summary 


no ip http server 
no ip http secure-server 






control-plane 

!          




gatekeeper 
shutdown 


line con 0 
exec-timeout 0 0 
logging synchronous 
stopbits 1 
line aux 0 
stopbits 1 
line vty 0 4 


end 


hostname r3 
R3#show run 
Building configuration... 

Current configuration : 1730 bytes 

version 12.4 
service timestamps debug datetime msec 
service timestamps log datetime msec 
no service password-encryption 

hostname R3 

boot-start-marker 
boot-end-marker 


no aaa new-model 


ip cef 
no ip domain lookup 




!          













!  




interface Loopback0 
ip address 3.3.3.3 255.255.255.0 

interface FastEthernet0/0 
no ip address 
shutdown 
duplex half 

interface Serial1/0 
ip address 23.0.0.3 255.255.255.0 
serial restart-delay 0 

interface Serial1/1 
ip address 34.0.0.3 255.255.255.0 
serial restart-delay 0 

interface Serial1/2 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/3 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/4 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/5 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/6 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/7 
no ip address 
shutdown 
serial restart-delay 0 

router eigrp 11 
network 3.0.0.0 
network 23.0.0.0 
network 34.0.0.0 
no auto-summary 

router bgp 65023 
no synchronization 
bgp log-neighbor-changes 
bgp confederation identifier 234 
bgp confederation peers 65034  
network 3.3.3.0 mask 255.255.255.0 
network 23.0.0.0 mask 255.255.255.0 
network 34.0.0.0 mask 255.255.255.0 
neighbor 2.2.2.2 remote-as 65023 
neighbor 2.2.2.2 update-source Loopback0 
neighbor 4.4.4.4 remote-as 65034 
neighbor 4.4.4.4 ebgp-multihop 255 
neighbor 4.4.4.4 update-source Loopback0 
no auto-summary 


no ip http server 
no ip http secure-server 



!          


control-plane 






gatekeeper 
shutdown 


line con 0 
exec-timeout 0 0 
logging synchronous 
stopbits 1 
line aux 0 
stopbits 1 
line vty 0 4 






hostname r4 

R4#show run 
Building configuration... 

Current configuration : 1627 bytes 

version 12.4 
service timestamps debug datetime msec 
service timestamps log datetime msec 
no service password-encryption 

hostname R4 

boot-start-marker 
boot-end-marker 


no aaa new-model 


ip cef 
no ip domain lookup 




!          













!  




interface Loopback0 
ip address 4.4.4.4 255.255.255.0 

interface FastEthernet0/0 
no ip address 
shutdown 
duplex half 

interface Serial1/0 
ip address 34.0.0.4 255.255.255.0 
serial restart-delay 0 

interface Serial1/1 
ip address 45.0.0.4 255.255.255.0 
serial restart-delay 0 

interface Serial1/2 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/3 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/4 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/5 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/6 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/7 
no ip address 
shutdown 
serial restart-delay 0 

router eigrp 11 
network 4.0.0.0 
network 34.0.0.0 
no auto-summary 
!          
router bgp 65034 
no synchronization 
bgp log-neighbor-changes 
bgp confederation identifier 234 
bgp confederation peers 65023  
network 4.4.4.0 mask 255.255.255.0 
neighbor 3.3.3.3 remote-as 65023 
neighbor 3.3.3.3 ebgp-multihop 255 
neighbor 3.3.3.3 update-source Loopback0 
neighbor 3.3.3.3 next-hop-self 
neighbor 45.0.0.5 remote-as 500 
no auto-summary 


no ip http server 
no ip http secure-server 






control-plane 






gatekeeper 
shutdown 


line con 0 
exec-timeout 0 0 
logging synchronous 
stopbits 1 
line aux 0 
stopbits 1 
line vty 0 4 


end 




hostname r5 
R5#show run 
Building configuration... 

Current configuration : 1627 bytes 

version 12.4 
service timestamps debug datetime msec 
service timestamps log datetime msec 
no service password-encryption 

hostname R5 

boot-start-marker 
boot-end-marker 


no aaa new-model 


ip cef 
no ip domain lookup 




!          













!  




interface Loopback0 
ip address 5.5.5.5 255.255.255.0 

interface FastEthernet0/0 
no ip address 
shutdown 
duplex half 

interface Serial1/0 
ip address 45.0.0.5 255.255.255.0 
serial restart-delay 0 

interface Serial1/1 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/2 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/3 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/4 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/5 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/6 
no ip address 
shutdown 
serial restart-delay 0 

interface Serial1/7 
no ip address 
shutdown 
serial restart-delay 0 

router bgp 500 
no synchronization 
bgp log-neighbor-changes 
network 1.1.1.0 mask 255.255.255.0 
network 2.2.2.0 mask 255.255.255.0 
network 3.3.3.0 mask 255.255.255.0 
network 4.4.4.0 mask 255.255.255.0 
network 5.5.5.0 mask 255.255.255.0 
network 12.0.0.0 mask 255.255.255.0 
network 23.0.0.0 mask 255.255.255.0 
network 34.0.0.0 mask 255.255.255.0 
network 45.0.0.0 mask 255.255.255.0 
neighbor 45.0.0.4 remote-as 234 
no auto-summary 


no ip http server 
no ip http secure-server 






control-plane 

!          




gatekeeper 
shutdown 


line con 0 
exec-timeout 0 0 
logging synchronous 
stopbits 1 
line aux 0 
stopbits 1 
line vty 0 4 


end 



R3#show ip bgp 
BGP table version is 12, local router ID is 3.3.3.3 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, 
             r RIB-failure, S Stale 
Origin codes: i - IGP, e - EGP, ? - incomplete 

  Network          Next Hop            Metric LocPrf Weight Path 
*>i1.1.1.0/24       2.2.2.2                  0    100      0 100 i 
r>i2.2.2.0/24       2.2.2.2                  0    100      0 i 
*> 3.3.3.0/24       0.0.0.0                  0         32768 i 
r> 4.4.4.0/24       4.4.4.4                  0    100      0 (65034) i 
*> 5.5.5.0/24       4.4.4.4                  0    100      0 (65034) 500 i 
*>i12.0.0.0/24      2.2.2.2                  0    100      0 100 i 
*> 23.0.0.0/24      0.0.0.0                  0         32768 i 
*> 34.0.0.0/24      0.0.0.0                  0         32768 i 
*> 45.0.0.0/24      4.4.4.4                  0    100      0 (65034) 500  


R1#ping 5.5.5.5 

Type escape sequence to abort. 
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds: 
!!!!! 
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/61/128 ms 

R5#ping 1.1.1.1 

Type escape sequence to abort. 
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds: 
!!!!! 
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/74/152 ms 










本文转自zhang25yun51CTO博客,原文链接: http://blog.51cto.com/1585654/1402027,如需转载请自行联系原作者





相关文章
|
5月前
|
JSON API 数据格式
深入研究:淘宝天猫关键词搜索接口详解
淘宝和天猫提供关键词搜索商品的API接口,支持开发者按关键词获取商品列表及相关数据。功能包括通过搜索关键词(q)返回商品基本信息,如ID、标题、价格、图片、销量等。支持排序(sort)、分页(page_no/page_size)、价格区间筛选(start_price/end_price)及分类搜索(cat)。返回JSON格式数据,含商品ID、标题、价格、图片链接、详情页链接和销量等字段。
|
数据采集 Web App开发 JavaScript
探索Puppeteer的强大功能:抓取隐藏内容
**摘要:** 本文探讨了如何使用Puppeteer无头浏览器抓取动态网页的隐藏内容,如模拟点击、滚动、表单提交和延时加载。Puppeteer是Google维护的Node库,能自动化控制Chrome。文章还讲解了结合爬虫代理IP、User-Agent和Cookie来增强爬取的稳定性和效率,提供了相关JavaScript代码示例,展示了如何配置代理、设置User-Agent、处理Cookie以及模拟用户交互来获取隐藏信息。这些技巧对于现代网页的爬取至关重要。
471 4
探索Puppeteer的强大功能:抓取隐藏内容
|
12月前
|
数据可视化 项目管理
如何将SMART目标设定法与项目管理工具的结合使用?
在项目管理中,SMART原则(具体、可衡量、可达成、相关、时限)是设定清晰目标的有效方法。结合现代看板工具,如板栗看板、Trello和Asana,可将目标细化为日常任务,提高团队效率,确保目标顺利实现。
419 1
如何将SMART目标设定法与项目管理工具的结合使用?
|
11月前
|
存储 小程序 前端开发
知识付费小程开发案例
随着移动互联网的发展,知识付费成为趋势,开发知识付费小程序成为企业和个人抓住机遇的重要方式。本文档提供了从需求分析到持续优化的全流程指南,涵盖技术选型、设计开发、测试上线及运营策略,旨在帮助开发者构建高效、安全的知识付费平台。
|
SQL NoSQL 关系型数据库
Grafana 与数据库连接:最佳实践
【8月更文第29天】Grafana 是一个开源的度量分析和可视化套件,被广泛应用于展示来自各种数据源的时间序列数据。它可以与多种数据库类型连接,从传统的 SQL 数据库到现代的 NoSQL 解决方案。本文将介绍如何通过 Grafana 连接到不同的数据源,并提供一些最佳实践。
1288 3
|
12月前
|
数据采集 缓存 搜索推荐
服务端渲染(SSR)与静态站点生成(SSG)结合使用
服务端渲染(SSR)与静态站点生成(SSG)结合使用
|
12月前
|
存储 缓存 安全
Windows 用户应该知道的AppData
Windows 用户应该知道的AppData
Windows 用户应该知道的AppData
|
前端开发 JavaScript
【Web 前端】 js中call、apply、bind有什么区别?
【4月更文挑战第22天】【Web 前端】 js中call、apply、bind有什么区别?
【Web 前端】 js中call、apply、bind有什么区别?
|
JavaScript Java 测试技术
基于SpringBoot+Vue+uniapp的剧本杀预约系统的详细设计和实现(源码+lw+部署文档+讲解等)
基于SpringBoot+Vue+uniapp的剧本杀预约系统的详细设计和实现(源码+lw+部署文档+讲解等)
212 0
|
C++ Java
ChaosBlade 发布对 C++ 应用混沌实验的支持
前言 为满足 C++ 应用系统故障演练,阿里妈妈安全生产团队开源了 C++ 混沌实验执行器,填补了 C++ 应用混沌工程实验的空白,其遵循《混沌实验模型》,可通过 ChaosBlade 工具直接执行。
5163 89