Skip to content

Outgoing IP / OnLink Default Route #6903

Answered by smira
dedene asked this question in Q&A
Mar 2, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You can add link-scope route by adding a route without a gateway, in your case you need something like I guess:

interfaces:
      - interface: eth0 
        addresses:
          - a.b.c.d/32
        routes:
          - gateway: 172.31.1.1
          - network: 172.31.1.1/32

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@smira
Comment options

smira Mar 2, 2023
Maintainer

@dedene
Comment options

Answer selected by smira
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants