forked from AlexandreYang/snmp-mibs
/
A3COM-HUAWEI-DHCPSNOOP-MIB
executable file
·271 lines (237 loc) · 9.34 KB
/
A3COM-HUAWEI-DHCPSNOOP-MIB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
-- ==================================================================
-- Copyright (C) 2004 by HUAWEI 3COM TECHNOLOGIES. All rights reserved.
--
-- Description: HUAWEI-3COM Lan Switch DHCP Snooping MIB
-- Reference:
-- Version: V1.2
-- History:
-- V1.0 The initial version, created by FuJiajia, 2004.12.29
-- V1.1 2006-03-08 updated by HeHangjun
-- Added h3cDhcpSnoopVlanTable
-- V1.2 2007-06-18 updated by qizhenglin
-- Added h3cDhcpSnoopSpoofServerDetected
-- h3cDhcpSnoopSpoofServerMac
-- h3cDhcpSnoopSpoofServerIP
-- ==================================================================
-- ==================================================================
--
-- Varibles and types be imported
--
-- ==================================================================
A3COM-HUAWEI-DHCPSNOOP-MIB DEFINITIONS ::= BEGIN
IMPORTS
RowStatus, MacAddress
FROM SNMPv2-TC
MODULE-IDENTITY,OBJECT-TYPE,IpAddress,Integer32
FROM SNMPv2-SMI
ifIndex
FROM RFC1213-MIB
hwdot1qVlanIndex
FROM A3COM-HUAWEI-LswVLAN-MIB
InetAddressType, InetAddress
FROM INET-ADDRESS-MIB
h3cCommon
FROM A3COM-HUAWEI-OID-MIB
TruthValue
FROM SNMPv2-TC;
-- ==================================================================
--
-- ======================= definition begin =========================
--
-- ==================================================================
h3cDhcpSnoop MODULE-IDENTITY
LAST-UPDATED "200501140000Z"
ORGANIZATION "Huawei-3com Technologies Co.,Ltd."
CONTACT-INFO
"Platform Team Beijing Institute Huawei-3com Tech, Inc.
Http:\\www.huawei-3com.com
E-mail:support@huawei-3com.com"
DESCRIPTION
"The private mib file includes the DHCP Snooping profile."
::= { h3cCommon 36 }
h3cDhcpSnoopMibObject OBJECT IDENTIFIER ::= { h3cDhcpSnoop 1 }
h3cDhcpSnoopEnable OBJECT-TYPE
SYNTAX INTEGER
{
enable(1),
disable(2)
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION "DHCP Snooping status (enable or disable)."
DEFVAL { disable }
::= { h3cDhcpSnoopMibObject 1 }
h3cDhcpSnoopTable OBJECT-TYPE
SYNTAX SEQUENCE OF H3cDhcpSnoopEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "The table containing information of DHCP clients listened by
DHCP snooping and it's enabled or disabled by setting
h3cDhcpSnoopEnable node."
::= { h3cDhcpSnoopMibObject 2 }
h3cDhcpSnoopEntry OBJECT-TYPE
SYNTAX H3cDhcpSnoopEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "An entry containing information of DHCP clients."
INDEX { h3cDhcpSnoopClientIpAddressType, h3cDhcpSnoopClientIpAddress }
::= { h3cDhcpSnoopTable 1}
H3cDhcpSnoopEntry ::=
SEQUENCE {
h3cDhcpSnoopClientIpAddressType InetAddressType,
h3cDhcpSnoopClientIpAddress InetAddress,
h3cDhcpSnoopClientMacAddress MacAddress,
h3cDhcpSnoopClientProperty INTEGER ,
h3cDhcpSnoopClientUnitNum INTEGER
}
h3cDhcpSnoopClientIpAddressType OBJECT-TYPE
SYNTAX InetAddressType
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "DHCP clients' IP addresses type (IPv4 or IPv6)."
DEFVAL { ipv4 }
::= { h3cDhcpSnoopEntry 1 }
h3cDhcpSnoopClientIpAddress OBJECT-TYPE
SYNTAX InetAddress
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "DHCP clients' IP addresses collected by DHCP snooping."
::= { h3cDhcpSnoopEntry 2 }
h3cDhcpSnoopClientMacAddress OBJECT-TYPE
SYNTAX MacAddress
MAX-ACCESS read-only
STATUS current
DESCRIPTION "DHCP clients' MAC addresses collected by DHCP snooping."
::= { h3cDhcpSnoopEntry 3 }
h3cDhcpSnoopClientProperty OBJECT-TYPE
SYNTAX INTEGER
{
static(1),
dynamic(2)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Method of getting IP addresses collected by DHCP snooping."
::= { h3cDhcpSnoopEntry 4 }
h3cDhcpSnoopClientUnitNum OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-only
STATUS current
DESCRIPTION "IRF (Intelligent Resilient Fabric) unit number via whom the clients
get their IP addresses. The value 0 means this device does not support IRF."
::= { h3cDhcpSnoopEntry 5 }
h3cDhcpSnoopTrustTable OBJECT-TYPE
SYNTAX SEQUENCE OF H3cDhcpSnoopTrustEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "A table is used to configure and monitor port trusted status."
::= { h3cDhcpSnoopMibObject 3 }
h3cDhcpSnoopTrustEntry OBJECT-TYPE
SYNTAX H3cDhcpSnoopTrustEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "An entry containing information about trusted status of ports."
INDEX { ifIndex }
::= { h3cDhcpSnoopTrustTable 1}
H3cDhcpSnoopTrustEntry ::=
SEQUENCE {
h3cDhcpSnoopTrustStatus INTEGER
}
h3cDhcpSnoopTrustStatus OBJECT-TYPE
SYNTAX INTEGER
{
untrusted(0),
trusted(1)
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION "Trusted status of current port which supports both get and
set operation."
DEFVAL { untrusted }
::= { h3cDhcpSnoopTrustEntry 1 }
h3cDhcpSnoopVlanTable OBJECT-TYPE
SYNTAX SEQUENCE OF H3cDhcpSnoopVlanEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "A table is used to configure and monitor DHCP Snooping
status of VLANs."
::= { h3cDhcpSnoopMibObject 4 }
h3cDhcpSnoopVlanEntry OBJECT-TYPE
SYNTAX H3cDhcpSnoopVlanEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "The entry information about h3cDhcpSnoopVlanTable."
INDEX
{
h3cDhcpSnoopVlanIndex
}
::= { h3cDhcpSnoopVlanTable 1 }
H3cDhcpSnoopVlanEntry ::=
SEQUENCE
{
h3cDhcpSnoopVlanIndex Integer32,
h3cDhcpSnoopVlanEnable TruthValue
}
h3cDhcpSnoopVlanIndex OBJECT-TYPE
SYNTAX Integer32(0..2147483647)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "Current VLAN index."
::= { h3cDhcpSnoopVlanEntry 1 }
h3cDhcpSnoopVlanEnable OBJECT-TYPE
SYNTAX TruthValue
MAX-ACCESS read-write
STATUS current
DESCRIPTION "DHCP Snooping status of current VLAN."
DEFVAL { false }
::= { h3cDhcpSnoopVlanEntry 2 }
-- ==================================================================
--
-- ======================= trap definition begin ====================
--
-- ==================================================================
h3cDhcpSnoopTraps OBJECT IDENTIFIER ::= { h3cDhcpSnoop 2 }
h3cDhcpSnoopTrapsPrefix OBJECT IDENTIFIER ::= { h3cDhcpSnoopTraps 0 }
h3cDhcpSnoopTrapsObject OBJECT IDENTIFIER ::= { h3cDhcpSnoopTraps 1 }
h3cDhcpSnoopSpoofServerMac OBJECT-TYPE
SYNTAX MacAddress
MAX-ACCESS accessible-for-notify
STATUS current
DESCRIPTION "MAC address of the spoofing server and it is derived from
link-layer header of offer packet. If the offer packet is relayed
by dhcp relay entity, it may be the MAC address of relay entity.
"
::= { h3cDhcpSnoopTrapsObject 1 }
h3cDhcpSnoopSpoofServerIP OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS accessible-for-notify
STATUS current
DESCRIPTION "IP address of the spoofing server and it is derived from
IP header of offer packet. A tricksy host may send offer packet use
other host's address, so this address can not always be trust.
"
::= { h3cDhcpSnoopTrapsObject 2 }
h3cDhcpSnoopSpoofServerDetected NOTIFICATION-TYPE
OBJECTS
{
ifIndex, -- The interface from which an
-- illegal dhcp server accessed
hwdot1qVlanIndex, -- The vlan from which an illegal
-- dhcp server accessed
h3cDhcpSnoopSpoofServerMac,
h3cDhcpSnoopSpoofServerIP
}
STATUS current
DESCRIPTION
"To detect unauthorized DHCP servers on a network, the DHCP snooping
device sends DHCP-DISCOVER messages through its downstream port
(which is connected to the DHCP clients).
If any response (DHCP-OFFER message) is received from the downstream port,
an unauthorized DHCP server is considered present, and then the device
sends a trap.
With unauthorized DHCP server detection enabled, the interface sends a
DHCP-DISCOVER message to detect unauthorized DHCP servers on the network.
If this interface receives a DHCP-OFFER message, the DHCP server which
sent it is considered unauthorized. "
::= { h3cDhcpSnoopTrapsPrefix 1 }
END