Interface in VRF Using Netplan

Asked by Jordan Weaver

Is it possible to put an interface into a VRF without defining routes?

Looking to put an interface into it's own table and enable DHCP or get a v6 prefix from SLAAC. Like a dedicated management port that has it's own routes and stays out of the default routing table.
Currently all the netplan docs for VRF/route-policy only put the table on the route.

https://netplan.readthedocs.io/en/latest/netplan-yaml/#properties-for-device-type-vrfs
https://netplan.readthedocs.io/en/latest/netplan-yaml/#default-routes

I tried defining an interface and a vrf without routes but the RA prefix still ends up in the default table.
```
network:
  ethernets:
    enp41np0:
      dhcp6: true
  vrfs:
    vrf101:
      table: 101
      interfaces:
        - enp41np0
```
In fact the 101 table remains empty.
```
root@box:/etc/netplan# ip -6 route show table 101
root@box:/etc/netplan#
```

Pretty sure this is doable with ifupdown, can see it working on Cumulus Linux. Was really hoping to replicate in Netplan.

Thanks!
Jordan

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu netplan.io Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.