beautypg.com

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

Page 819

background image

Multi-Service IronWare Switching Configuration Guide

789

53-1003036-02

Configuring static routes

19

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 default-vrf

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 default-vrf option specifies that the next-hop router (gateway) for the route is in the default VRF.

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 an IP static interface route across VRFs

You can configure an IP Static interface route from one VRF to an IP interface in a different VRF.
This allows you to connect from one VRF to a host that is directly connected to a port in a different
VRF. You can do this by configuring a static route to point to the interface that is directly connected
to the device with the IP address you want to reach. The following example defines two VRFs as
follows:

VRF A :

Route Distinguisher = 1:1
Interface: ethernet port 1/1
IP address: 10.0.0.1/24

VRF B :

Route Distinguisher = 2:2
Interface: ethernet port 1/2
IP address: 10.0.0.1/24

Brocade(config)# vrf A

Brocade(config-vrf-A)# rd 1:1

Brocade(config-vrf-A)# exit

Brocade(config)# interface ethernet 1/1

Brocade(config-if-e10000-1/1)# vrf forwarding A

Brocade(config-if-e10000-1/1)# ip address 10.0.0.1/24

Brocade(config-if-e10000-1/1)# exit

Brocade(config)# vrf B

Brocade(config-vrf-B)# rd 2:2

Brocade(config-vrf-B)# exit

Brocade(config)# interface ethernet 1/2

Brocade(config-if-e10000-1/2)# vrf forwarding B

Brocade(config-if-e10000-1/2)# ip address 10.0.0.1/24

The following example configures an IP Static interface route from VRF A to a network with IP
address 10.0.0.0/24, which is directly connected to ethernet port 1/2 in VRF B.

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