Disable Ipv6 temporary on Windows

netsh interface ipv6 set privacy state=disabled store=active
netsh interface ipv6 set privacy state=disabled store=persistent
netsh interface ipv6 set global randomizeidentifiers=disabled store=active
netsh interface ipv6 set global randomizeidentifiers=disabled store=persistent

Restart windows

Nexus – SNMP find Ifindex oid

sh interface snmp-ifindex
--------------------------------------------------------------------------------
 Port IFMIB Ifindex (hex)
 --------------------------------------------------------------------------------
 Eth1/1 436207616 (0x1a000000)
 Eth1/2 436211712 (0x1a001000)
 Eth1/3 436215808 (0x1a002000)
 Eth1/4 436219904 (0x1a003000)
 Eth1/5 436224000 (0x1a004000)
 ..
 Po10            369098761  (0x16000009)
 ..
 Eth100/1/1      526581760  (0x1f630000)

 

Cisco configuration over SNMP

Before configure your device over SNMP, you need to enable read-write and limit the access with an ACL.

snmp-server community <your_community> RW <Access-list>

Now you can configured your device with snmp-set command. The following example show how upload a new configuration on your running-config with a TFTP Server.

snmpset -v <version> -c <community> <your_router> \
.1.3.6.1.4.1.9.9.96.1.1.1.1.3.50 i 1 \
.1.3.6.1.4.1.9.9.96.1.1.1.1.4.50 i 4 \ 
.1.3.6.1.4.1.9.9.96.1.1.1.1.5.50 a "<IP TFTP Server>" \
.1.3.6.1.4.1.9.9.96.1.1.1.1.6.50 s "<filename>" \
.1.3.6.1.4.1.9.9.96.1.1.1.1.14.50 i 4

You also can use FTP, SCP, … You have more information about the mib here.

How to configure your Cisco MDS fibre channel switch

1- Create a VSAN

vsan database
 vsan 10 name SAN-TEST

2- Asign interfaces to VSAN

vsan 10 interface fc1/8

3- Create aliases

fcalias name SAN1_SPA_0 vsan 10
 member pwwn 50:00:00:00:00:00:00:00

fcalias name SRV1_HBA01 vsan 10
 member pwwn 21:00:00:00:00:00:00:00

4- Create Zone with aliases

zone name Z_SAN1_SPA_0_SRV1_HBA01 vsan 10
 member fcalias SAN1_SPA_0
 member fcalias SRV1_HBA01

5- Asign Zone to ZoneSet

zoneset name ZONESET_VSAN10 vsan 10
 member Z_SAN1_SPA_0_SRV1_HBA01

6- Apply and activate ZoneSet

zoneset activate name ZONESET_VSAN10 vsan 10

Troubleshooting

Example to view WWN and PWWN on MDS:

# sh flogi database
 --------------------------------------------------------------------------------
 INTERFACE VSAN FCID PORT NAME NODE NAME
 --------------------------------------------------------------------------------
 fc1/1 10 0x250000 50:06:01:61:08:xx:xx:xx 50:06:01:60:88:xx:xx:xx
 fc1/2 10 0x250100 50:06:01:69:08:xx:xx:xx 50:06:01:60:88:xx:xx:xx
 fc1/3 10 0x250400 21:00:00:24:ff:xx:xx:xx 20:00:00:24:ff:xx:xx:xx
 fc1/4 10 0x250300 21:00:00:24:ff:xx:xx:xx 20:00:00:24:ff:xx:xx:xx

Cisco N7K view ACL log

This example displays how view logs of the mgmt0-access ACL:

# sh ip access-lists
IP access list mgmt0-access
 statistics per-entry
 10 permit tcp addrgroup NOC addrgroup RouterBlock eq 22 [match=2611]
 20 permit udp addrgroup NOC addrgroup RouterBlock eq snmp [match=0]
 40 permit udp addrgroup NOC eq ntp addrgroup RouterBlock [match=0]
 50 permit tcp addrgroup NOC eq tacacs addrgroup RouterBlock [match=2055]
60 permit tcp addrgroup NOC addrgroup RouterBlock eq www [match=0]
 500 permit ip addrgroup NOC addrgroup RouterBlock log [match=818]

To view the log, you need to use the following command :

# sh log ip access-list cache
Src IP Dst IP S-Port D-Port Src Intf Protocol
 Hits
--------------------------------------------------------------------------------
----------------
10.200.0.20 10.200.0.11 40196 161 mgmt0 (6)TCP
 65
10.200.0.20 10.200.0.11 56267 80 mgmt0 (6)TCP
 0
Number of cache entries: 2
--------------------------------------------------------------------------------