• 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.

OSPF default-information originate route-map

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

  • OSPF default-information originate route-map

    Có ai đang làm lab OSPF thì thử chức năng condition map này xem sao !

    Hi:

    What about this:

    router ospf 10
    ...
    default-information originate route-map no_exist128

    route-map no_exist128 deny 10
    match ip address 1
    route-map no_exist128 permit 20


    access-list 1 permit 128.10.1.0 255.255.255.0


    Regards

    Juan Faure Ferrer
    email: jfaure@sztele.com

    Lmnea de Negocio de Telematica y CC
    Ingeniero de Integracisn de Redes y Sistemas
    ----------------------------------------------------------------------------

    SOLUZIONA TELECOMUNICACIONES
    Servicios Profesionales de UNION FENOSA
    Jerez, 3
    28016 MADRID
    tel 91 579 30 00 fax 91 350 72 83
    ---------------------------------------------------------------------------




    Sage Vadi
    <sagevadi@yaho Para: Groupstudy
    o.co.uk> <dongweylee1@attbi.com>,
    Enviado por: ccielab@groupstudy.com
    nobody@groupst cc:
    udy.com Asunto: Re: OSPF default-information
    originate route-map

    08/04/03 08:28
    Por favor,
    responda a
    Sage Vadi






    Hello,

    To me this sounds like conditional advertising that
    can be done with BGP.

    I do not see how one can do this, I do not know of any
    Cisco tweak with conditional advertising on OSPF.

    I would be enligtened to know if you received a
    response detailing how this is possible.

    rgds,
    Sage



    --- Groupstudy <dongweylee1@attbi.com> wrote: > Hi,
    All:
    >
    > router ospf 10
    > ...
    > default-information originate route-map exist128
    >
    > route-map exist128 permit 10
    > match ip address 1
    >
    > access-list 1 permit 128.10.1.0 255.255.255.0
    >
    > This configuration causes the router to propagate
    > the default route to the
    > rest of OSPF domain
    > if the network 128.10.1.0/24 is in the routing
    > table.
    >
    > How about the opposite scenario? How to configure
    > the route-map nonexist128
    > to make the router
    > to propagate the default route if that network is
    > NOT in the routing
    > table??
    >
    > Appreciate any advice. Thanks.

    __________________________________________________
    Yahoo! Plus
    For a better Internet experience

  • #2
    lệnh quảng cáo có điều kiện này có ý nghĩa như sau:

    kiểm tra bảng route. nếu trong bảng route có network 128.10.1.0 thì sẽ quảng cáo default route cho các router trong area.

    như vậy, cách định nghĩa route map trong trường hợp này sẽ là

    router ospf 10
    ...
    default-information originate route-map no_exist128

    route-map no_exist128 permit 10
    match ip address 1

    access-list 1 permit 128.10.1.0 255.255.255.0

    Theo em thì ko có cách dùng phủ định trong ospf, nghĩa là "nếu không có route này thì đừng quảng cáo default-route" . Cách này chỉ có trong BGP mà thôi.

    xin mọi người cho ý kiến,

    Comment


    • #3
      Mọi người discuss thêm vấn đề này nhé:

      nếu không dùng từ khoá always trong lệnh:
      "default-information originate route-map exist_128 " có ý nghĩa: quảng cáo default route nếu có route 128 trong bảng routing.

      Tuy nhiên nếu ta dùng từ khoá always, ý nghĩa của lệnh sẽ thay đổi ra sao ?:
      default-information originate always route-map exist_128
      nếu đã có từ always rồi thì route-map để làm gì ?

      Thêm vào đó route trong route-map có bắt buộc phải là OSPF route hay có thể là route từ các protocol khác ?

      Comment


      • #4
        Re: OSPF default-information originate route-map

        Duoi day la mot vi du ve su dung always trong defaul-info route-map.

        Subject: OSPF conditional default route
        From: "Scott Livingston" <scottl@xxxxxxxxxxxxxxxxx>
        Date: Thu, 25 Jul 2002 09:06:38 -0500

        --------------------------------------------------------------------------------

        Good Morning,

        Before leaving my house this today I had some time to play around w/
        some OSPF and found something interesting. This has probably been
        posted here before, I might be the last to know about it, or I am just
        flat out wrong and wasn't awake enough while I was playing.

        Anyway, I went to configure 'default-information originate always
        route-map CONDITIONAL-&-METRIC' on router B and decided to verify if
        what Dr. Bill said on p. 166 of his book (Cisco OSPF Command and
        Configuration Handbook) was true. Bill said, "If the keyword always is
        used, the default route will be advertised regardless of the conditions
        in the route map."

        When I set up my configs as you see below I verified that I was getting
        my 0.0.0.0/0 on all routers downstream from router B. I then pulled the
        plug on segment 2, which is the conditional subnet in my route-map. If
        what Bill said is true then I should still see the default-route in all
        my routers because I used the 'always' keyword in the command string.
        What I have found is that once I pull the plug on seg2 the entire
        network loses the default-route that router B was generating.

        So tell me; is Dr. Bill wrong? Did I misconfigure something?

        Here is the partial topology:


        -------- OSPF -------- --------
        | | | | | RIP | |
        | A |----------|---------| | | | |
        | | | | B |----------|------| c |
        | | | | | | |
        | | | | | |
        -------- seg1 7.7.7.0/29 -------- seg2 45.2.2.0/30 --------


        Router B
        ---------
        !
        router ospf 10
        log-adjacency-changes
        summary-address 70.2.0.0 255.255.248.0
        redistribute rip subnets
        network 7.7.7.2 0.0.0.0 area 1
        default-information originate always route-map CONDITIONAL-&-METRIC
        distribute-list 20 out rip
        !
        access-list 1 permit 45.2.2.0 0.0.0.3
        !
        route-map CONDITIONAL-&-METRIC permit 10
        match ip address 1
        set metric 77
        set metric-type type-1
        !


        Router A
        ---------
        router ospf 10
        log-adjacency-changes
        network 7.7.7.1 0.0.0.0 area 1



        -Scott

        Comment


        • #5
          anh Hai,

          Bill Parkhust vẫn đúng. Khi có từ khóa always, default route sẽ luôn được tạo ra. Route-map trong trường hợp này, theo em, được dùng để set metric của default-route.

          còn trong scenario của scott, em không rõ lắm sơ đồ mạng.

          Comment


          • #6
            Re: OSPF default-information originate route-map

            Tôi có ý kiến không biết có đúng không?

            Vì scot không có dòng lệnh deault true:
            route-map no_exist128 permit 20

            như trong cấu hình của Bill Parkhust, nên route map no_exist128 của scot trả vể kết quả là false chứ không là true. Nên lệnh deault-information originate không được thực hiện.

            Ngoài ra, tôi nghĩ:
            - route-map dùng để làm điều kiện để thực hiện một cmd hay không.
            - Còn keyword always chỉ được xét đến trong quá trình thực hiện lệnh đó.

            Comment


            • #7
              heke,

              vậy là bây giờ đã có hai khuynh hướng có thể cho từ khóa always. Em xin tóm tắt lại:

              1. Từ khóa always sẽ làm cho lệnh default-information được thực hiện. Bất chấp kết quả logic của route-map. Bill Parkhust và sinhviênngheo thuộc nhóm này. ;-)
              2. Route-map là điều kiện để thực hiện lệnh. Từ khóa always chỉ xét trong quá trình thực hiện lệnh. Heke và Haiphung tthuộc về nhóm này.

              Vậy, ý kiến của các CCIE và mọi người còn lại như thế nào? Xin cho biết ý kiến.

              cám ơn,

              Comment


              • #8
                Re: OSPF default-information originate route-map

                Còn câu là OSPF route hay không của anh Hải

                Tôi nghĩ đó là route được OSPF process install vào routing table.
                Vì không tìm thấy tài liệu nào nói đến, nên tôi mượn của lệnh distribute-list (nên không chắc lắm):

                Benefits of OSPF Route Map-Based Filtering
                Users can define a route map to prevent OSPF routes from being added to the routing table. This filtering happens at the moment when OSPF is installing the route in the routing table.

                Và trong lệnh default-information originate:
                route-map map-name (Optional) Routing process will generate the default route if the route map is satisfied.

                Nên tôi nghĩ khi cấu hình có lệnh default-information originate có điều kiện (route-map), thì khi install mỗi route vào routing table, OSPF process sẽ:
                - kiểm tra điều kiện route-map.
                - thực hiện lệnh default-information originate.

                Còn BGP có route-map in và out thì behavior sẽ khác.

                Comment


                • #9
                  Anh ngồi mà suy nghỉ hoài không biết phải giải thích sao trên forum, face-to-face is a lot easier. I'll give it a try anyways.

                  Tất cả là tại không có ai nhắc dến "ip default-network" và "gateway of last resort".

                  Trich từ "default-information originate" command description:

                  "When you use this command for the OSPF process, the DEFAULT NETWORK must reside in the routing table, and you must satisfy the route-map map-name keyword and argument. Use the default-information originate always route-map map-name form of the command when you DO NOT WANT THE DEPENDENCY on the DEFAULT NETWORK in the routing table".

                  Dọc link nầy về default network http://www.cisco.com/warp/customer/1...html#ipnetwork
                  Trich doạn cho ai không thể access

                  "Unlike the ip default-gateway command, you can use ip default-network when ip routing is enabled on the Cisco router. When you configure ip default-network the router considers routes to that network for installation as the gateway of last resort on the router.
                  For every network configured with ip default-network, if a router has a route to that network, that route is flagged as a candidate default route.
                  Example:
                  If you configure ip default-network 198.10.1.0, the routing table changes to the following:
                  2513#show ip route
                  Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
                  D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
                  E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
                  i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default

                  Gateway of last resort is 161.44.192.2 to network 198.10.1.0

                  161.44.0.0 255.255.255.0 is subnetted, 1 subnets
                  C 161.44.192.0 is directly connected, Ethernet0
                  S 161.44.0.0 255.255.0.0 [1/0] via 161.44.192.0
                  S* 198.10.1.0 [1/0] via 161.44.192.2
                  131.108.0.0 255.255.255.0 is subnetted, 1 subnets
                  C 131.108.99.0 is directly connected, TokenRing0

                  Dể ý chử gateway of last resort va S*.

                  Hope it helps

                  Comment


                  • #10
                    Re: OSPF default-information originate route-map

                    Anh CCIE2467,

                    Em cũng thực sự suy nghĩ rất lâu về bài viết của Anh.

                    Em cố gằng hiểu ý đồ của Anh khi đưa hai khái niệm default-network và default-gateway vào chủ đề này, chủ đề thảo luận về cách dùng route-map đối với lệnh default-information originate...

                    Sau khi đọc, em kết luận là "Quan điểm của Anh là Anh thuộc về nhóm 1 của Em - svn, Bill và ccie2467". Nghĩa là, always được dùng để lệnh luôn được thực hiện mà không cần đến route-map. có phải đó là ý kiến của Anh?

                    Cuối cùng, mong anh giải thích ý đồ của anh về "lưu ý về gateway of last resort và S*" trong thread này?

                    Cám ơn,

                    Comment


                    • #11
                      Route-map condition trong trường hợp này la cho DEFAULT NETWORK (S* route hoặc gateway of last resort). Chu khong phai la cho default route 0.0.0.0. Nếu mà default network co trong route table thi router sẻ advertise 0.0.0.0 to neighbor.

                      Comment


                      • #12
                        thanks Anh,

                        Tuy nhiên, dường như em còn một câu hỏi cuối cùng cho thread này: "Anh có thể giải thích cho em về sự khác nhau giữa default-network và default-route". Khi nào thì em dùng default-network?

                        Đây có thể là một khám phá mới đ/v em vì theo em vẫn hiểu xưa nay, default-network chỉ được dùng cho EIGRP/IGRP mà thôi.

                        cám ơn,

                        Comment


                        • #13
                          Em doc cai link về default-network anh gửi, chỉ rỏ lam. Trong trường hợp này, the router ASBR có routing EIGRP/IGRP va OSPF. Trong EIGRP/IGRP routing process có default-network. Muốn propagate default route to OSPF domain. No routing redistribution.

                          Comment


                          • #14
                            default-information originate (OSPF)

                            When you use this command for the OSPF process, the default network must reside in the routing table, and you must satisfy the route-map map-name keyword and argument. Use the default-information originate always route-map map-name form of the command when you do not want the dependency on the default network in the routing table.

                            Cisco offers a wide range of products and networking solutions designed for enterprises and small businesses across a variety of industries.

                            Comment


                            • #15
                              Re: OSPF default-information originate route-map

                              Với đoạn trên ta có thể hiểu: Lệnh default-information originate chỉ thực hiện khi:
                              1. default network tồn tại trong routing table.
                              2. Phải thỏa điều kiện của route-map và các thông số khác.

                              Để không phụ thuộc điều kiện 1, (nhưng phải thỏa 2) dùng default-information originate always route-map map-name.

                              Ngoài ra, đoạn:
                              If you use both the ip default-network and ip route 0.0.0.0 0.0.0.0 commands to configure candidate default networks,...


                              cho thấy ip route 0.0.0.0 0.0.0.0 cũng có khả năng tạo ra default network.

                              Comment

                              Working...
                              X