Some commands for SAN Switches MDS

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

HTTP ACCESS

Voila comment changer le port d’ecoute de base de votre équipement. Cela permet également de limiter l’accès via une ACL et s’authentifier en local par exemple.

ip http server
ip http port 8080
ip http access-class 10
ip http authentication local
#sh ip access 10
Standard IP access list 10
    10 permit 10.255.100.0, wildcard bits 0.0.0.255 (16 matches)

Spanning-Tree

Astuce pour changer les ports BLK.

Lorsque l’on veut changer le port BLK depuis le switch distant, changer la priorité du port : port-priority. Pour changer en local utiliser la commande cost.