ON THIS PAGE
Configure Settings on cRPD
This chapter provides information about how to tune the settings on cRPD to enable advanced features.
Configure OSPF
Configure Bridged Interfaces
You can configure a logical interface as a trunk port at the [edit
interfaces interface-name unit
logical-unit-number family bridge interface-mode
trunk] hierarchy level.
To configure all the VLAN identifiers to associate with a Layer 2 trunk port,
include the vlan-id-list [vlan-id-numbers ]
statement at the [edit interfaces interface-name unit
logical-unit-number family bridge] hierarchy
level.
Configure Routed VLAN Interfaces
You can configure a routed VLAN interface (RVI) for a private VLAN (P-VLAN).
Configure ISO Interfaces
Configure the ISO family on loopback interfaces that are supporting the IS-IS
protocol by including the family iso statement on the
interface.
Configure IPv6 Interfaces
interface interface-name unit
number family inet6 address
aaaa:bbbb:...:zzzz/nn statement at the
[edit interfaces] hierarchy level.You can also assign multiple IPv6 addresses on the same interface.
user@host# set interfaces
interface-name unit
logical-unit-number family inet6 address
ip-addressConfigure IPv4 Interfaces
To configure an IPv4 address on routers and switches, use the interface
interface-name unit number family
inet address a.b.c.d/nn statement at the
[edit interfaces] hierarchy level.
You can also assign multiple IPv4 addresses on the same interface.
user@host# set interfaces
interface-name unit
logical-unit-number family inet address
ip-addressView Interfaces
Configure Maximum Transmission Unit (MTU)
cRPD uses the Linux MTU definition, where the MTU value represents only the Layer 3 packet size (IP payload) and does not include the Ethernet frame overhead (14-byte Ethernet header + 4-byte FCS). This differs from some traditional Junos OS implementations. When configuring MTU, account for additional overhead from VLAN tags (4 bytes per 802.1Q tag) to ensure proper packet transmission.
cRPD uses the Linux MTU definition, where the MTU value represents only the Layer 3 packet size (IP payload) and does not include the Ethernet frame overhead (14-byte Ethernet header + 4-byte FCS). This differs from some traditional Junos OS implementations. When configuring MTU, account for additional overhead from VLAN tags (4 bytes per 802.1Q tag) to ensure proper packet transmission.
To configure the media MTU:
configure the media MTU:For example, to configure an MTU of 1500 bytes on interface eth1:
user@host# set interfaces eth1 mtu 1500
user@host# set interfaces eth1 unit 0 mtu 1500
When using VLAN tagging, account for the 4-byte 802.1Q tag overhead. For a standard 1500-byte MTU with VLAN tagging, configure:
user@host# set interfaces eth1 mtu 1504
user@host# set interfaces eth1 unit 0 vlan-id 100
user@host# set interfaces eth1 unit 0 mtu 1500
This ensures the interface can accommodate the VLAN tag while maintaining a 1500-byte Layer 3 MTU.
See Also
Configure MAC
mac statement at the [edit interfaces
interface-name] hierarchy level.
user@host# set interfaces
interface-name mac
mac-addressSpecify
the MAC address as six hexadecimal bytes in one of the following
formats: nnnn.nnnn.nnnn (for example,
0011.2233.4455) or
nn:nn:nn:nn:nn:nn (for example,
00:11:22:33:44:55).
Configure gRPC Services
To configure your network device for gRPC services and specify the local certificate used for server authentication, see Enable gRPC Services.
Configure User Authentication Methods
cRPD supports different authentication methods to validate users and devices that attempt to access the router using SSH and gRPC-based services for telemetry data. These methods include local authentication, Tacplus authentication, RADIUS authentication at the [edit system] hierarchy level.
[edit] user@host# set system authentication-order [authentication-methods]
The following are the authentication order options:
-
radius -
tacplus -
password
See Also
Configure TACACS+ Server
To configure the TACACS+ servers.
Configure Static LSPs for MPLS
MPLS is a protocol that uses labels instead of the forwarding table to route packets instead of using IP addresses. To configure MPLS, you must create one or more named paths on the ingress and egress routers. For more information to configure static LSPs on the ingress and an egress router, see Configure Static LSPs and static-label-switched-path
To configure a static LSP on the ingress, the label properties
next-hop, push, and to
are required; the other statements are optional.
To configure the transit statement, the label properties
next-hop and pop | swap are required. The
remaining statements are optional.
To configure a bypass static LSP, the label properties
next-hop, push, and to
are required; the other statements are optional.
Configure Instance Type
To create a virtual routing and forwarding (VRF) device and link it to a VRF table, assign logical interfaces to the VRF. Include the interface name at the [edit routing-instances routing-instance-name] hierarchy level. The connected and local routes are automatically moved to the table associated with the VRF device:
You can configure the following instance type:
-
Layer 3 VPNs require that each PE router has a VPN routing and forwarding (VRF) table for distributing routes within the VPN. To create the VRF table on the router, include the
instance-typestatement and specify the valuevrf. See Configure Routing Instances. -
To enable the virtual-router routing instance, include the
instance-typestatement and specify the value ofvirtual-router. See Configure Virtual-Router. -
To provide support for Layer 2 bridging with a protocol configuration, include the
instance-typestatement and specify the valuevirtual-switch. See Configure a Layer 2 Virtual Switch. -
To configure multiple customer-specific EVPN instances (EVIs) of type, each of which can support a different EVPN service type, include the
instance-typestatement and specify the valuemac-vrf. -
Enable an Ethernet VPN (EVPN) Virtual Private Wire Service (VPWS) on the routing instance, include the
instance-typestatement and specify the valueevpn-vpws.
Assign an IP Address to the Routing Instance
[edit interfaces lo0 unit unit-number
family inet] hierarchy level, see Configure a Logical Unit.View Routes for a VRF
To view routes for a VRF:
root@host> show route
inet6.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
::/96 *[Direct/0] 4d 23:28:51
> via sit0
::127.0.0.1/128 *[Local/0] 4d 23:28:51
Local via sit0
fe80::1/128 *[Direct/0] 4d 23:28:51
> via lo
fe80::200:ff:fe00:0/128
*[Local/0] 4d 23:28:51
Local via ip6tnl0
fe80::1ca8:7cff:fe01:274e/128
*[Local/0] 4d 23:28:49
Local via irb
fe80::4475:46ff:fe30:383f/128
*[Local/0] 4d 23:28:50
Local via lo0.0
fe80::e44e:b4ff:feab:1920/128
*[Local/0] 4d 23:28:51
Local via lsi
ff02::2/128 *[INET6/0] 4d 23:28:51
MultiRecvConfigure Firewall Filters
A firewall is a network security system that monitors and controls the flow of data between devices or networks based on predefined security rules. A firewall's primary purpose is to act as a barrier between a trusted internal network and untrusted external networks, helping to prevent unauthorized access, data breaches, and other cyberthreats.
Firewalls operate by inspecting network traffic at different levels—such as at the packet, connection state, or application layer level—to decide whether to allow, block, or reject communication based on a set of user-configured rules.
cRPD supports firewall capabilities to enhance network security and network
management. The cRPD CLI provides a limited set of configuration hierarchies
within the firewall statement. cRPD evaluates the packets
entering or leaving an interface when input or output traffic at a device
interface is associated with a firewall filter.
You can define firewall filters for different protocol
families-inet, inet6, and
bridge-depending on the type of traffic you want to
control. Stateless firewall filters contain one or more terms, where each term
includes two key components—match conditions and corresponding actions.
To configure a firewall filter on the interfaces:
See Also
Configure Port Mirroring
You can use port mirroring to duplicate traffic from specified interfaces to another interface for inspection, ensuring that monitoring activities do not interfere with live traffic forwarding.
For cRPD, you use the port mirroring configuration in
which the family statement is set to inet or
inet6.
You configure a firewall
filter to establish a policy to select the packets to be mirrored
and send the sample to a port mirroring instance. Instances enable you to mirror
packets to different destinations and use different sampling parameters for each
instance.
To mirror routed packets using port mirroring:
See Also
Configure Policers
cRPD supports traffic policers to measure and control the traffic that enters the network. Policing provides a mechanism to protect against DDoS attacks by setting traffic limits, ensuring network resilience, and maintaining service availability during malicious attacks.
You can configure a policer and apply it as a firewall filter policer at the protocol family on the inet, inet6, or bridge protocol family.
You need to configure the bandwidth-limit and
burst-size-limit parameters on the network traffic to allow
bursts of traffic for short periods.
Traffic policers can be defined using packets per second (pps) with the
pps-limit and packet-burst statements. The
unit of measure for pps-limit is packets per second (pps), and
the unit of measure for packet-burst is packets.
The bandwidth limit parameter is used to determine the average rate limit applied to the traffic, while the burst-size parameter is used to allow for short periods of traffic bursting (back-to-back traffic at average rates that exceed the configured bandwidth limit).
To configure a policer: