Score:0

netplan equivalent of ip rule add oif eno5 lookup 5000

km flag

In a netplan yaml configuration file like this one:

network:
  version: 2
  renderer: networkd
  ethernets:
    eno5:
      dhcp4: false
      dhcp6: false
      link-local: [  ]
      addresses:
      - xxx.xxx.xxx.2/24                     
      # gateway4: xxx.xxx.xxx.1
      nameservers:
        addresses:
        - 8.8.8.8
        - 8.8.4.4
      routes:
        - to: 0.0.0.0/0
          via: xxx.xxx.xxx.1
          metric: 500
          table: 5000
      routing-policy:
        - from: 0.0.0.0/0
          interface: eno5
          priority: 501
        - from: xxx.xxx.xxx.2
          table: 5000
          priority: 512

I need to manually enter ip rule add oif eno5 lookup 5000 so that I can do a ping -I eno5 google.com.

Please let me know if there is a way to insert this in the yaml file. I have tried the followings to no vail:

    - from: 0.0.0.0/0
      interface: eno5
      priority: 501

and

    - from: 0.0.0.0/0
      oif: eno5
      priority: 501
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.