ON THIS PAGE
Configuring Settings on Host OS
This chapter provides information on tuning of settings on host OS to enable advanced features or to increase the scale of cRPD functionality.
Configuring ARP Scaling
cRPD uses a static route to forward traffic for routes destined to interfaces. You need to create a static route and specify the next-hop address.
To configure the cRPD container in static routing mode:
Configuring OSPFv2/v3
To allow more number of OSPFv2/v3 adjacencies on cRPD:
root@host:~# sysctl -w net.ipv4.igmp_max_memberships=1000
Configuring MPLS
To configure MPLS:
Adding MPLS Routes
To add MPLS routes to host using the iproute2
utility:
Adding Routes with MPLS label
To add routes to host by encapsulating the packets with
MPLS label using the iproute2
utility:
Creating a VRF device
To instantiate a VRF device and associate it with a table:
Assigning a Network Interface to a VRF
Network interfaces are assigned to a VRF by enslaving the netdevice to a VRF device. On enslavement, connected and local routes are automatically moved to the table associated with the VRF device.
To assign a network interface to a VRF:
root@host:~#ip link set dev <name>
master <name>
root@host:~#ip link set dev eth0 master mgmt
Viewing the Devices assigned to VRF
To view the devices:
root@host:~#ip link show vrf <name>
root@host:~#ip link show vrf red
root@host:~#ip link show master <NAME>
Viewing Neighbor Entries to VRF
To list the neighbor entries associated with devices enslaved to a VRF device:
root@host:~#ip [-6] neigh show vrf
<NAME>
root@host:~#ip neigh show vrf red
root@host:~#ip -6 neigh show vrf red
root@host:~#ip [-6] neigh show master
<NAME>
Viewing Addresses for a VRF
To show addresses for interfaces associated with a VRF:
root@host:~#ip addr show vrf <NAME>
root@host:~#ip addr show vrf red
root@host:~#ip addr show master <NAME>
Viewing Routes for a VRF
To view routes for a VRF:
Removing Network Interface from a VRF
Network interfaces are removed from a VRF by breaking the enslavement to the VRF device
root@host:~# ip link set dev NAME
nomaster
After removing the network interface, connected routes are moved to the default table and local entries are moved to the local table.