BGP简单配置之二
接着上篇博客来,拓扑图一样。看下着次配置有何不同之处???
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
no auto-summary
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
no auto-summary
R2配置:
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.1.1 route-reflector-client
neighbor 192.168.2.2 remote-as 1
neighbor 192.168.2.2 route-reflector-client
no auto-summary
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.1.1 route-reflector-client
neighbor 192.168.2.2 remote-as 1
neighbor 192.168.2.2 route-reflector-client
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.2.1 remote-as 1
neighbor 192.168.3.2 remote-as 2
no auto-summary
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.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
!
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
!
通过这次配置,我们应该能看出点什么来,我的R1配置邻接关系的时候并没有和R3做配置,而上篇博文中有。这样就减少了IBGP的会话。这就是路由反射器的配置。想学习的可以看下这方面的知识!
我很菜,废话就不多说了!







发表评论 评论 (4 个评论)