Wired Intelligent Edge

last person joined: yesterday 

Bring performance and reliability to your network with the HPE Aruba Networking Core, Aggregation, and Access layer switches. Discuss the latest features and functionality of your switching devices, and find ways to improve security across your network to bring together a mobile-first solution

AOS-CX Simple Route redistribution OSPF-BGP!

This thread has been viewed 13 times
  • 1.  AOS-CX Simple Route redistribution OSPF-BGP!

    EMPLOYEE
    Posted Jul 22, 2020 01:03 PM

    Good day!

     

    AOS-CX Route Redistribution

    Route redistribution is a process that allows a network to use a routing protocol to dynamically route traffic based on information learned from a different routing protocol like OSPF and BGP. Route redistribution helps increase accessibility and control routes within networks.

     

    AOS-CX 10.5 Sample Topology

    Yash_0-1595436678389.png

     

    Step1: Let's configure BGP-CORE

     

    hostname BGPCORE

     

    !#Configure LAG11 to ASBR-1

    interface lag 11

        no shutdown

        ip address 172.16.0.1/30

        lacp mode active

    interface 1/1/1

        no shutdown

        lag 11

    interface 1/1/2

        no shutdown

        lag 11

    !#Configure LAG12 to ASBR-2

    interface lag 12

        no shutdown                                 

        ip address 172.16.0.5/30

        lacp mode active

    interface 1/1/3

        no shutdown

        lag 12

    interface 1/1/4

        no shutdown

        lag 12

     

    !#Configure Loopback

    interface loopback 0

        ip address 172.31.0.1/32

     

    !#Configure BGP AS 65010

    router bgp 65010

        neighbor 172.16.0.2 remote-as 65011

        neighbor 172.16.0.6 remote-as 65011

        address-family ipv4 unicast

            neighbor 172.16.0.2 activate

            neighbor 172.16.0.6 activate

            network 172.16.0.0/30

            network 172.16.0.4/30

            network 172.31.0.1/32

        exit-address-family

    !

     

    Step2: Configure ASBR-1

     

    hostname ASBR-1

     

    !#Configure OSPF and BGP

    interface loopback 0

        ip address 1.1.1.1/32

        ip ospf 1 area 0.0.0.0

    router ospf 1

        router-id 1.1.1.1                                         

        bfd all-interfaces

        redistribute bgp

        area 0.0.0.0

    router bgp 65011

        neighbor 172.16.0.1 remote-as 65010

        address-family ipv4 unicast

            neighbor 172.16.0.1 activate

            neighbor 172.16.0.1 next-hop-self

            redistribute ospf

        exit-address-family

     

    !#Configure Lag1 between ASBR’s

    interface lag 1

        no shutdown

        ip address 10.0.1.1/30

        lacp mode active

        ip ospf 1 area 0.0.0.0

        ip ospf network point-to-point

    interface 1/1/3

        no shutdown

        lag 1

    interface 1/1/4

        no shutdown

        lag 1

    !#Configure Lag11 to BGP-CORE

    interface lag 11                                              

        no shutdown

        ip address 172.16.0.2/30

        lacp mode active

    interface 1/1/1

        no shutdown

        lag 11

    interface 1/1/2

        no shutdown

        lag 11

    !#Configure OSPF-1 and OSPF-2 connected interface

    interface 1/1/5                                               

        no shutdown

        ip address 10.0.1.5/30

        ip ospf 1 area 0.0.0.0

        ip ospf network point-to-point

    interface 1/1/6

        no shutdown

        ip address 10.0.1.9/30

        ip ospf 1 area 0.0.0.0

        ip ospf network point-to-point

     

    Step3: Configure ASBR-2

     

    hostname ASBR-2

     interface loopback 0

        ip address 1.1.1.2/32

        ip ospf 1 area 0.0.0.0

    router ospf 1

        router-id 1.1.1.2

        bfd all-interfaces

        redistribute bgp

        area 0.0.0.0                                              

    router bgp 65011

        neighbor 172.16.0.5 remote-as 65010

        address-family ipv4 unicast

            neighbor 172.16.0.5 activate

            neighbor 172.16.0.5 next-hop-self

            redistribute ospf

        exit-address-family

    !#Configure Lag1 between ASBR’s

    interface lag 1

        no shutdown

        ip address 10.0.1.2/30

        lacp mode active

        ip ospf 1 area 0.0.0.0

        ip ospf network point-to-point 

    interface 1/1/3

        no shutdown

        lag 1

     

    interface 1/1/4

        no shutdown

        lag 1

    !#Configure Lag12 to BGP-CORE

    interface lag 12

        no shutdown

        ip address 172.16.0.6/30

        lacp mode active

    interface 1/1/1

        no shutdown

        lag 12

    interface 1/1/2

        no shutdown

        lag 12

     !#Configure OSPF-1 and OSPF-2 connected interface

    interface 1/1/5

        no shutdown

        ip address 10.0.1.13/30

        ip ospf 1 area 0.0.0.0

        ip ospf network point-to-point

    interface 1/1/6

        no shutdown

        ip address 10.0.1.17/30

        ip ospf 1 area 0.0.0.0

        ip ospf network point-to-point

     

    Step4: Configure OSPF-1

     

    hostname OSPF-1

    !#Configure Loopback and OSPF

    interface loopback 0

        ip address 1.1.2.1/32

        ip ospf 1 area 0.0.0.0

    router ospf 1

        router-id 1.1.2.1

        area 0.0.0.0

    !#Configure OSPF on connected interface

    interface 1/1/1

        no shutdown

        ip address 10.0.1.6/30

        ip ospf 1 area 0.0.0.0

        ip ospf network point-to-point                             

    interface 1/1/2

        no shutdown

        ip address 10.0.1.14/30

        ip ospf 1 area 0.0.0.0

        ip ospf network point-to-point

     

    Step5: Configure OSPF-2

     

    hostname OSPF-2

    !#Configure loopback and OSPF

    interface loopback 0

        ip address 1.1.2.2/32

        ip ospf 1 area 0.0.0.0

    router ospf 1

        router-id 1.1.2.2

        bfd all-interfaces

        area 0.0.0.0

    !#Configure OSPF on connected interface

    interface 1/1/1

        no shutdown

        ip address 10.0.1.10/30

        ip ospf 1 area 0.0.0.0

        ip ospf network point-to-point                            

    interface 1/1/2

        no shutdown

        ip address 10.0.1.18/30

        ip ospf 1 area 0.0.0.0

        ip ospf network point-to-point

     

    VERIFICATION:

     

    ASBR-1# show lldp neighbor-info

     LLDP Neighbor Information

    =========================

    Total Neighbor Entries          : 5

    Total Neighbor Entries Deleted  : 0

    Total Neighbor Entries Dropped  : 0

    Total Neighbor Entries Aged-Out : 0

     

    LOCAL-PORT  CHASSIS-ID         PORT-ID          PORT-DESC               TTL      SYS-NAME   

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

    1/1/1       08:00:09:21:4c:e9  1/1/1            1/1/1                   120      BGPCORE                           

    1/1/2       08:00:09:21:4c:e9  1/1/2            1/1/2                   120      BGPCORE                           

    1/1/3       08:00:09:a8:58:d4  1/1/3            1/1/3                   120      ASBR-2                            

    1/1/4       08:00:09:a8:58:d4  1/1/4            1/1/4                   120      ASBR-2                            

    1/1/5       08:00:09:04:b6:52  1/1/1            1/1/1                   120      OSPF-1                            

    ASBR-1#

     

    ASBR-1# sh ip ospf 1 routes

    Codes: i - Intra-area route, I - Inter-area route

           E1 - External type-1, E2 - External type-2

     

    OSPF Process ID 1 VRF default, Routing Table

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

     

    Total Number of Routes : 10

     

    1.1.1.2/32         (i) area: 0.0.0.0

         via 10.0.1.2 interface lag1, cost 50 distance 110

    1.1.2.1/32         (i) area: 0.0.0.0

         via 10.0.1.6 interface 1/1/5, cost 100 distance 110

    10.0.1.0/30        (i) area: 0.0.0.0

         directly attached to interface lag1, cost 50 distance 110

    10.0.1.4/30        (i) area: 0.0.0.0

         directly attached to interface 1/1/5, cost 100 distance 110

    10.0.1.8/30        (i) area: 0.0.0.0

         directly attached to interface 1/1/6, cost 100 distance 110

    10.0.1.12/30       (i) area: 0.0.0.0

         via 10.0.1.2 interface lag1, cost 150 distance 110

    10.0.1.16/30       (i) area: 0.0.0.0

         via 10.0.1.2 interface lag1, cost 150 distance 110

    172.16.0.0/30      (E2)

         via 10.0.1.2 interface lag1, cost 25 distance 110        

    172.16.0.4/30      (E2)

         via 10.0.1.2 interface lag1, cost 25 distance 110

    172.31.0.1/32      (E2)

         via 10.0.1.2 interface lag1, cost 25 distance 110

     

    ASBR-1#

     

    Reference:

    https://techhub.hpe.com/eginfolib/Aruba/OS-CX_10.04/5200-6702/index.html#book.html

     

     

    Thank you,

    Yash