Brocade Multi-Service IronWare Switching Configuration Guide (Supporting R05.6.00) User Manual

Page 818

Advertising
background image

788

Multi-Service IronWare Switching Configuration Guide

53-1003036-02

Configuring static routes

19

Syntax: [no] ip route dest-ip-addr dest-mask | dest-ip-addr/mask-bits

next-hop-vrf next-hop-vrf-name next-hop-ip-addr

The dest-ip-addr is the route’s destination. The dest-mask is the network mask for the route’s
destination IP address. Alternatively, you can specify the network mask information by entering /
followed by the number of bits in the network mask. For example, you can enter 10.0.0.0
255.255.255.0 as 192.0.0.0/.24.

The next-hop-vrf-name is the name of the VRF that contains the next-hop router (gateway) for the
route.

The next-hop-ip-addr is the IP address of the next-hop router (gateway) for the route.

NOTE

The next-hop-vrf needs to be a valid VRF to be used in this command.

Configuring a static route from a non-default VRF to a non-default VRF

To configure an IP static route within the VRF named “red” with a destination address of
10.2.2.0/24 and a next-hop router with an IP address of 10.2.2.1 in the non-default VRF named
“blue”, enter the following commands from within the VRF “red” configuration context.

For the VRF configuration you need to configure a Route Descriptor (RD) and address-family IPv4
before you can enter the IP route command.

Brocade(config)# vrf red

Brocade(config-vrf-red)# rd 3:1

Brocade(config-vrf-red)# address-family ipv4

Brocade(config-vrf-red)# ip route 10.128.2.69/24 next-hop-vrf blue 10.1.1.1

Syntax: [no] ip route dest-ip-addr dest-mask | dest-ip-addr/mask-bits

next-hop-vrf next-hop-vrf-name next-hop-ip-addr

The dest-ip-addr is the route’s destination. The dest-mask is the network mask for the route’s
destination IP address. Alternatively, you can specify the network mask information by entering /
followed by the number of bits in the network mask. For example, you can enter 10.0.0.0
255.255.255.0 as 10.0.0.0/.24.

The next-hop-vrf-name is the name of the VRF that contains the next-hop router (gateway) for the
route.

The next-hop-ip-addr is the IP address of the next-hop router (gateway) for the route.

NOTE

The next-hop-vrf needs to be a valid VRF to be used in this command.

Configuring a static route from a non-default VRF to the default VRF

To configure an IP static route within the VRF named “red” with a destination address of
10.0.0.0/24 and a next-hop router in the default VRF and an IP address of 10.1.1.1, enter the
following from within the VRF “red” configuration context.

For the VRF configuration you need to configure a Route Descriptor (RD) and address-family IPv4
before you can enter the IP route command.

Brocade(config)# vrf red

Advertising