
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 个评论)