panxinji 发表于 2007-8-5 3:11:15

r2#sho ip bgp

 

   Network          Next Hop            Metric LocPrf Weight Path

*> 1.1.1.0/24       12.0.0.1                 0             0 100 i

*> 2.2.2.0/24       0.0.0.0                  0         32768 i

r>i3.3.3.0/24       23.0.0.3                 0    100      0 i

r>i4.4.4.0/24       34.0.0.4                 0    100      0 i

没有R5的路由,说明RRR3)从非客户(R5)学来的路由不会再传递给非客户(R2),但是从客户(R4)学来的路由会传递给它的非客户(R2)。

 

 

r4#sho ip bgp

 

   Network          Next Hop            Metric LocPrf Weight Path

*>i1.1.1.0/24       23.0.0.2                 0    100      0 100 i

r>i2.2.2.0/24       23.0.0.2                 0    100      0 i

r>i3.3.3.0/24       34.0.0.3                 0    100      0 i

*> 4.4.4.0/24       0.0.0.0                  0         32768 i

r>i5.5.5.0/24       35.0.0.5                 0    100      0 i


……
panxinji 发表于 2007-8-5 3:09:20

GBP的路由反射器

由于IBGP的水平分割问题,一台路由器从他的邻居IBGP邻居学的到的路由不会再传递给另一个IBGP邻居,所以这里采用路由反射器来解决这问题

 

基本配置:

r1#sho run

!

interface Loopback0

 ip address 1.1.1.1 255.255.255.0

!

interface Serial2/1

 ip address 12.0.0.1 255.255.255.0

 serial restart-delay 0

!

router bgp 100

 no synchronization

 bgp log-neighbor-changes

 network 1.1.1.0 mask 255.255.255.0

 neighbor 12.0.0.2 remote-as 400

 no auto-summary

!

end  

 

 

r2#sho run

!

interface Loopback0

 ip address 2.2.2.2 255.255.255.0

!

interface Serial2/1

 ip address 12.0.0.2 255.255.255.0

 serial restart-delay 0

!

interface Serial2/2

 ip address 23.0.0.2 255.255.255.0

 serial restart-delay 0

!

router eigrp 100

 network 2.2.2.0 0.0.0.255

 network 23.0.0.0 0.0.0.255

 no auto-summary

!

router bgp 400

 no synchronization

 bgp log-neighbor-changes

 network 2.2.2.0 mask 255.255.255.0

 neighbor 12.0.0.1 remote-as 100


……
panxinji 发表于 2007-8-4 18:20:09

r2#sho ip bgp

   Network          Next Hop            Metric LocPrf Weight Path

*> 1.1.1.0/24       12.0.0.1                 0             0 100 i

*> 2.2.2.0/24       0.0.0.0                  0         32768 i

r>i3.3.3.0/24       3.3.3.3                  0    100      0 i

由于IBGP水平分割问题,R2BGP表没有R4R5的路由条目。

 

 

 r3#sho ip bgp

 

   Network          Next Hop            Metric LocPrf Weight Path

*>i1.1.1.0/24       2.2.2.2                  0    100      0 100 i

r>i2.2.2.0/24       2.2.2.2                  0    100      0 i

*> 3.3.3.0/24       0.0.0.0                  0         32768 i

r>i4.4.4.0/24       4.4.4.4                  0    100      0 i

由于IBGP水平分割问题,R3BGP表没有R5的路由条目。

 

 

 r4#sho ip bgp

 

   Network          Next Hop            Metric LocPrf Weight Path

r>i3.3.3.0/24       3.3.3.3                  0    100      0 i

*> 4.4.4.0/24       0.0.0.0                  0         32768 i

r>i5.5.5.0/24       5.5.5.5                  0    100      0 i

由于IBGP水平分割问题,R4BGP表没有R1R2的路由条目。

 

 

 r5#sh  ip bgp

    Network          Next Hop            Metric LocPrf Weight Path

r>i4.4.4.0/24       4.4.4.4                  0    100      0 i

*> 5.5.5.0/24       0.0.0.0                  0         32768 i

由于IBGP水平分割问题,R5BGP表没有R1R2R3的路由条目。

 

  

r3#sho run | b r b

router bgp 400

 no synchronization

 bgp log-neighbor-changes

 network 3.3.3.0 mask 255.255.255.0

 neighbor 2.2.2.2 remote-as 400

 neighbor 2.2.2.2 ebgp-multihop 255

 neighbor 2.2.2.2 update-source Loopback0

 neighbor 2.2.2.2 route-reflector-client   //R2设为自己的客户

 neighbor 4.4.4.4 remote-as 400

 neighbor 4.4.4.4 ebgp-multihop 255

 neighbor 4.4.4.4 update-source Loopback0

 no auto-summary

R2是路由反射器的客户,R3为路由反射器(RR),R4为非客户

 

  

r2#sho ip bgp

Origin codes: i - IGP, e - EGP, ? - incomplete

 

   Network          Next Hop            Metric LocPrf Weight Path

*> 1.1.1.0/24       12.0.0.1                 0             0 100 i

*> 2.2.2.0/24       0.0.0.0                  0         32768 i

r>i3.3.3.0/24       3.3.3.3                  0    100      0 i

r>i4.4.4.0/24       4.4.4.4                  0    100      0 i

R2通过路由反射器(R3)已经学到R4的路由,但是还是没有R5的路由,仍然是IBGP的水平分割问题。

 

 

r4#sho ip bgp

 

   Network          Next Hop            Metric LocPrf Weight Path

*>i1.1.1.0/24       2.2.2.2                  0    100      0 100 i

r>i2.2.2.0/24       2.2.2.2                  0    100      0 i

r>i3.3.3.0/24       3.3.3.3                  0    100      0 i

*> 4.4.4.0/24       0.0.0.0                  0         32768 i

r>i5.5.5.0/24       5.5.5.5                  0    100      0 i

R4通过路由反射器(R3)已经学到R1R2的路由

 

 

 r5#sh  ip bgp

 

   Network          Next Hop            Metric LocPrf Weight Path

r>i4.4.4.0/24       4.4.4.4                  0    100      0 i

*> 5.5.5.0/24       0.0.0.0                  0         32768 i

由于IBGP的水平分割问题R5无法学到R3R2R1的路由,因为R4IBGP邻居(R3)学到的路由不会再传递给下一个IBGP邻居(R5)。

 

  

 r4#sho run | b r b

router bgp 400

 no synchronization

network 4.4.4.0 mask 255.255.255.0

 neighbor 3.3.3.3 remote-as 400

 neighbor 3.3.3.3 ebgp-multihop 255

 neighbor 3.3.3.3 update-source Loopback0

 neighbor 5.5.5.5 remote-as 400

 neighbor 5.5.5.5 ebgp-multihop 255

 neighbor 5.5.5.5 update-source Loopback0

 neighbor 5.5.5.5 route-reflector-client   //R5设为自己的客户

R4为路由反射器(RR),R5的客户,R3为非客户

 

 

r5#sho ip bgp

 

   Network          Next Hop            Metric LocPrf Weight Path

*>i1.1.1.0/24       2.2.2.2                  0    100      0 100 i

r>i2.2.2.0/24       2.2.2.2                  0    100      0 i

r>i3.3.3.0/24       3.3.3.3                  0    100      0 i

r>i4.4.4.0/24       4.4.4.4                  0    100      0 i

*> 5.5.5.0/24       0.0.0.0                  0         32768 i

R5通过路由反射器已学到了所有的路由

panxinji 发表于 2007-8-4 18:15:48

GBP的路由反射器

由于IBGP的水平分割问题,一台路由器从他的邻居IBGP邻居学的到的路由不会再传递给另一个IBGP邻居,所以这里采用路由反射器来解决这问题。

 

基本配置

r1#sho run

!

interface Loopback0

 ip address 1.1.1.1 255.255.255.0

!

interface Serial2/1

 ip address 12.0.0.1 255.255.255.0

 serial restart-delay 0

!

router bgp 100

 no synchronization

 bgp log-neighbor-changes

 network 1.1.1.0 mask 255.255.255.0

 neighbor 12.0.0.2 remote-as 400

 no auto-summary

!

end

    

 

 

r2#sho run

!

interface Loopback0

 ip address 2.2.2.2 255.255.255.0

!

interface Serial2/1

 ip address 12.0.0.2 255.255.255.0

 serial restart-delay 0

!

interface Serial2/2

 ip address 23.0.0.2 255.255.255.0

 serial restart-delay 0

!

router eigrp 100

 network 2.2.2.0 0.0.0.255

 network 23.0.0.0 0.0.0.255

 no auto-summary

!

router bgp 400

 no synchronization

 bgp log-neighbor-changes

 network 2.2.2.0 mask 255.255.255.0

 neighbor 3.3.3.3 remote-as 400

 neighbor 3.3.3.3 ebgp-multihop 255

 neighbor 3.3.3.3 update-source Loopback0

 neighbor 3.3.3.3 next-hop-self

 neighbor 12.0.0.1 remote-as 100

 no auto-summary

!

end

 

 

 

r3#sh run

!

interface Loopback0

 ip address 3.3.3.3 255.255.255.0

!

interface Serial2/1

 ip address 23.0.0.3 255.255.255.0

 serial restart-delay 0

!

interface Serial2/2

 ip address 34.0.0.3 255.255.255.0

 serial restart-delay 0

!

router eigrp 100

 network 3.3.3.0 0.0.0.255

 network 23.0.0.0 0.0.0.255

 network 34.0.0.0 0.0.0.255

 no auto-summary

!

router bgp 400

 no synchronization

 bgp log-neighbor-changes

 network 3.3.3.0 mask 255.255.255.0

 neighbor 2.2.2.2 remote-as 400

 neighbor 2.2.2.2 ebgp-multihop 255

 neighbor 2.2.2.2 update-source Loopback0

 neighbor 4.4.4.4 remote-as 400

 neighbor 4.4.4.4 ebgp-multihop 255

 neighbor 4.4.4.4 update-source Loopback0

 no auto-summary

!

end

 

 

 

r4#sho run

!

interface Loopback0

 ip address 4.4.4.4 255.255.255.0

!

interface Serial2/1

 ip address 34.0.0.4 255.255.255.0

 serial restart-delay 0

!

interface Serial2/2

 ip address 45.0.0.4 255.255.255.0

 serial restart-delay 0

!

router eigrp 100

 network 4.4.4.0 0.0.0.255

 network 34.0.0.0 0.0.0.255

 network 45.0.0.0 0.0.0.255

 no auto-summary

!

router bgp 400

 no synchronization

 bgp log-neighbor-changes

 network 4.4.4.0 mask 255.255.255.0

 neighbor 3.3.3.3 remote-as 400

 neighbor 3.3.3.3 ebgp-multihop 255

 neighbor 3.3.3.3 update-source Loopback0

 neighbor 5.5.5.5 remote-as 400

 neighbor 5.5.5.5 ebgp-multihop 255

 neighbor 5.5.5.5 update-source Loopback0

 no auto-summary

!

end

 

 

 

 

r5#sho run

!

interface Loopback0

 ip address 5.5.5.5 255.255.255.0

!

interface Serial2/2

 ip address 45.0.0.5 255.255.255.0

 serial restart-delay 0

!

router eigrp 100

 network 5.5.5.0 0.0.0.255

 network 45.0.0.0 0.0.0.255

 no auto-summary

!

router bgp 400

 no synchronization

 bgp log-neighbor-changes

 network 5.5.5.0 mask 255.255.255.0

 neighbor 4.4.4.4 remote-as 400

 neighbor 4.4.4.4 ebgp-multihop 255

 neighbor 4.4.4.4 update-source Loopback0

 no auto-summary

!

end

后继
 

首页 上一页 下一页 尾页 页次:1/12页  4篇日志/页 转到:

Powered by Oblog.