Routing

 View Only
last person joined: 6 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  How to change the route preference on a single network

    Posted 02-17-2014 08:30

    Hi Team,

     

         I am trying to change the route preference for a network that both OSPF and BGP are receiving. However, since OSPF has a lower preference it's being preferred over BGP. I tried configuring a route policy but I am still unable to change the preference for that route in OSPF so it's least preferred. Can you guys please tell me what's incorrect? Thank you

     

    RouterA:

     

     

    syntax error, expecting <command>.
    root@Juniper1> show configuration protocols
    bgp {
    group Internal-AS64512 {
    type internal;
    local-address 11.11.11.11;
    export ADV_NETWORK_BGP;
    neighbor 12.12.12.12;
    }
    }
    ospf {
    import ALLOW_OSPF;
    area 0.0.0.0 {
    interface lo0.11 {
    passive;
    }
    interface fe-0/0/3.0;
    }
    }
    stp;

     

    RouterB:

     

     

    root@Juniper2# show policy-options
    prefix-list LOOPBACK {
    11.11.11.11/32;
    }
    policy-statement ADV_RIP {
    term A {
    from {
    route-filter 2.2.2.2/32 exact;
    }
    then accept;
    }
    }
    policy-statement ALLOW_OSPF {
    term ALLOWED {
    from {
    route-filter 111.111.111.111/32 exact;
    }
    then {
    metric 100;
    preference 190;
    accept;
    }
    }
    }

     

     

    root@Juniper2# show protocols
    bgp {
    group Internal-AS64512 {
    type internal;
    local-address 12.12.12.12;
    neighbor 11.11.11.11;
    }
    }
    ospf {
    import ALLOW_OSPF;
    area 0.0.0.0 {
    interface fe-0/0/3.0;
    interface lo0.12 {
    passive;
    }
    }
    }

     

     

     

    root@Juniper2# run show route

    inet.0: 10 destinations, 11 routes (10 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both

    10.1.12.0/30 *[Direct/0] 1d 20:20:39
    > via fe-0/0/3.0
    10.1.12.2/32 *[Local/0] 1d 20:20:43
    Local via fe-0/0/3.0
    10.1.13.0/30 *[Direct/0] 1d 20:20:39
    > via fe-0/0/4.0
    10.1.13.2/32 *[Local/0] 1d 20:20:43
    Local via fe-0/0/4.0
    11.11.11.11/32 *[OSPF/10] 02:46:05, metric 1
    > to 10.1.12.1 via fe-0/0/3.0
    12.12.12.12/32 *[Direct/0] 02:46:12
    > via lo0.12
    111.111.111.0/24 *[OSPF/10] 02:27:27, metric 1
    > to 10.1.12.1 via fe-0/0/3.0
    [BGP/170] 02:21:45, localpref 100, from 11.11.11.11
    AS path: I
    > to 10.1.12.1 via fe-0/0/3.0
    111.111.111.111/32 *[OSPF/10] 02:27:27, metric 1
    > to 10.1.12.1 via fe-0/0/3.0
    192.168.1.1/32 *[Local/0] 1d 20:20:51
    Reject
    224.0.0.5/32 *[OSPF/10] 1d 20:08:49, metric 1
    MultiRecv

     


    #Juniper
    #SRX
    #policy
    #ospf
    #BGP
    #routing


  • 2.  RE: How to change the route preference on a single network
    Best Answer

    Posted 02-17-2014 13:46

    policy-statement ALLOW_OSPF {
    term ALLOWED {
    from {
    route-filter 111.111.111.111/32 exact;

     

    #replace pattern policy-options policy-statement ALLOW_OSPF 111.111.111.111 with 11.11.11.11



  • 3.  RE: How to change the route preference on a single network

    Posted 02-19-2014 12:27

    Thank you!!