The following table lists the mandatory attributes required to create a new L2 Connection. You must set the attributes in this table before you set the new L2 Connection to active using RowStatus.
All other configurable L2 Connection attributes listed in the MIB, such as debug levels, do not need to be set at the time of row creation. Default values are inserted for these attributes by the system at the time of row creation. For more information about the mandatory attributes and other configurable L2 Connection attributes, refer to the MIB and the appropriate chapter in SS7 Application Guide 1 and SS7 Application Guide 2.
You must create an L2 Connection before creating an M2UA link (see Creating an M2UA Link)
If you omit any of the mandatory variables when creating a new instance of the variable using RowStatus, the procedure fails. You must delete the row and recreate it, ensuring that you include all mandatory variables.
To create an L2 Connection
snmpwalk -c public <host name> .1.3.6.1.4.1.1556.17.15.46.65.61.1.1.1
Get the list of all L2 connections on the system and display the number of L2 connections configured.
Object tag is 1 is the number of L2Connections as per MIBptMTPL2ConnectionsCount OBJECT-TYPE.
ptMTPLinksetCLLI OBJECT-TYPE
Parse the list to get the OID of the required L2Connection
Set the RowStatus to 5 (create and wait). (The last instance number is 0).
An L2connection has MIB Object Identifier 48:
ptMTPL2Connection OBJECT IDENTIFIER ::= { ptMTPL2Connections 48 }snmpset -c private <host name> .1.3.6.1.4.1.1556.17.15.46.65.61.48.1.1.254.1.1.1.1.0 i 5
Set the mandatory attribute, Cage ID.
The value in this example is 3 where 3 indicates Cage ID 3.
Cage ID is object tag 3 as per MIB ptMTPL2ConnectionCageID OBJECT-TYPE.
snmpset -c private <host name> .1.3.6.1.4.1.1556.17.15.46.65.61.48.1.1.3.1.1.1.1.0 i 3
Set the Parent OID.
NoteThis OID is the same as the one you are creating without the current object type (L2connection 48) and its instance (the last instance 0).
snmpset -c private <host name> .1.3.6.1.4.1.1556.17.15.46.65.61.48.1.1.253.1.1.1.1.0 s ".1.3.6.1.4.1.1556.17.15.46.65.61.1.1.253.1.1.1.1"
Set the mandatory L2 Connection Type.
The value in this example is 0 where 0 indicates stcp. (tcp=1, sctp=0).
Module Type is object tag 4 as per MIB ptMTPL2ConnectionType OBJECT-TYPE.snmpget -c public <host name> .1.3.6.1.4.1.1556.17.15.46.65.64.53.72.1.1.254.1.1.1.1.147971.0
Set mandatory Protocol Type.
The value in this example is “1”, that is m2ua Protocol Type.
(ptProprietary(0), m2ua(1), atm(2)).
Protocol Type is object tag 34 as per MIB.
ptMTPL2ConnectionMTP2ProtocolType OBJECT-TYPEsnmpset -c private <host name> .1.3.6.1.4.1.1556.17.15.46.65.61.48.1.1.34.1.1.1.1.0 i 1
Set mandatory Primary DRE ID.
The value in this example is “1”.
Primary DRE ID is object tag 7 as per MIB ptMTPL2ConnectionPrimaryDREID OBJECT-TYPE.
snmpwalk -c public <host name> .1.3.6.1.4.1.1556.17.15.46.65.61.48.1.1.7.1.1.1.1.0 i 1
- Set Cage Name
The value in this example is “M2UA”.
Cage name is object tag 2 as per MIB ptMTPL2ConnectionCageName OBJECT-TYPE.
snmpset -c private <host name> .1.3.6.1.4.1.1556.17.15.46.65.61.48.1.1.2.1.1.1.1.0 s "M2UA"
Check the RowStatus value.
snmpget -c public <host name> .1.3.6.1.4.1.1556.17.15.46.65.61.48.1.1.254.1.1.1.1.0
If the value is 2, the L2Connection is ready to be created (To create SNMP Attributes)Create the L2Connection by setting the RowStatus to 1 (Active).
snmpset -c private <host name> .1.3.6.1.4.1.1556.17.15.46.65.61.48.1.1.254.1.1.1.1.0 i 1
Do a partial
walk
to verify the instance of the L2connection to make sure it was created.snmpwalk -c public <host name> .1.3.6.1.4.1.1556.17.15.46.65.61.48.1.1.254.1.1.1.1