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


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值