Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Juniper Cloud-Native Router User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

L3 Routing Protocols

Release: JCNR 23.3
{}
Change Release
date_range 15-Oct-23

Read this topic to know about the L3 routing protocols that are supported by the Juniper Cloud Native Router, including BGP, IS-IS, and OSPF.

Supported L3 protocols

The Juniper Cloud-Native router supports the following L3 routing protocols, each of which can be configured via node annotations at the time of deployment or via the cRPD CLI for a running cRPD pod. Here is an example configuration snippet from the go template with node annotations:

content_copy zoom_out_map
protocols {
    isis {
        interface all;
        {{if and .Env.SRGB_START_LABEL .Env.SRGB_INDEX_RANGE}}
        source-packet-routing {
            srgb start-label {{.Env.SRGB_START_LABEL}} index-range {{.Env.SRGB_INDEX_RANGE}};
            node-segment {
                {{if .Node.srIPv4NodeIndex}}
                ipv4-index {{.Node.srIPv4NodeIndex}};
                {{end}}
                {{if .Node.srIPv6NodeIndex}}
                ipv6-index {{.Node.srIPv6NodeIndex}};
                {{end}}
            }
        }
        {{end}}
        level 1 disable;
    }
}

BGP

BGP is an exterior gateway protocol (EGP) that is used to exchange routing information among routers in different autonomous systems (ASs). BGP routing information includes the complete route to each destination. BGP uses the routing information to maintain a database of network reachability information, which it exchanges with other BGP systems. BGP uses the network reachability information to construct a graph of AS connectivity, which enables BGP to remove routing loops and enforce policy decisions at the AS level. The cloud-native router supports BGP version 4. Here is an example to configure BGP protocol on the cloud-native router via the cRPD shell:
content_copy zoom_out_map
set protocols bgp group CNI type internal
set protocols bgp group CNI local-address 10.0.0.1
set protocols bgp group CNI family inet-vpn unicast
set protocols bgp group CNI family inet6-vpn unicast
set protocols bgp group CNI neighbor 10.0.1.1 peer-as 64512
set protocols bgp group CNI neighbor 10.0.1.1 local-as 64512
set routing-options route-distinguisher-id 10.0.0.1
You can issue the show bgp summary command on the cRPD shell to view the BGP summary information for all routing instances. For example:
content_copy zoom_out_map
user@host> show bgp summary 
Threading mode: BGP I/O
Default eBGP mode: advertise - accept, receive - accept
Groups: 1 Peers: 1 Down peers: 0
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
bgp.l3vpn.0          
                       2          2          0          0          0          0
bgp.l3vpn-inet6.0    
                       2          2          0          0          0          0
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.0.1.1             64512        249        211       0       0     1:32:42 Establ
  bgp.l3vpn.0: 2/2/2/0
  bgp.l3vpn-inet6.0: 2/2/2/0
  jcnr-3.inet.0: 2/2/2/0
  jcnr-3.inet6.0: 2/2/2/0
Refer the BGP User Guide for more information.

IS-IS

The IS-IS protocol is an interior gateway protocol (IGP) that uses link-state information to make routing decisions. IS-IS is a link-state IGP that uses the shortest-path-first (SPF) algorithm to determine routes. IS-IS evaluates the topology changes and determines whether to perform a full SPF recalculation or a partial route calculation (PRC). IS-IS uses hello packets that allow network convergence to occur quickly when network changes are detected. The cloud-native router supports IS-IS.

Here is an example to configure IS-IS protocol on the cloud-native router via the cRPD shell:

content_copy zoom_out_map
set security forwarding-options family iso mode packet-based
set interfaces eno3v0 unit 0 family inet address 10.100.12.1/30
set interfaces eno3v0 unit 0 family iso
set interfaces lo0 unit 0 family inet address 192.168.0.1/32
set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0001.00
set protocols isis interface eno3v0
set protocols isis interface lo0.0

You can issue the show isis adjacency and show isis interface commands to verify the protocol configuration. Refer the IS-IS User Guide for information.

OSPF

OSPF is an interior gateway protocol (IGP) that routes packets within a single autonomous system (AS). OSPF uses link-state information to make routing decisions, making route calculations using the shortest-path-first (SPF) algorithm (also referred to as the Dijkstra algorithm). Each router running OSPF floods link-state advertisements throughout the AS or area that contain information about that router’s attached interfaces and routing metrics. Each router uses the information in these link-state advertisements to calculate the least cost path to each network and create a routing table for the protocol. The cloud-native router supports OSPF version 2 (OSPFv2) and OSPF version 3 (OSPFv3). Here is an example to configure IS-IS protocol on the cloud-native router via the cRPD shell:

content_copy zoom_out_map
set protocols ospf area 0.0.0.0 interface bond0
set protocols ospf area 0.0.0.0 interface lo passive

Once you bring up the pods, verify the OSPF configuration:

content_copy zoom_out_map
show ospf neighbor
Address          Interface              State           ID               Pri  Dead
192.168.123.254  bond0                  Full            123.1.1.254      128    36
content_copy zoom_out_map
show route 1.1.24.24

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

1.1.24.24/32       *[OSPF/10] 00:07:08, metric 2
                    >  to 192.168.123.254 via bond0

Refer the OSPF User Guide for more information.

footer-navigation