bgp对等体组

简介:

wKiom1NY0kSxds2TAABkBmbQzPk779.jpg

R1#show run 
Building configuration... 

Current configuration : 1507 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 ospf 1 
log-adjacency-changes 
network 0.0.0.0 255.255.255.255 area 0 
!          
router bgp 123 
no synchronization 
bgp log-neighbor-changes 
neighbor libo peer-group 
neighbor libo remote-as 123 
neighbor libo update-source Loopback0 
neighbor 2.2.2.2 peer-group libo 
neighbor 3.3.3.3 peer-group libo 
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 

R2#show run 
Building configuration... 

Current configuration : 1517 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 ospf 1 
log-adjacency-changes 
network 0.0.0.0 255.255.255.255 area 0 

router bgp 134 
no synchronization 
bgp log-neighbor-changes 
neighbor libo peer-group 
neighbor libo remote-as 123 
neighbor libo update-source Loopback0 
neighbor 1.1.1.1 peer-group libo 
neighbor 3.3.3.3 peer-group libo 
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 run 
Building configuration... 

Current configuration : 1517 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 ospf 1 
log-adjacency-changes 
network 0.0.0.0 255.255.255.255 area 0 

router bgp 123 
no synchronization 
bgp log-neighbor-changes 
neighbor libo peer-group 
neighbor libo remote-as 123 
neighbor libo update-source Loopback0 
neighbor 1.1.1.1 peer-group libo 
neighbor 2.2.2.2 peer-group libo 
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 

R1#show ip route 
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP 
      D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area  
      N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 
      E1 - OSPF external type 1, E2 - OSPF external type 2 
      i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 
      ia - IS-IS inter area, * - candidate default, U - per-user static route 
      o - ODR, P - periodic downloaded static route 

Gateway of last resort is not set 

    1.0.0.0/24 is subnetted, 1 subnets 
C       1.1.1.0 is directly connected, Loopback0 
    2.0.0.0/32 is subnetted, 1 subnets 
O       2.2.2.2 [110/65] via 12.0.0.2, 00:04:13, Serial1/0 
    3.0.0.0/32 is subnetted, 1 subnets 
O       3.3.3.3 [110/129] via 12.0.0.2, 00:04:13, Serial1/0 
    23.0.0.0/24 is subnetted, 1 subnets 
O       23.0.0.0 [110/128] via 12.0.0.2, 00:04:13, Serial1/0 
    12.0.0.0/24 is subnetted, 1 subnets 
C       12.0.0.0 is directly connected, Serial1/0 

R1#show ip bgp summary  
BGP router identifier 1.1.1.1, local AS number 123 
BGP table version is 1, main routing table version 1 

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd 
2.2.2.2         4   123       0       0        0    0    0 never    Active 
3.3.3.3         4   123      15      15        1    0    0 00:08:01       

R2#show ip bgp summary  
BGP router identifier 2.2.2.2, local AS number 134 
BGP table version is 1, main routing table version 1 

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd 
1.1.1.1         4   123       0       0        0    0    0 never    Idle 
3.3.3.3         4   123       0       0        0    0    0 never    Idle 


R3# show ip bgp summary  
BGP router identifier 3.3.3.3, local AS number 123 
BGP table version is 1, main routing table version 1 

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd 
1.1.1.1         4   123      12      12        1    0    0 00:08:42        0 
2.2.2.2         4   123       0       0        0    0    0 never    Active 













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


相关文章
|
4月前
|
网络协议
使用MPLS LDP解决BGP路由黑洞的问题
MPLS LDP默认不为BGP路由分配标签
|
4月前
|
负载均衡 网络协议 算法
IP路由协议(RIP、IGRP、OSPF、IS-IS、BGP)
1、路由分类 路由产生方式: 直接路由:路由器会自动生成本路由器激活端口所在网段的路由条目 静态路由:网络管理员手工配置,静态路由信息在缺省的情况下私有的,不会传递给其他的路由器
|
网络协议 网络架构 iOS开发
概述、 BGP AS 、BGP 邻居、 BGP 更新源 、BGP TTL 、BGP路由表、 BGP 同步(下)
文章目录 系列文件 概述 BGP AS BGP 邻居 BGP 更新源 BGP TTL BGP路由表 BGP 同步
353 0
概述、 BGP AS 、BGP 邻居、 BGP 更新源 、BGP TTL 、BGP路由表、 BGP 同步(下)
|
网络协议 算法 数据库
概述、 BGP AS 、BGP 邻居、 BGP 更新源 、BGP TTL 、BGP路由表、 BGP 同步(上)
文章目录 系列文件 概述 BGP AS BGP 邻居 BGP 更新源 BGP TTL BGP路由表 BGP 同步
296 0
概述、 BGP AS 、BGP 邻居、 BGP 更新源 、BGP TTL 、BGP路由表、 BGP 同步(上)
|
NoSQL Redis 网络架构
BGP邻居路由黑洞+mpls ip
文章目录 要求: 拓扑: 命令:
75 0
BGP邻居路由黑洞+mpls ip
|
网络协议 数据库 网络架构
|
网络协议 网络架构