1--------------------------------------------------------------------
2-- NMS-IP-ADDRESS-MIB
3-- AUTHER : LIUQIANG
4-- OCT 2011
5--------------------------------------------------------------------
6
7            NMS-IP-ADDRESS-MIB DEFINITIONS ::= BEGIN
8
9            IMPORTS
10                    TimeTicks
11            FROM RFC1155-SMI
12                    OBJECT-TYPE
13			FROM RFC-1212
14                    DisplayString,PhysAddress
15			FROM RFC1213-MIB
16		    nmslocal
17			FROM NMS-SMI
18		    IpAddress     FROM  RFC1155-SMI
19		    TruthValue,RowStatus  	FROM SNMPv2-TC;
20
21               ipAddr             OBJECT IDENTIFIER ::= { nmslocal 237 }
22
23               IpEntDefaultGateway OBJECT-TYPE
24                   SYNTAX  IpAddress
25                   ACCESS  read-write
26                   STATUS  mandatory
27                   DESCRIPTION
28                           "Device IP default gateway setting. In 2-layer switch this value is set to default gateway, and in 3-layer switch, this value is NULL."
29                   ::= { ipAddr 1 }
30
31               ipAddrTable OBJECT-TYPE
32                   SYNTAX  SEQUENCE OF IpAddrTableEntry
33                   ACCESS  not-accessible
34                   STATUS  mandatory
35                   DESCRIPTION
36                            "A table of interface IP address ."
37                   ::= { ipAddr 2 }
38
39               ipAddrTableEntry OBJECT-TYPE
40                   SYNTAX  IpAddrTableEntry
41                   ACCESS  not-accessible
42                   STATUS  mandatory
43                   DESCRIPTION
44                            "A collection of inteface IP address table."
45                   INDEX { nmsIpEntAddr }
46               ::= { ipAddrTable 1 }
47
48               IpAddrTableEntry ::=
49                   SEQUENCE {
50                       nmsIpEntAddr
51                           IpAddress,
52                       nmsIpEntIfindex
53                           INTEGER,
54                       nmsIpEntNetMask
55                       	   IpAddress,
56                       nmsIpEntRowStatus
57                           RowStatus,
58                       nmsIpMacAddress
59                           PhysAddress,
60                       nmsIpIsSecondary
61                           INTEGER
62                          }
63
64               nmsIpEntAddr OBJECT-TYPE
65                   SYNTAX  IpAddress
66                   ACCESS  read-write
67                   STATUS  mandatory
68                   DESCRIPTION
69                           "This means inteface that value is 'nmsIpEntIfindex' corresoponding IP address.  "
70                   ::= { ipAddrTableEntry 1 }
71
72               nmsIpEntIfindex OBJECT-TYPE
73                   SYNTAX  INTEGER
74                   ACCESS  read-write
75                   STATUS  mandatory
76                   DESCRIPTION
77                           "Interface index. The same value as ifIndex in ifTable. This inteface must be routing interface, otherwise while setting this value, ths system will return error.  "
78                   ::= { ipAddrTableEntry 2 }
79
80               nmsIpEntNetMask OBJECT-TYPE
81                   SYNTAX  IpAddress
82                   ACCESS  read-write
83                   STATUS  mandatory
84                   DESCRIPTION
85                           "This means inteface mask that value is 'nmsIpEntIfindex' corresoponding IP address.  "
86                   ::= { ipAddrTableEntry 3 }
87
88               nmsIpEntRowStatus OBJECT-TYPE
89                   SYNTAX  RowStatus
90                   ACCESS  read-write
91                   STATUS  mandatory
92                   DESCRIPTION
93                           "Interface IP address table row status.  "
94                   ::= { ipAddrTableEntry 4 }
95
96               nmsIpMacAddress OBJECT-TYPE
97                   SYNTAX  PhysAddress
98                   ACCESS  read-only
99                   STATUS  mandatory
100                   DESCRIPTION
101                           "Interface IP address VS MAC address.  "
102                   ::= { ipAddrTableEntry 5 }
103
104               nmsIpIsSecondary OBJECT-TYPE
105                   SYNTAX  INTEGER{
106                        		secondary (1),
107                        		primary (0)
108                        	}
109                   ACCESS  read-write
110                   STATUS  mandatory
111                   DESCRIPTION
112                           "The ip address configured is primary or secondary. A secondary address can't be configured until the primary one exist."
113                   ::= { ipAddrTableEntry 6 }
114
115
116
117END
118