OcNOS-SP : System Management Guide : System Management Configuration Guide : Simple Network Management Protocol : SNMP Trap Server Configuration with IPv6 Address
SNMP Trap Server Configuration with IPv6 Address
Snmpwalk is performed by using IPv6 address. SNMP trap server is configured on the Router with IPv6 address.
Topology
Figure 21-39 shows the sample configuration of SNMP trap server.
Figure 21-39: SNMP trap server topology
R1
 
#configure terminal
Enter configure mode.
(config)#snmp-server view all .1 included vrf management
Configure SNMP server view
(config)#snmp-server view test1 1.3.6.1 included vrf management
Configure SNMP server view
(config)#snmp-server user test1 network-admin auth md5 test1234 vrf management
Configure SNMP server user
(config)#snmp-server user test2 network-admin vrf management
Configure SNMP server user
(config)#snmp-server user test3 network-admin auth md5 test1234 priv des test1234 vrf management
Configure SNMP server user
(config)#snmp-server community test group network-operator vrf management
Configure SNMP server community
(config)#snmp-server community test1 group network-admin vrf management
Configure SNMP server community
(config)#snmp-server host 2001:db8:100::2 traps version 2c test udp-port 162 vrf management
Configure SNMP trap server
(config)#interface eth0
Navigate to the interface mode
(config-if)#ipv6 address 2001:db8:100::5/64
Configure IPv6 address on the eth0 interface
(config-if)#exit
Exit interface configure mode
(config)#commit
Commit the candidate configuration to the running configuration
(config)#exit
Exit configure mode
Validation
Below is the SNMP configuration in Router node:
#show running-config snmp
snmp-server view all .1 included vrf management
snmp-server user test1 network-admin auth MD5 encrypt 0xd1fe6acc88856c90 vrf man
agement
snmp-server user test2 network-admin vrf management
snmp-server user test3 network-admin auth MD5 encrypt 0xd1fe6acc88856c90 priv DE
S 0xd1fe6acc88856c90 vrf management
snmp-server community test group network-operator vrf management
snmp-server community test1 group network-admin vrf management
snmp-server enable snmp vrf management
snmp-server enable traps link linkDown
snmp-server enable traps link linkUp
 
#show ipv6 interface eth0 brief
Interface IPv6-Address Admin-Sta
tus
eth0 2001:db8:100::5
fe80::218:23ff:fe30:e6ba [up/up]
 
Perform snmpwalk as mentioned below with IPv6 address using SNMPv3
snmpwalk -v3 -u test3 -a MD5 -A test1234 -x DES -X test1234 -l authPriv 2001:db8:100::5 .1.3.6.1.2.1.25.3.8.1.8
 
Perform snmpwalk as mentioned below with IPv6 address using SNMPv2
snmpwalk -v2c -c test 2001:db8:100::5 1.3.6.1.2.1.31
 
Perform snmpwalk as mentioned below with IPv6 address using SNMPv1
snmpwalk -v1 -c test 2001:db8:100::5 1.3.6.1.2.1.31
 
#show snmp trap
 
-------------------------------------------------
 
Trap type Description Enabled
---------------------------------------------------
link linkUp yes
link linkDown yes
vxlan notification no
mpls notification no
mpls pw no
mpls pw delete no
mpls-l3vpn notification no
ospf notification no
ospf6 notification no
isis notification no
snmp authentication no
mpls rsvp no
vrrp notification no
bgp notification no
As mentioned above, perform link down and link up of any interface in Router node. Check that SNMP trap is sent using IPv6 address.
Last modified date: 10/19/2023