readme.iproute2

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

IPROUTE2
31
字号
MPLS enable iproute2--------------------The 'ip' utility that is a part of iproute2 is used to add/delete/modifythe IPv4/IPv6 routing table and interface table.  With this patch itcan add LSPs as the nexthop for an IPv4 route.  This patch also addsthe 'mpls' utility which is the command line utility used toadd/delete/modify NLFE/ILM/XC/Tunnels.Run it------After compiling and installing the MPLS enabled version of iproute, you willhave a new command 'mpls' and a new nexthop option for the 'ip route' command.Here is a simple example of how to use 'mpls' and the new nexthopoption abailble for 'ip route':    # mpls nhlfe add key 0 instructions push gen 16 nexthop eth0 ipv4 1.1.1.1    Key: 0x00000002    # ip route add 10.0.0.0/8 via 1.1.1.1 mpls 0x2    # mpls nhlfe show    NHLFE entry key 0x00000002 mtu 1496 propagate_ttl            push gen 16 set wlan0 ipv4 1.1.1.1  (0 bytes, 0 pkts, 0 dropped)    # ip route show 10.0.0.0/24    10.0.0.0/24 via 1.1.1.1 dev wlan0 mpls 0x00000002------------------------------------------------------------------------------Copyright by James R. Leu <jleu@mindspring.com> 1999-2005

⌨️ 快捷键说明

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