nanog mailing list archives
Re: VRF/MPLS on Linux
From: Simon Perreault <simon.perreault () viagenie ca>
Date: Wed, 24 Aug 2011 13:40:50 -0400
On 2011-08-24 13:37, Jussi Peltola wrote:
Just FYI: on OpenBSD you can set the VRF (aka "routing table" or "routing domain") per socket with code like this: int s, table; s = socket(...); table = 123; setsockopt(s, IPPROTO_IP, SO_RTABLE, &table, sizeof(table));Or exec your commands wrapped in route -T$TABLE exec $* Caveat: ipv6 vrf's did not work the last time I tried, and I think they still don't.
The fix for that was committed to HEAD recently. I think it's going to be part of 5.0 or 5.1. Effectively it means s/IPPROTO_IP/SOL_SOCKET/ in the example code above. Simon -- DTN made easy, lean, and smart --> http://postellation.viagenie.ca NAT64/DNS64 open-source --> http://ecdysis.viagenie.ca STUN/TURN server --> http://numb.viagenie.ca
Current thread:
- Re: VRF/MPLS on Linux, (continued)
- Re: VRF/MPLS on Linux Brian Raaen (Aug 23)
- RE: VRF/MPLS on Linux Nathan Eisenberg (Aug 23)
- Re: VRF/MPLS on Linux Brian Raaen (Aug 23)
- Re: VRF/MPLS on Linux Sergey V . Lobanov (Aug 23)
- Re: VRF/MPLS on Linux Dan White (Aug 23)
- Re: VRF/MPLS on Linux Mike Jones (Aug 23)
- Re: VRF/MPLS on Linux Glen Turner (Aug 23)
- Re: VRF/MPLS on Linux Brian Raaen (Aug 24)
- Re: VRF/MPLS on Linux Hannes Frederic Sowa (Aug 24)
- Re: VRF/MPLS on Linux Simon Perreault (Aug 24)
- Re: VRF/MPLS on Linux Jussi Peltola (Aug 24)
- Re: VRF/MPLS on Linux Simon Perreault (Aug 24)
- Re: VRF/MPLS on Linux Hannes Frederic Sowa (Aug 24)
- Re: VRF/MPLS on Linux Brian Raaen (Aug 26)
- Re: VRF/MPLS on Linux Brian Raaen (Aug 24)
- Re: VRF/MPLS on Linux Jared Mauch (Aug 24)
- Re: VRF/MPLS on Linux Eduardo Schoedler (Aug 24)