• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.

Announcement

Collapse
No announcement yet.

Thảo luận về BGP & static route

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Thảo luận về BGP & static route

    Có một nviên trong cty đang luyện CCIE gặp phải vấn đề như thế này, mình thấy cũng thú vị nên gửi lên cho các bạn thảo luận xem.

    Một mô hình mạng gồm 3 routers thôi R1, R2, R3 đấu theo hình tam giác.

    R1-R2: iBGP
    R1-R3: trên R1 cấu hình static route cho R3-lo (loopback)
    R2-R3: trên R2 cấu hình static route cho R3-lo (loopback)

    khá đơn giản phải ko?

    Vấn đề đặt ra
    1. Điều kiện bình thường
    - Trên R1 thấy R3-lo bằng iBGP qua R2 (tức là dùng iBGP thay vì static)
    - Trên R2 thấy R3-lo bằng static

    2. Link R2-R3 down (cho shutdown interface luôn)
    - Trên R1 thấy R3-lo bằng static
    - Trên R2 thấy R3-lo bằng iBGP qua R1 (tức là dùng iBGP thay vì static)

    3. Link R2-R3 up
    trở lại vấn đề 1

    Tóm lại ở đây có thể hiểu rằng bằng BGP & static, cấu hình để ưu tiên link R2-R3 hơn là R1-R3.

    Chúc một ngày làm việc vui vẻ
    Mr.LeVy
    > Ping CCNA
    Sending to CISCO.....Please wait.....

    Cho thuê CCIE LAB RS & SEC online giá rẻ đây (250k/6h for RS & 350k/6h for SEC)

    RS: R2611, R1841, SW3550/3560
    SEC: R2611, R2811, ASA5510 (Sec plus), IPS4235, SW3560

    Timeslots (GMT+7) - Vietnam (8h00 - 7h50+1)
    TS1.VN : 08h00 - 13h50
    TS2.VN : 14h00 - 19h50
    TS3.VN : 20h00 - 01h50
    TS4.VN : 02h00 -07h50

    Mọi chi tiết xin liên hệ vulevy (at) yahoo (dot) fr

  • #2
    Originally posted by Mr.LeVy View Post
    1. Điều kiện bình thường
    - Trên R1 thấy R3-lo bằng iBGP qua R2 (tức là dùng iBGP thay vì static)
    Trên R1 nếu bạn cấu hình static route thông thường, không kèm theo thông số gì thì Trên R1 sẽ thấy R3-Lo bằng static route chứ không phải bằng iBGP qua R2 Vì IBGP AD của nó là 200 còn static mặc định là 1.

    Bạn xem xét lại xem.

    Thân.
    Nhiệt tình + Không biết >> Phá hoại

    Comment


    • #3
      Originally posted by hoangtu_congngheIT View Post
      Trên R1 nếu bạn cấu hình static route thông thường, không kèm theo thông số gì thì Trên R1 sẽ thấy R3-Lo bằng static route chứ không phải bằng iBGP qua R2 Vì IBGP AD của nó là 200 còn static mặc định là 1.

      Bạn xem xét lại xem.

      Thân.
      Bởi vậy mới có câu hỏi này, chứ nếu ko thì ai chả biết static ưu tiên hơn iBGP. Tóm lại hãy cấu hình làm sao để thỏa mãn yêu cầu là được.
      > Ping CCNA
      Sending to CISCO.....Please wait.....

      Cho thuê CCIE LAB RS & SEC online giá rẻ đây (250k/6h for RS & 350k/6h for SEC)

      RS: R2611, R1841, SW3550/3560
      SEC: R2611, R2811, ASA5510 (Sec plus), IPS4235, SW3560

      Timeslots (GMT+7) - Vietnam (8h00 - 7h50+1)
      TS1.VN : 08h00 - 13h50
      TS2.VN : 14h00 - 19h50
      TS3.VN : 20h00 - 01h50
      TS4.VN : 02h00 -07h50

      Mọi chi tiết xin liên hệ vulevy (at) yahoo (dot) fr

      Comment


      • #4
        Originally posted by Mr.LeVy View Post
        Bởi vậy mới có câu hỏi này, chứ nếu ko thì ai chả biết static ưu tiên hơn iBGP. Tóm lại hãy cấu hình làm sao để thỏa mãn yêu cầu là được.
        Trên R1 bạn chỉ cần cấu hình static route với tham số distance > 200 là okay. Thí dụ cổng lo trên R3 là 10.0.0.1/24. Thì trên R1 bạn cấu hình như sau:

        R1(conf)#ip route 10.0.0.0 255.255.255.0 [interface of R1 | IP next hop] 210


        Thân
        Nhiệt tình + Không biết >> Phá hoại

        Comment


        • #5
          Originally posted by hoangtu_congngheIT View Post
          Trên R1 bạn chỉ cần cấu hình static route với tham số distance > 200 là okay. Thí dụ cổng lo trên R3 là 10.0.0.1/24. Thì trên R1 bạn cấu hình như sau:

          R1(conf)#ip route 10.0.0.0 255.255.255.0 [interface of R1 | IP next hop] 210

          Thân
          Thanks nhưng ko đơn giản như vậy đâu. Bạn đã test hết cả 3 yêu cầu như trên chưa?

          Mình nghĩ tốt nhất nên test trên GNS3 hay thiết bị thật, các bạn sẽ thấy được vấn đề thôi. Xin mời các ý kiến khác, chúng ta cùng thảo luận.

          PS: hôm nay được nghỉ phép nên tha hồ mà online ;)
          > Ping CCNA
          Sending to CISCO.....Please wait.....

          Cho thuê CCIE LAB RS & SEC online giá rẻ đây (250k/6h for RS & 350k/6h for SEC)

          RS: R2611, R1841, SW3550/3560
          SEC: R2611, R2811, ASA5510 (Sec plus), IPS4235, SW3560

          Timeslots (GMT+7) - Vietnam (8h00 - 7h50+1)
          TS1.VN : 08h00 - 13h50
          TS2.VN : 14h00 - 19h50
          TS3.VN : 20h00 - 01h50
          TS4.VN : 02h00 -07h50

          Mọi chi tiết xin liên hệ vulevy (at) yahoo (dot) fr

          Comment


          • #6
            Vấn đề của bạn mình nghĩ có thể giải quyết bằng câu lệnh sau trên R1.
            neighbor 12.0.0.2 weight 40000.
            Vì mặc định weight của static route học là 32768. show ip bgp sẽ thấy.

            R1
            router bgp 1
            no synchronization
            bgp log-neighbor-changes
            network 3.0.0.0
            neighbor 12.0.0.2 remote-as 1
            neighbor 12.0.0.2 next-hop-self
            neighbor 12.0.0.2 weight 40000


            R2#
            router bgp 1
            no synchronization
            bgp log-neighbor-changes
            network 3.0.0.0
            neighbor 12.0.0.1 remote-as 1
            neighbor 12.0.0.1 next-hop-self
            no auto-summary
            Phạm Minh Tuấn

            Email : phamminhtuan@vnpro.org
            Yahoo : phamminhtuan_vnpro
            -----------------------------------------------------------------------------------------------
          Trung Tâm Tin Học VnPro
          149/1D Ung Văn Khiêm P25 Q.Bình thạnh TPHCM
          Tel : (08) 35124257 (5 lines)
          Fax: (08) 35124314

          Home page: http://www.vnpro.vn
          Support Forum: http://www.vnpro.org
          - Chuyên đào tạo quản trị mạng và hạ tầng Internet
          - Phát hành sách chuyên môn
          - Tư vấn và tuyển dụng nhân sự IT
          - Tư vấn thiết kế và hỗ trợ kỹ thuật hệ thống mạng

          Network channel: http://www.dancisco.com
          Blog: http://www.vnpro.org/blog

          Comment


          • #7
            Originally posted by logmeinvietnam View Post
            Vấn đề của bạn mình nghĩ có thể giải quyết bằng câu lệnh sau trên R1.
            neighbor 12.0.0.2 weight 40000.
            Vì mặc định weight của static route học là 32768. show ip bgp sẽ thấy.

            R1
            router bgp 1
            no synchronization
            bgp log-neighbor-changes
            network 3.0.0.0
            neighbor 12.0.0.2 remote-as 1
            neighbor 12.0.0.2 next-hop-self
            neighbor 12.0.0.2 weight 40000


            R2#
            router bgp 1
            no synchronization
            bgp log-neighbor-changes
            network 3.0.0.0
            neighbor 12.0.0.1 remote-as 1
            neighbor 12.0.0.1 next-hop-self
            no auto-summary
            Thanks, kết hợp với câu trả lời của hoangtu_congngheIT sẽ cho ta một giải pháp đúng. Tuy nhiên đó ko phải là giải pháp hay, vì khi cấu hình một Backbone, bạn sẽ thấy neighbor 12.0.0.2 weight 40000 là một giải pháp tồi.

            Vấn đề ở đây được hiểu như thế nào? tại sao như vậy? Ai có thể giải thích ko? Từ đó sẽ có các giải pháp tối ưu hơn.
            > Ping CCNA
            Sending to CISCO.....Please wait.....

            Cho thuê CCIE LAB RS & SEC online giá rẻ đây (250k/6h for RS & 350k/6h for SEC)

            RS: R2611, R1841, SW3550/3560
            SEC: R2611, R2811, ASA5510 (Sec plus), IPS4235, SW3560

            Timeslots (GMT+7) - Vietnam (8h00 - 7h50+1)
            TS1.VN : 08h00 - 13h50
            TS2.VN : 14h00 - 19h50
            TS3.VN : 20h00 - 01h50
            TS4.VN : 02h00 -07h50

            Mọi chi tiết xin liên hệ vulevy (at) yahoo (dot) fr

            Comment


            • #8
              Hic, các cao thủ đang luyện ccie đâu hết rồi, thảo luận đi chứ anh em. Mọi người kêu LeVy chia sẻ kinh nghiệm nhưng lại ko có ai hưởng ứng hết.
              > Ping CCNA
              Sending to CISCO.....Please wait.....

              Cho thuê CCIE LAB RS & SEC online giá rẻ đây (250k/6h for RS & 350k/6h for SEC)

              RS: R2611, R1841, SW3550/3560
              SEC: R2611, R2811, ASA5510 (Sec plus), IPS4235, SW3560

              Timeslots (GMT+7) - Vietnam (8h00 - 7h50+1)
              TS1.VN : 08h00 - 13h50
              TS2.VN : 14h00 - 19h50
              TS3.VN : 20h00 - 01h50
              TS4.VN : 02h00 -07h50

              Mọi chi tiết xin liên hệ vulevy (at) yahoo (dot) fr

              Comment


              • #9
                Trong thực tế mình cũng đã gặp vấn đề này, đương nhiên mình cấu hình ưu tiên iBGP hơn static bằng cách đẩy AD của static lên >210. Nhưng thực tế cho thấy, sau khi R2-R3 down rồi up trở lại thì R1 sẽ thấy R3-lo bằng static chứ ko phải bằng iBGP qua R2 như lý thuyết về AD. Đoạn này copy trên cisco, các bồ xem qua có phải nó ko:

                Routes Announced with Redistribute Static

                If the routers are connected with two links, and the routes are learned through BGP and floating static routes, the floating static routes are installed in the routing table. This occurs if the static routes are redistributed in the case of BGP route failure. If the BGP routes come back online, the floating static routes in the routing table are not changed to reflect the BGP routes.

                This issue can be solved if you remove the redistribute static command under the BGP process to avoid the prioritization of floating static routes over BGP routes.

                Comment


                • #10
                  Originally posted by bonghe View Post
                  Trong thực tế mình cũng đã gặp vấn đề này, đương nhiên mình cấu hình ưu tiên iBGP hơn static bằng cách đẩy AD của static lên >210. Nhưng thực tế cho thấy, sau khi R2-R3 down rồi up trở lại thì R1 sẽ thấy R3-lo bằng static chứ ko phải bằng iBGP qua R2 như lý thuyết về AD. Đoạn này copy trên cisco, các bồ xem qua có phải nó ko:

                  Routes Announced with Redistribute Static

                  If the routers are connected with two links, and the routes are learned through BGP and floating static routes, the floating static routes are installed in the routing table. This occurs if the static routes are redistributed in the case of BGP route failure. If the BGP routes come back online, the floating static routes in the routing table are not changed to reflect the BGP routes.

                  This issue can be solved if you remove the redistribute static command under the BGP process to avoid the prioritization of floating static routes over BGP routes.
                  uh, chính xác nhưng càng đọc thì mới thấy thằng CISCO cũng khùng thiệt, người ta cần redistribute static mà, kêu remove đi thì nói chuyện gì nữa.

                  vậy nếu thay redistribute bằng network có giải quyết được vấn đề ko? câu trả lời là ko.

                  Vấn đề nằm ở chỗ BGP table & global table đó, mình cần một sự giải thích chính xác hơn & giải pháp tối ưu hơn trong thực tế
                  > Ping CCNA
                  Sending to CISCO.....Please wait.....

                  Cho thuê CCIE LAB RS & SEC online giá rẻ đây (250k/6h for RS & 350k/6h for SEC)

                  RS: R2611, R1841, SW3550/3560
                  SEC: R2611, R2811, ASA5510 (Sec plus), IPS4235, SW3560

                  Timeslots (GMT+7) - Vietnam (8h00 - 7h50+1)
                  TS1.VN : 08h00 - 13h50
                  TS2.VN : 14h00 - 19h50
                  TS3.VN : 20h00 - 01h50
                  TS4.VN : 02h00 -07h50

                  Mọi chi tiết xin liên hệ vulevy (at) yahoo (dot) fr

                  Comment


                  • #11
                    Hi,

                    Ko ai thảo luận nữa hả. Vấn đề này thú vị mà.
                    > Ping CCNA
                    Sending to CISCO.....Please wait.....

                    Cho thuê CCIE LAB RS & SEC online giá rẻ đây (250k/6h for RS & 350k/6h for SEC)

                    RS: R2611, R1841, SW3550/3560
                    SEC: R2611, R2811, ASA5510 (Sec plus), IPS4235, SW3560

                    Timeslots (GMT+7) - Vietnam (8h00 - 7h50+1)
                    TS1.VN : 08h00 - 13h50
                    TS2.VN : 14h00 - 19h50
                    TS3.VN : 20h00 - 01h50
                    TS4.VN : 02h00 -07h50

                    Mọi chi tiết xin liên hệ vulevy (at) yahoo (dot) fr

                    Comment


                    • #12
                      Hi Levy!
                      Mình muốn hỏi rõ một chút về vấn đề này.
                      Trên R2,R3 2 static route đều được redistribute vào BGP?. Nếu có thể bạn đưa lên hiện tượng bạn gặp phải. Bạn viết trong điều kiện bình thường:
                      1. Điều kiện bình thường
                      - Trên R1 thấy R3-lo bằng iBGP qua R2 (tức là dùng iBGP thay vì static)
                      - Trên R2 thấy R3-lo bằng static.

                      Mình đã lab trường hợp này và thấy không như vậy: khi redistribute static. Routing Table vẫn nhận static.

                      Thanks

                      Comment


                      • #13
                        hi Levy, sorry mình hiểu sai vấn đề bạn đưa ra, đây là câu hỏi :D.

                        Vấn đề này mình nghĩ phải sử dụng cả weight và AD.

                        trên R1: cấu hình static route với AD 210, đồng thời cấu hình route-map R2-in in cho peer iBGP tăng weight của route R3 nhận được từ R2.

                        Trường hợp này phải để AD của static route > distance iBGP để static route bị overwrite bởi BGP route.

                        (đã test)
                        kết quả:
                        DK1 binhf thuongwf:
                        Tren R1:
                        R1#sib
                        *Apr 21 03:44:07.811: %SYS-5-CONFIG_I: Configured from console by console
                        BGP table version is 29, local router ID is 10.1.23.2
                        Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
                        r RIB-failure, S Stale
                        Origin codes: i - IGP, e - EGP, ? - incomplete

                        Network Next Hop Metric LocPrf Weight Path
                        *>i3.3.3.0/24 10.1.12.1 0 100 40000 i
                        R1#
                        R1#sir
                        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

                        3.0.0.0/24 is subnetted, 1 subnets
                        B 3.3.3.0 [200/0] via 10.1.12.1, 00:01:24
                        10.0.0.0/24 is subnetted, 2 subnets
                        C 10.1.12.0 is directly connected, FastEthernet0/0
                        C 10.1.23.0 is directly connected, FastEthernet0/1

                        Tren R2:
                        R2#sib
                        BGP table version is 17, local router ID is 10.1.13.1
                        Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
                        r RIB-failure, S Stale
                        Origin codes: i - IGP, e - EGP, ? - incomplete

                        Network Next Hop Metric LocPrf Weight Path
                        *> 3.3.3.0/24 10.1.13.3 0 32768 i
                        R2#sir
                        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

                        3.0.0.0/24 is subnetted, 1 subnets
                        S 3.3.3.0 [1/0] via 10.1.13.3, FastEthernet0/1
                        10.0.0.0/24 is subnetted, 2 subnets
                        C 10.1.13.0 is directly connected, FastEthernet0/1
                        C 10.1.12.0 is directly connected, FastEthernet0/0

                        DK2)
                        Khi shutdown cong R2-R3


                        Tren R1:
                        R1#
                        R1#sib
                        BGP table version is 31, local router ID is 10.1.23.2
                        Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
                        r RIB-failure, S Stale
                        Origin codes: i - IGP, e - EGP, ? - incomplete

                        Network Next Hop Metric LocPrf Weight Path
                        *> 3.3.3.0/24 10.1.23.3 0 32768 ?
                        R1#sir
                        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

                        3.0.0.0/24 is subnetted, 1 subnets
                        S 3.3.3.0 [210/0] via 10.1.23.3
                        10.0.0.0/24 is subnetted, 2 subnets
                        C 10.1.12.0 is directly connected, FastEthernet0/0
                        C 10.1.23.0 is directly connected, FastEthernet0/1

                        Tren R2:
                        R2#sib
                        BGP table version is 19, local router ID is 10.1.13.1
                        Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
                        r RIB-failure, S Stale
                        Origin codes: i - IGP, e - EGP, ? - incomplete

                        Network Next Hop Metric LocPrf Weight Path
                        *>i3.3.3.0/24 10.1.12.2 0 100 0 ?
                        R2#sir
                        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

                        3.0.0.0/24 is subnetted, 1 subnets
                        B 3.3.3.0 [200/0] via 10.1.12.2, 00:01:10
                        10.0.0.0/24 is subnetted, 1 subnets
                        C 10.1.12.0 is directly connected, FastEthernet0/0

                        DK binh thuong)
                        no shut R3-R3

                        Tren R1:
                        R1#sib
                        BGP table version is 32, local router ID is 10.1.23.2
                        Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
                        r RIB-failure, S Stale
                        Origin codes: i - IGP, e - EGP, ? - incomplete

                        Network Next Hop Metric LocPrf Weight Path
                        *>i3.3.3.0/24 10.1.12.1 0 100 40000 i
                        R1#sir
                        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

                        3.0.0.0/24 is subnetted, 1 subnets
                        B 3.3.3.0 [200/0] via 10.1.12.1, 00:00:05
                        10.0.0.0/24 is subnetted, 2 subnets
                        C 10.1.12.0 is directly connected, FastEthernet0/0
                        C 10.1.23.0 is directly connected, FastEthernet0/1

                        Tren R2:
                        R2#sib
                        BGP table version is 21, local router ID is 10.1.13.1
                        Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
                        r RIB-failure, S Stale
                        Origin codes: i - IGP, e - EGP, ? - incomplete

                        Network Next Hop Metric LocPrf Weight Path
                        *> 3.3.3.0/24 10.1.13.3 0 32768 i
                        R2#sir
                        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

                        3.0.0.0/24 is subnetted, 1 subnets
                        S 3.3.3.0 [1/0] via 10.1.13.3, FastEthernet0/1
                        10.0.0.0/24 is subnetted, 2 subnets
                        C 10.1.13.0 is directly connected, FastEthernet0/1
                        C 10.1.12.0 is directly connected, FastEthernet0/0


                        thanks

                        Comment


                        • #14
                          Originally posted by bachhm View Post
                          hi Levy, sorry mình hiểu sai vấn đề bạn đưa ra, đây là câu hỏi :D.

                          Vấn đề này mình nghĩ phải sử dụng cả weight và AD.

                          trên R1: cấu hình static route với AD 210, đồng thời cấu hình route-map R2-in in cho peer iBGP tăng weight của route R3 nhận được từ R2.

                          Trường hợp này phải để AD của static route > distance iBGP để static route bị overwrite bởi BGP route.

                          (đã test)
                          kết quả:
                          DK1 binhf thuongwf:
                          Tren R1:
                          R1#sib
                          *Apr 21 03:44:07.811: %SYS-5-CONFIG_I: Configured from console by console
                          BGP table version is 29, local router ID is 10.1.23.2
                          Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
                          r RIB-failure, S Stale
                          Origin codes: i - IGP, e - EGP, ? - incomplete

                          Network Next Hop Metric LocPrf Weight Path
                          *>i3.3.3.0/24 10.1.12.1 0 100 40000 i
                          R1#
                          R1#sir
                          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

                          3.0.0.0/24 is subnetted, 1 subnets
                          B 3.3.3.0 [200/0] via 10.1.12.1, 00:01:24
                          10.0.0.0/24 is subnetted, 2 subnets
                          C 10.1.12.0 is directly connected, FastEthernet0/0
                          C 10.1.23.0 is directly connected, FastEthernet0/1

                          Tren R2:
                          R2#sib
                          BGP table version is 17, local router ID is 10.1.13.1
                          Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
                          r RIB-failure, S Stale
                          Origin codes: i - IGP, e - EGP, ? - incomplete

                          Network Next Hop Metric LocPrf Weight Path
                          *> 3.3.3.0/24 10.1.13.3 0 32768 i
                          R2#sir
                          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

                          3.0.0.0/24 is subnetted, 1 subnets
                          S 3.3.3.0 [1/0] via 10.1.13.3, FastEthernet0/1
                          10.0.0.0/24 is subnetted, 2 subnets
                          C 10.1.13.0 is directly connected, FastEthernet0/1
                          C 10.1.12.0 is directly connected, FastEthernet0/0

                          DK2)
                          Khi shutdown cong R2-R3

                          Tren R1:
                          R1#
                          R1#sib
                          BGP table version is 31, local router ID is 10.1.23.2
                          Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
                          r RIB-failure, S Stale
                          Origin codes: i - IGP, e - EGP, ? - incomplete

                          Network Next Hop Metric LocPrf Weight Path
                          *> 3.3.3.0/24 10.1.23.3 0 32768 ?
                          R1#sir
                          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

                          3.0.0.0/24 is subnetted, 1 subnets
                          S 3.3.3.0 [210/0] via 10.1.23.3
                          10.0.0.0/24 is subnetted, 2 subnets
                          C 10.1.12.0 is directly connected, FastEthernet0/0
                          C 10.1.23.0 is directly connected, FastEthernet0/1

                          Tren R2:
                          R2#sib
                          BGP table version is 19, local router ID is 10.1.13.1
                          Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
                          r RIB-failure, S Stale
                          Origin codes: i - IGP, e - EGP, ? - incomplete

                          Network Next Hop Metric LocPrf Weight Path
                          *>i3.3.3.0/24 10.1.12.2 0 100 0 ?
                          R2#sir
                          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

                          3.0.0.0/24 is subnetted, 1 subnets
                          B 3.3.3.0 [200/0] via 10.1.12.2, 00:01:10
                          10.0.0.0/24 is subnetted, 1 subnets
                          C 10.1.12.0 is directly connected, FastEthernet0/0

                          DK binh thuong)
                          no shut R3-R3

                          Tren R1:
                          R1#sib
                          BGP table version is 32, local router ID is 10.1.23.2
                          Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
                          r RIB-failure, S Stale
                          Origin codes: i - IGP, e - EGP, ? - incomplete

                          Network Next Hop Metric LocPrf Weight Path
                          *>i3.3.3.0/24 10.1.12.1 0 100 40000 i
                          R1#sir
                          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

                          3.0.0.0/24 is subnetted, 1 subnets
                          B 3.3.3.0 [200/0] via 10.1.12.1, 00:00:05
                          10.0.0.0/24 is subnetted, 2 subnets
                          C 10.1.12.0 is directly connected, FastEthernet0/0
                          C 10.1.23.0 is directly connected, FastEthernet0/1

                          Tren R2:
                          R2#sib
                          BGP table version is 21, local router ID is 10.1.13.1
                          Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
                          r RIB-failure, S Stale
                          Origin codes: i - IGP, e - EGP, ? - incomplete

                          Network Next Hop Metric LocPrf Weight Path
                          *> 3.3.3.0/24 10.1.13.3 0 32768 i
                          R2#sir
                          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

                          3.0.0.0/24 is subnetted, 1 subnets
                          S 3.3.3.0 [1/0] via 10.1.13.3, FastEthernet0/1
                          10.0.0.0/24 is subnetted, 2 subnets
                          C 10.1.13.0 is directly connected, FastEthernet0/1
                          C 10.1.12.0 is directly connected, FastEthernet0/0


                          thanks
                          Hi, mình ko check 100% câu trả lời của bạn nhưng giải pháp WEIGHT thì có bạn đề xuất rồi & mình xác nhận rằng đó là 1 giải pháp tồi (nhưng đúng).

                          Bạn có giải pháp nào khác ko?

                          Chú ý ko cần post lên cả bài LAB, chỉ cần giải thích hợp lý là được

                          Thân
                          > Ping CCNA
                          Sending to CISCO.....Please wait.....

                          Cho thuê CCIE LAB RS & SEC online giá rẻ đây (250k/6h for RS & 350k/6h for SEC)

                          RS: R2611, R1841, SW3550/3560
                          SEC: R2611, R2811, ASA5510 (Sec plus), IPS4235, SW3560

                          Timeslots (GMT+7) - Vietnam (8h00 - 7h50+1)
                          TS1.VN : 08h00 - 13h50
                          TS2.VN : 14h00 - 19h50
                          TS3.VN : 20h00 - 01h50
                          TS4.VN : 02h00 -07h50

                          Mọi chi tiết xin liên hệ vulevy (at) yahoo (dot) fr

                          Comment


                          • #15
                            Toi khong doc het chi tiet cac post cua cac ban nen khong biet da co ai de nghi nhu the nay chua. Neu day khong la 1 phan bat buoc cua bai test va neu lo0 cua R3 la /32 thi o R1 minh co the config static route cho lo0 voi /24 hay bat cu mask nao mien la less than 32. Tren nguyen tac ve routing thi duong den R3 se di qua nga R2 mac du iBGP=200 vi day la "more specific route" ma no co the hoc duoc tu R3.
                            Last edited by them huyen; 23-04-2010, 05:30 AM.
                            Work all day, sleep all night.

                            Comment

                            • Working...
                              X