码迷,mamicode.com
首页 > 其他好文 > 详细

尝试在LwIP中实现静态路由表

时间:2017-09-30 10:08:29      阅读:447      评论:0      收藏:0      [点我收藏+]

标签:href   修改   1.3   ip route   静态路由   car   def   ipa   ted   

在lwIP中实现路由表或转发表,让SNMP读取

IP中的路由表或转发表MIB经历了一些变化,如下:

最早的MIB是RFC1156,1990年,叫ipRoutingTable,

后来的MIB II是RFC1213,1991年,在ipRoutingTable表项中增加了掩码。

4.1.1.  RFC 1213,1991年,最初提出ipRouteTable

   The ipRouteTable object was originally defined in RFC 1213 [RFC1213].
   It was updated by ipForwardTable in RFC 1354 [RFC1354].

4.1.2.  RFC 1354,(IP Forwarding Table MIB)1992年,由ipRouteTable修改为ipForwardTable,并增加ipForwardNumber(转发表条数)

   The ipForwardTable object replaced the ipRouteTable object from RFC
   1213.  It was in turn obsoleted by the ipCidrRouteTable defined in
   RFC 2096 [RFC2096].

   In addition, RFC 1354 introduced ipForwardNumber.  This object
   reflects the number of entries found in ipForwardTable.  It was
   obsoleted by ipCidrRouteNumber, defined in RFC 2096.

4.1.3.  RFC 2096

   In RFC 2096, the ipCidrRouteTable and ipCidrRouteNumber were
   introduced.  The ipCidrRouteTable object supports multipath IP routes
   having the same network number but differing network masks.  The
   number of entries in that table is reflected in ipCidrRouteNumber.
   These objects are deprecated by the definitions contained in this MIB
   definition.

4.1.4.  RFC 2011 and 2465

   RFC 2011 [RFC2011] contains the ipRoutingDiscards object, which
   counts the number of valid routes that have been removed from the
   ipCidrRouteTable object.  The corresponding ipv6DiscardedRoutes
   object is defined in RFC 2465 [RFC2465].  These objects are
   deprecated in favor of the version-independent object
   inetCidrRouteDiscards defined in this MIB.

 

尝试在LwIP中实现静态路由表

标签:href   修改   1.3   ip route   静态路由   car   def   ipa   ted   

原文地址:http://www.cnblogs.com/yanhc/p/7613501.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!