fcroute

To configure Fibre Channel routes and to activate policy routing, use the fcroute command. To remove a configuration or revert to factory defaults, use the no form of this command.

fcroute { fcid [ network-mask ] interface { fc slot / port | san-port-channel port | vfc vfc-id } domain domain-id { metric number | remote | vsan vsan-id }}

no fcroute { fcid [ network-mask ] interface { fc slot / port | san-port-channel port | vfc vfc-id } domain domain-id { metric number | remote | vsan vsan-id }}

Syntax Description

fcid
FC ID. The format is 0xhhhhhh.
network-mask
(Optional) Network mask of the FC ID. The format is 0x0 to 0xffffff.
interface
Specifies an interface.
fc slot / port
Specifies a Fibre Channel interface and its slot number and port number.
san-port-channel port
Specifies a SAN port channel interface.
vfc vfc-id
Specifies a virtual Fibre Channel interface.
domain domain-id
Specifies the route for the domain of the next hop switch. The range is from 1 to 239.
metric number
Specifies the cost of the route. The range is from 1 to 65535. Default cost is 10.
remote
Configures the static route for a destination switch remotely connected.
vsan vsan-id
Specifies a VSAN ID. The range is from 1 to 4093.

Command Default

None

Command Modes

Global configuration mode

Command History

Release
Modification
4.0(0)N1(1a)
This command was introduced.

Usage Guidelines

Use this command to assign forwarding information to the switch and to activate a preferred path route map.

Examples

This example shows how to specify the Fibre Channel interface and the route for the domain of the next hop switch for VSAN 2:

switch(config)# fcroute 0x111211 interface fc3/1 domain 3 vsan 2
 

This example shows how to specify the SAN port channel interface and the route for the domain of the next hop switch for VSAN 4:

switch(config)# fcroute 0x111211 interface san-port-channel 1 domain 3 vsan 4
 

This example shows how to specify the Fibre Channel interface, the route for the domain of the next hop switch, and the cost of the route for VSAN 1:

switch(config)# fcroute 0x031211 interface fc1/1 domain 3 metric 1 vsan 1
 

This example shows how to specify the Fibre Channel interface, the route for the domain of the next hop switch, the cost of the route, and configures the static route for a destination switch remotely connected for VSAN 3:

switch(config)# fcroute 0x111112 interface fc3/1 domain 3 metric 3 remote vsan 3
 

Related Commands

Command
Description
show fcroute
Displays Fibre Channel routes.
fcroute-map
Specifies a preferred path Fibre Channel route map.
show fcroute-map
Displays the preferred path route map configuration and status.
fcroute policy fcroute-map
Activates the preferred path Fibre Channel route map.