Comments (1)
@JADAUN-SINGH Hi, you can refer to the kernel documentation below.
Setup:
-
VRF device is created with an association to a FIB table.
e.g, ip link add vrf-blue type vrf table 10
ip link set dev vrf-blue up -
An l3mdev FIB rule directs lookups to the table associated with the device.
A single l3mdev rule is sufficient for all VRFs. The VRF device adds the
l3mdev rule for IPv4 and IPv6 when the first device is created with a
default preference of 1000. Users may delete the rule if desired and add
with a different priority or install per-VRF rules.Prior to the v4.8 kernel iif and oif rules are needed for each VRF device:
ip ru add oif vrf-blue table 10
ip ru add iif vrf-blue table 10 -
Set the default route for the table (and hence default route for the VRF).
ip route add table 10 unreachable default metric 4278198272This high metric value ensures that the default unreachable route can
be overridden by a routing protocol suite. FRRouting interprets
kernel metrics as a combined admin distance (upper byte) and priority
(lower 3 bytes). Thus the above metric translates to [255/8192]. -
Enslave L3 interfaces to a VRF device.
ip link set dev eth1 master vrf-blueLocal and connected routes for enslaved devices are automatically moved to
the table associated with VRF device. Any additional routes depending on
the enslaved device are dropped and will need to be reinserted to the VRF
FIB table following the enslavement.The IPv6 sysctl option keep_addr_on_down can be enabled to keep IPv6 global
addresses as VRF enslavement changes.
sysctl -w net.ipv6.conf.all.keep_addr_on_down=1 -
Additional VRF routes are added to associated table.
ip route add table 10 ...
More info check: VRF_Linux
from uemacs.
Related Issues (19)
- This isn't an actual issue, I just wanted to say hi to Great Torvalds! HOT 43
- The function unicode_to_utf8 may contain a bug HOT 2
- How do I exit from the editor ? HOT 2
- what is the rationale for not having a undo command? HOT 1
- wrong click.
- C-s and C-x C-s stops uemacs HOT 6
- I want to know something? HOT 3
- What license does uemacs use? HOT 9
- Wrong declaration in dolock? HOT 1
- Good job
- Sample Content
- unwanted trailing blank line on save
- config HOT 1
- Git was released 12 years ago, how do you submit your commit 13 years ago. HOT 1
- How to install in Windows 10? -- Just kidding 😀 HOT 1
- What gives open source the right to take away root user? HOT 5
- How to merge the fixes from forked version? HOT 1
- Bigger filenames should be limited to 127 for now HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uemacs.