In NX-OS, a route-mapis always required when redistributing routes into an OSPF instance, and you will also use this route-map to set the metric. Further, subnet redistribution is by default, so you do not have to add the subnetskeyword.
على سبيل المثال:
يُحوّل(config)#access-list 101 permit ip <connected network> <wildcard> any يُحوّل(config)#access-list 101 permit ip <connected network> <wildcard> any يُحوّل(config)#access-list 101 permit ip <connected network> <wildcard> any يُحوّل(config)#access-list 101 deny any ! جهاز التوجيه(config)# route-map direct2ospf permit 10 جهاز التوجيه(config-route-map)# match ip address 101 جهاز التوجيه(config-route-map)# set metric <100> جهاز التوجيه(config-route-map)# set metric-type type-1 ! يُحوّل(config)#router ospf 1 يُحوّل(config-router)#redistribute direct route-map direct2ospf