Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

386 lines
15 KiB

  1. RFC1354-MIB DEFINITIONS ::= BEGIN
  2. IMPORTS
  3. Gauge, IpAddress
  4. FROM RFC1155-SMI
  5. mib-2, ip
  6. FROM RFC1213-MIB
  7. OBJECT-TYPE
  8. FROM RFC-1212;
  9. -- This MIB module uses the extended OBJECT-TYPE macro as
  10. -- defined in [9].
  11. ipForward OBJECT IDENTIFIER ::= { ip 24 }
  12. ipForwardNumber OBJECT-TYPE
  13. SYNTAX Gauge
  14. ACCESS read-only
  15. STATUS mandatory
  16. DESCRIPTION
  17. "The number of current ipForwardTable entries
  18. that are not invalid."
  19. ::= { ipForward 1 }
  20. -- IP Forwarding Table
  21. -- The IP Forwarding Table obsoletes and replaces the ipRoute
  22. -- Table current in MIB-I and MIB-II. It adds knowledge of
  23. -- the autonomous system of the next hop, multiple next hop
  24. -- support, and policy routing support.
  25. ipForwardTable OBJECT-TYPE
  26. SYNTAX SEQUENCE OF IpForwardEntry
  27. ACCESS not-accessible
  28. STATUS mandatory
  29. DESCRIPTION
  30. "This entity's IP Routing table."
  31. REFERENCE
  32. "RFC 1213 Section 6.6, The IP Group"
  33. ::= { ipForward 2 }
  34. ipForwardEntry OBJECT-TYPE
  35. SYNTAX IpForwardEntry
  36. ACCESS not-accessible
  37. STATUS mandatory
  38. DESCRIPTION
  39. "A particular route to a particular destina-
  40. tion, under a particular policy."
  41. INDEX {
  42. ipForwardDest,
  43. ipForwardProto,
  44. ipForwardPolicy,
  45. ipForwardNextHop
  46. }
  47. ::= { ipForwardTable 1 }
  48. IpForwardEntry ::=
  49. SEQUENCE {
  50. ipForwardDest
  51. IpAddress,
  52. ipForwardMask
  53. IpAddress,
  54. ipForwardPolicy
  55. INTEGER,
  56. ipForwardNextHop
  57. IpAddress,
  58. ipForwardIfIndex
  59. INTEGER,
  60. ipForwardType
  61. INTEGER,
  62. ipForwardProto
  63. INTEGER,
  64. ipForwardAge
  65. INTEGER,
  66. ipForwardInfo
  67. OBJECT IDENTIFIER,
  68. ipForwardNextHopAS
  69. INTEGER,
  70. ipForwardMetric1
  71. INTEGER,
  72. ipForwardMetric2
  73. INTEGER,
  74. ipForwardMetric3
  75. INTEGER,
  76. ipForwardMetric4
  77. INTEGER,
  78. ipForwardMetric5
  79. INTEGER
  80. }
  81. ipForwardDest OBJECT-TYPE
  82. SYNTAX IpAddress
  83. ACCESS read-only
  84. STATUS mandatory
  85. DESCRIPTION
  86. "The destination IP address of this route. An
  87. entry with a value of 0.0.0.0 is considered a
  88. default route.
  89. This object may not take a Multicast (Class D)
  90. address value.
  91. Any assignment (implicit or otherwise) of an
  92. instance of this object to a value x must be
  93. rejected if the bitwise logical-AND of x with
  94. the value of the corresponding instance of the
  95. ipForwardMask object is not equal to x."
  96. ::= { ipForwardEntry 1 }
  97. ipForwardMask OBJECT-TYPE
  98. SYNTAX IpAddress
  99. ACCESS read-write
  100. STATUS mandatory
  101. DESCRIPTION
  102. "Indicate the mask to be logical-ANDed with the
  103. destination address before being compared to
  104. the value in the ipForwardDest field. For
  105. those systems that do not support arbitrary
  106. subnet masks, an agent constructs the value of
  107. the ipForwardMask by reference to the IP Ad-
  108. dress Class.
  109. Any assignment (implicit or otherwise) of an
  110. instance of this object to a value x must be
  111. rejected if the bitwise logical-AND of x with
  112. the value of the corresponding instance of the
  113. ipForwardDest object is not equal to ipForward-
  114. Dest."
  115. DEFVAL { '00000000'h } -- 0.0.0.0
  116. ::= { ipForwardEntry 2 }
  117. -- The following convention is included for specification
  118. -- of TOS Field contents. At this time, the Host Requirements
  119. -- and the Router Requirements documents disagree on the width
  120. -- of the TOS field. This mapping describes the Router
  121. -- Requirements mapping, and leaves room to widen the TOS field
  122. -- without impact to fielded systems.
  123. ipForwardPolicy OBJECT-TYPE
  124. SYNTAX INTEGER
  125. ACCESS read-only
  126. STATUS mandatory
  127. DESCRIPTION
  128. "The general set of conditions that would cause
  129. the selection of one multipath route (set of
  130. next hops for a given destination) is referred
  131. to as 'policy'.
  132. Unless the mechanism indicated by ipForwardPro-
  133. to specifies otherwise, the policy specifier is
  134. the IP TOS Field. The encoding of IP TOS is as
  135. specified by the following convention. Zero
  136. indicates the default path if no more specific
  137. policy applies.
  138. +-----+-----+-----+-----+-----+-----+-----+-----+
  139. | | | |
  140. | PRECEDENCE | TYPE OF SERVICE | 0 |
  141. | | | |
  142. +-----+-----+-----+-----+-----+-----+-----+-----+
  143. IP TOS IP TOS
  144. Field Policy Field Policy
  145. Contents Code Contents Code
  146. 0 0 0 0 ==> 0 0 0 0 1 ==> 2
  147. 0 0 1 0 ==> 4 0 0 1 1 ==> 6
  148. 0 1 0 0 ==> 8 0 1 0 1 ==> 10
  149. 0 1 1 0 ==> 12 0 1 1 1 ==> 14
  150. 1 0 0 0 ==> 16 1 0 0 1 ==> 18
  151. 1 0 1 0 ==> 20 1 0 1 1 ==> 22
  152. 1 1 0 0 ==> 24 1 1 0 1 ==> 26
  153. 1 1 1 0 ==> 28 1 1 1 1 ==> 30
  154. Protocols defining 'policy' otherwise must ei-
  155. ther define a set of values which are valid for
  156. this object or must implement an integer-
  157. instanced policy table for which this object's
  158. value acts as an index."
  159. ::= { ipForwardEntry 3 }
  160. ipForwardNextHop OBJECT-TYPE
  161. SYNTAX IpAddress
  162. ACCESS read-only
  163. STATUS mandatory
  164. DESCRIPTION
  165. "On remote routes, the address of the next sys-
  166. tem en route; Otherwise, 0.0.0.0."
  167. ::= { ipForwardEntry 4 }
  168. ipForwardIfIndex OBJECT-TYPE
  169. SYNTAX INTEGER
  170. ACCESS read-write
  171. STATUS mandatory
  172. DESCRIPTION
  173. "The ifIndex value which identifies the local
  174. interface through which the next hop of this
  175. route should be reached."
  176. DEFVAL { 0 }
  177. ::= { ipForwardEntry 5 }
  178. ipForwardType OBJECT-TYPE
  179. SYNTAX INTEGER {
  180. other (1), -- not specified by this MIB
  181. invalid (2), -- logically deleted
  182. local (3), -- local interface
  183. remote (4) -- remote destination
  184. }
  185. ACCESS read-write
  186. STATUS mandatory
  187. DESCRIPTION
  188. "The type of route. Note that local(3) refers
  189. to a route for which the next hop is the final
  190. destination; remote(4) refers to a route for
  191. which the next hop is not the final destina-
  192. tion.
  193. Setting this object to the value invalid(2) has
  194. the effect of invalidating the corresponding
  195. entry in the ipForwardTable object. That is,
  196. it effectively disassociates the destination
  197. identified with said entry from the route iden-
  198. tified with said entry. It is an
  199. implementation-specific matter as to whether
  200. the agent removes an invalidated entry from the
  201. table. Accordingly, management stations must
  202. be prepared to receive tabular information from
  203. agents that corresponds to entries not current-
  204. ly in use. Proper interpretation of such en-
  205. tries requires examination of the relevant ip-
  206. ForwardType object."
  207. DEFVAL { invalid }
  208. ::= { ipForwardEntry 6 }
  209. ipForwardProto OBJECT-TYPE
  210. SYNTAX INTEGER {
  211. other (1), -- not specified
  212. local (2), -- local interface
  213. netmgmt (3), -- static route
  214. icmp (4), -- result of ICMP Redirect
  215. -- the following are all dynamic
  216. -- routing protocols
  217. egp (5), -- Exterior Gateway Protocol
  218. ggp (6), -- Gateway-Gateway Protocol
  219. hello (7), -- FuzzBall HelloSpeak
  220. rip (8), -- Berkeley RIP or RIP-II
  221. is-is (9), -- Dual IS-IS
  222. es-is (10), -- ISO 9542
  223. ciscoIgrp (11), -- Cisco IGRP
  224. bbnSpfIgp (12), -- BBN SPF IGP
  225. ospf (13), -- Open Shortest Path First
  226. bgp (14), -- Border Gateway Protocol
  227. idpr (15) -- InterDomain Policy Routing
  228. }
  229. ACCESS read-only
  230. STATUS mandatory
  231. DESCRIPTION
  232. "The routing mechanism via which this route was
  233. learned. Inclusion of values for gateway rout-
  234. ing protocols is not intended to imply that
  235. hosts should support those protocols."
  236. ::= { ipForwardEntry 7 }
  237. ipForwardAge OBJECT-TYPE
  238. SYNTAX INTEGER
  239. ACCESS read-only
  240. STATUS mandatory
  241. DESCRIPTION
  242. "The number of seconds since this route was
  243. last updated or otherwise determined to be
  244. correct. Note that no semantics of `too old'
  245. can be implied except through knowledge of the
  246. routing protocol by which the route was
  247. learned."
  248. DEFVAL { 0 }
  249. ::= { ipForwardEntry 8 }
  250. ipForwardInfo OBJECT-TYPE
  251. SYNTAX OBJECT IDENTIFIER
  252. ACCESS read-write
  253. STATUS mandatory
  254. DESCRIPTION
  255. "A reference to MIB definitions specific to the
  256. particular routing protocol which is responsi-
  257. ble for this route, as determined by the value
  258. specified in the route's ipForwardProto value.
  259. If this information is not present, its value
  260. should be set to the OBJECT IDENTIFIER { 0 0 },
  261. which is a syntactically valid object identif-
  262. ier, and any implementation conforming to ASN.1
  263. and the Basic Encoding Rules must be able to
  264. generate and recognize this value."
  265. ::= { ipForwardEntry 9 }
  266. ipForwardNextHopAS OBJECT-TYPE
  267. SYNTAX INTEGER
  268. ACCESS read-write
  269. STATUS mandatory
  270. DESCRIPTION
  271. "The Autonomous System Number of the Next Hop.
  272. When this is unknown or not relevant to the
  273. protocol indicated by ipForwardProto, zero."
  274. DEFVAL { 0 }
  275. ::= { ipForwardEntry 10 }
  276. ipForwardMetric1 OBJECT-TYPE
  277. SYNTAX INTEGER
  278. ACCESS read-write
  279. STATUS mandatory
  280. DESCRIPTION
  281. "The primary routing metric for this route.
  282. The semantics of this metric are determined by
  283. the routing-protocol specified in the route's
  284. ipForwardProto value. If this metric is not
  285. used, its value should be set to -1."
  286. DEFVAL { -1 }
  287. ::= { ipForwardEntry 11 }
  288. ipForwardMetric2 OBJECT-TYPE
  289. SYNTAX INTEGER
  290. ACCESS read-write
  291. STATUS mandatory
  292. DESCRIPTION
  293. "An alternate routing metric for this route.
  294. The semantics of this metric are determined by
  295. the routing-protocol specified in the route's
  296. ipForwardProto value. If this metric is not
  297. used, its value should be set to -1."
  298. DEFVAL { -1 }
  299. ::= { ipForwardEntry 12 }
  300. ipForwardMetric3 OBJECT-TYPE
  301. SYNTAX INTEGER
  302. ACCESS read-write
  303. STATUS mandatory
  304. DESCRIPTION
  305. "An alternate routing metric for this route.
  306. The semantics of this metric are determined by
  307. the routing-protocol specified in the route's
  308. ipForwardProto value. If this metric is not
  309. used, its value should be set to -1."
  310. DEFVAL { -1 }
  311. ::= { ipForwardEntry 13 }
  312. ipForwardMetric4 OBJECT-TYPE
  313. SYNTAX INTEGER
  314. ACCESS read-write
  315. STATUS mandatory
  316. DESCRIPTION
  317. "An alternate routing metric for this route.
  318. The semantics of this metric are determined by
  319. the routing-protocol specified in the route's
  320. ipForwardProto value. If this metric is not
  321. used, its value should be set to -1."
  322. DEFVAL { -1 }
  323. ::= { ipForwardEntry 14 }
  324. ipForwardMetric5 OBJECT-TYPE
  325. SYNTAX INTEGER
  326. ACCESS read-write
  327. STATUS mandatory
  328. DESCRIPTION
  329. "An alternate routing metric for this route.
  330. The semantics of this metric are determined by
  331. the routing-protocol specified in the route's
  332. ipForwardProto value. If this metric is not
  333. used, its value should be set to -1."
  334. DEFVAL { -1 }
  335. ::= { ipForwardEntry 15 }
  336. END