IfState
Routing
Initializing search
    routerkit/ifstate
    • About
    • Documentation
    • Examples
    • Schema
    • ChangeLog
    routerkit/ifstate
    • About
    • Documentation
      • Installation
      • Upgrades
      • Usage
        • CShaper
        • BPF
        • Defaults
        • Hooks
        • Ignore
        • Interfaces
        • Namespaces
        • Routing
        • Sysctl
        • VRRP
    • Examples
    • Schema
    • ChangeLog

    Routing

    The routing setting contains a dictionary to configure routes and PBR1 rules:

    • routes - routes (ip route)
    • rules - PBR1 rules (ip rule)

    Schema description

    routing:
      # route settings (ip route)
      routes:
        - to: 0.0.0.0/0
          via: 192.0.2.1
      # rule settings (ip rule)
      rules:
        - priority: 42
          iif: eno1
          to: 1.1.1.1/32
          action: prohibit
    

    Examples:

    • Policy Based Routing (PBR)
    • Virtual Routing and Forwarding (VRF)

    1. Policy Based Routing ↩↩

    2025-08-03 2025-08-03
    Previous
    Namespaces
    Next
    Sysctl
    Copyright © 2020 - 2026 Thomas Liske