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,如需转载请自行联系原作者





相关文章
|
网络架构
【神州数码】BGP路由器案例
【神州数码】BGP路由器案例
182 0
|
6月前
|
存储 网络协议 网络虚拟化
BGP路由协议学习一
BGP路由协议学习一
110 0
|
7月前
|
网络协议 网络虚拟化 网络架构
|
8月前
|
网络协议 网络虚拟化 网络架构
【网络技术】BGP 基础与概述
【网络技术】BGP 基础与概述
【网络技术】BGP 基础与概述
|
8月前
|
存储 网络协议 算法
网络技术基础(7)——OSPF基础
【3月更文挑战第1天】网络基础笔记(加班了几天,中途耽搁了,预计推迟6天),这篇借鉴了之前师兄的笔记,边听边记笔记实在是太慢了。
|
网络协议 算法 网络架构
BGP实战拓扑
文章目录 系列文章目录 前言 实验拓扑 IP地址规划 实验要求
206 1
BGP实战拓扑
|
网络架构
BGP 联邦+Community
文章目录 实验拓扑 实验要求 IP地址表 实验配置 配置BGP联邦属性 配置BGP团体属性(Community) 实验总结
123 0
BGP 联邦+Community
|
网络协议 网络架构
BGP基础理论详解
BGP是一种实现自治系统AS(Autonomous System)之间的路由可达,并选择最佳路由的距离矢量路由协议
569 0
|
算法 网络协议 数据库
大型网络实战之ospf路由协议
OSPF路由协议 楔子 为了加强自己我打算好好玩玩网络。 OSPF的基本概念和工作过程 开放式最短路径优先协议(OSFP)是基于开放标准的链路状态路由选择协议,它完成各路由选择协议算法的两大主要功能:路径选择和路径交换。
1744 1