Router on a stick configuration ( using dot1q ) with vrf configuration on sub-interfaces


Hi, Does cumulus vx support router on a stick configuration ( using dot1q ) with vrf configuration on sub-interfaces ? any examples would be of great help. We would like to use cumulus vx instead of a physical router in our lab to test things if the above mentioned design is supported. Thanks, Vikram

5 replies

Userlevel 4
If you're trying to route between the VRFs, the upstream "router on a stick" device does not have VRFs configured on the sub interfaces... they're merely L2 vlan tagged interfaces at that point. That configuration works. Is that what you're trying to accomplish?
That's exactly what we are trying to accomplish. Any pointers to config snippets would be nice !
Userlevel 4
Using the Network Command Line Utility (NCLU), you could accomplish routing on this stick with the following configuration:

net add interface swp1 bridge vids 10,20,30
net add vlan 10 ip address 192.168.10.254/24
net add vlan 20 ip address 192.168.20.254/24
net add vlan 30 ip address 192.168.30.254/24 # To see the changes you're about about to commit... net pending net commit
This would be a simple example, three vlans, 10,20,30 with SVI's and routing happens automatically.

Thanks Eric
I did the below and it worked fine, the other end of swp1 is connected to another cumulus vx which is trunking. net add interface swp1.101 ip address 10.101.0.1/24 net add interface swp1.102 ip address 10.102.0.1/24 net add interface swp1.201 ip address 10.201.0.1/24 net add interface swp1.202 ip address 10.202.0.1/24 net pending net add vrf dealer1 net add vrf dealer2 net add interface swp1.101 vrf dealer1 net add interface swp1.201 vrf dealer1 net add interface swp1.102 vrf dealer2 net add interface swp1.202 vrf dealer2 net pending net commit