登录站点

用户名

密码

bgp 简单配置

热9已有 155 次阅读  2010-06-18 10:36   标签:  bgp 
                                      BGP 简单配置之一
 
一:BGP简单配置,及问题发现。图如下:
说明:R1 R2 R3 建立rip 协议。同时属于BGP 1 R3 是默认路由,为BGP2

R1 配置:

interface FastEthernet0/0
 ip address 192.168.1.1 255.255.255.0
 duplex auto
 speed auto
!
router rip
 network 192.168.1.0
!
router bgp 1
 no synchronization
 bgp log-neighbor-changes
 neighbor 192.168.1.2 remote-as 1
 neighbor 192.168.2.2 remote-as 1
 no auto-summary

R2 配置:

interface FastEthernet0/0
 ip address 192.168.1.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.2.1 255.255.255.0
 duplex auto
 speed auto
!
router rip
 network 192.168.1.0
 network 192.168.2.0
!
router bgp 1
 no synchronization
 bgp log-neighbor-changes
 neighbor 192.168.1.1 remote-as 1
 neighbor 192.168.2.2 remote-as 1
 no auto-summary

R3配置:

interface FastEthernet0/0
 ip address 192.168.3.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.2.2 255.255.255.0
 duplex auto
 speed auto
!
router rip
 network 192.168.2.0
!
router bgp 1
 no synchronization
 bgp log-neighbor-changes
 network 192.168.3.0
 neighbor 192.168.1.1 remote-as 1
 neighbor 192.168.2.1 remote-as 1
 neighbor 192.168.3.2 remote-as 2
 no auto-summary

R4配置:

interface FastEthernet0/0
 ip address 192.168.3.2 255.255.255.0
 duplex auto
 speed auto
!
router bgp 2
 no synchronization
 bgp log-neighbor-changes
 neighbor 192.168.3.1 remote-as 1
 no auto-summary
!
ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 192.168.3.1
!

路由表学到,实验陈功!

通过配置,可以看出BGP要和每台路由器建立邻接关系,如果要是很多路由器,IBGP会话会很多,同时造成路由器的性能下降等很多问题。那如何解决呢?请看下篇博文!

 

 

 

 
分享 举报

发表评论 评论 (3 个评论)

涂鸦板