1.2. Respuesta a la primera pregunta:

La MIB realizada, en respuesta a la pregunta anterior, ha sido la siguiente:

MIB-IPC DEFINITIONS ::= BEGIN

IMPORTS
	mgmt, IpAddress, TimeTicks
		FROM RFC1155-SMI
	OBJECT-TYPE
		FROM RFC-1212;

	
	--  MIB-II (same prefix as MIB-I)
	
	mib-2      OBJECT IDENTIFIER ::= { mgmt 1 }       


	-- This data type is used to model textual information taken
	-- from the NVT ASCII character set.  By convention, objects
	-- with this syntax are declared as having

	DisplayString ::=
		OCTET STRING
	

	-- groups in MIB-IPC
	
	system       OBJECT IDENTIFIER ::= { mib-2 1 }
	
	ip           OBJECT IDENTIFIER ::= { mib-2 4 }


-- System IP address

sysIpAddress OBJECT-TYPE
	SYNTAX	IpAddress
	ACCESS	read-only
	STATUS	mandatory
	DESCRIPTION
		"System IP address."
	::= { system 1 }


-- System name

sysName OBJECT-TYPE
	SYNTAX	DisplayString (SIZE (0..255))
	
	ACCESS	read-write
	STATUS	mandatory
	DESCRIPTION
		"An administratively-assigned name for this
		managed node.  By convention, this is the node's
		fully-qualified domain name."
	::= { system 2 }


-- System uptime

sysUpTime OBJECT-TYPE
	SYNTAX	TimeTicks
	ACCESS	read-only
	STATUS	mandatory
	DESCRIPTION
		"The time (in hundredths of a second) since the
		network management portion of the system was last
		re-initialized."
	::= { system 3 }


-- Route table

IpRouteEntry ::=
	SEQUENCE {
		ipRouteDest
			IpAddress,
		ipRouteMetric1
			INTEGER,
		ipRouteNextHop
			IpAddress
	}

ipRouteTable OBJECT-TYPE
	SYNTAX	SEQUENCE OF IpRouteEntry
	ACCESS	not-accessible
	STATUS	mandatory
	DESCRIPTION
		"This entity's IP Routing table."
	::= { ip 21 }

ipRouteEntry1 OBJECT-TYPE
	SYNTAX	IpRouteEntry
	ACCESS	not-accessible
	STATUS	mandatory
	DESCRIPTION
		"A route to a particular destination."
	INDEX	{ ipRouteDest }
	::= { ipRouteTable 1 }

ipRouteMetric1 OBJECT-TYPE
	SYNTAX	INTEGER
	ACCESS	read-write
	STATUS	mandatory
	DESCRIPTION
		"The primary routing metric for this route.  The
		semantics of this metric are determined by the
		routing-protocol specified in the route's
		ipRouteProto value.  If this metric is not used,
		its value should be set to -1."
	::= { ipRouteEntry1 1 }

ipRouteDest OBJECT-TYPE
	SYNTAX  IpAddress
	ACCESS  read-write
	STATUS  mandatory
	DESCRIPTION
		"The destination IP address of this route.  An
		entry with a value of 0.0.0.0 is considered a
		default route.  Multiple routes to a single
		destination can appear in the table, but access to
		such multiple entries is dependent on the table-
		access mechanisms defined by the network
		management protocol in use."
	::= { ipRouteEntry1 2 }

ipRouteNextHop OBJECT-TYPE
	SYNTAX  IpAddress
	ACCESS  read-write
	STATUS  mandatory
	DESCRIPTION
		"The IP address of the next hop of this route.
		(In the case of a route bound to an interface
		which is realized via a broadcast media, the value
		of this field is the agent's IP address on that
		interface.)"
	::= { ipRouteEntry1 3 }

END