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.
예를 들어:
스위치(구성)#액세스 목록 101 permit ip <connected network> <wildcard> any 스위치(구성)#액세스 목록 101 permit ip <connected network> <wildcard> any 스위치(구성)#액세스 목록 101 permit ip <connected network> <wildcard> any 스위치(구성)#액세스 목록 101 deny any ! 라우터(구성)# 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 ! 스위치(구성)#router ospf 1 스위치(config-router)#redistribute direct route-map direct2ospf