SNMP Trap Server Configuration with IPv6 Address

Management VRF Configuration

Snmpwalk is performed by using IPv6 address. SNMP trap server is configured on the Router with IPv6 address.

Topology

Figure 48 shows the sample configuration of SNMP trap server.

Figure 48. 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 host 2001:db8:100::2 traps version 2c test udp-port 162 vrf management host-vrf management

Configure SNMP trap server with default udp-port 162, the snmp-server running in management vrf as well as the host IP in management vrf

(config)#snmp-server host 1001:db8:0:2::1 traps version 1 test udp-port 6000 vrf management

Configure SNMP trap server with udp-port 6000, snmp-server running in management vrf and the host-IP in default vrf ( can also mention host-vrf as default which is optional)

(config)#snmp-server host 8901:DB8:0:1::3 traps version 2c newcom udp-port 1025 vrf management host-vrf snmp-vrf

Configure SNMP trap server with udp-port 1025, snmp-server running in management vrf and the host-IP in user-defined vrf ( snmp-vrf here )

(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:

Copy
#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

Copy
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

Copy
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

Copy
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 .