readme.ebtables

来自「一个可以实现MPLS实验的linux源代码.你不仅可以实现单层标签的转发,还可以」· EBTABLES 代码 · 共 32 行

EBTABLES
32
字号
MPLS enabled Ebtables---------------------Ebtables is used to do all sorts of "weird" things with Ethernet frames.  Withthis patch, traffic you can describe via ebtables, can be mapped onto an LSP.Run it------After compiling and installing the MPLS enabled version of ebtables, you willhave a new target which has the syntax:-j mpls --nhlfe <key>Here is an example of how to redirect ethernet frames from eth1 onto an LSPwith key 0x2:brctl addbr br0brctl addif br0 eth1ip link set eth1 upip link set br0 upebtables -t nat -A PREROUTING -i eth1 -j mpls --nhfle 0x2!!NOTE You MUST use the bridge interface!!The key 0x2 comes from the output of 'mpls' when creating a NHLFE (seeREAME.iproute2 for more info)------------------------------------------------------------------------------Copyright by James R. Leu <jleu@mindspring.com> 1999-2005

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?