Configuring static routes, Specifying the next-hop gateway, Specifying the egress interface – Brocade Network OS Administrator’s Guide v4.1.1 User Manual

Page 564: Configuring the default route, Configuring static, Routes

Advertising
background image

Configuring static routes

You can add a static route to IP route management by using the ip route commands in RBridge ID
configuration mode. With these commands, you can specify either the next-hop gateway or the egress
interface for the route.

NOTE
To make these same commands work in standalone mode, omit the rbridge-id command. For
detailed information, refer to the Network OS Command Reference.

Specifying the next-hop gateway

To configure a static route to network 10.95.7.0/24, using 10.95.6.157 as the next-hop gateway, use
the ip route command in RBridge ID configuration mode, as shown in this example:

switch (config)# rbridge-id 30

switch (config-rbridge-id-30)# ip route 10.95.7.0/24 10.95.6.157

Specifying the egress interface

To configure a static IP route with an IPv4 address on a 10-gigabit Ethernet port, enter an ip route
command such as the following.

switch (config)# rbridge-id 30

switch (config-rbridge-id-30)# ip route 192.128.2.0/24 te 101/4/1

The command configures a static IP route for destination network 192.128.2.0/24. Because an
Ethernet port is specified instead of a gateway IP address as the next hop, the Brocade device
forwards traffic for network 192.128.2.0/24 to the 10-gigabit Ethernet port 101/4/1.

This example is the same command using IPv6.

switch (config)# rbridge-id 30

switch (config-rbridge-id-30)# ipv6 route fe80::21b:edff:fe0b:3c00/64 te 101/4/1

Configuring the default route

A default route is configured with an all-zero prefix/netmask (for example, 0.0.0.0/0). The default route
is an example of a special static route with a destination prefix of zero. All traffic that does not have
other matching routes is forwarded to the default route.

Once the maximum number of routes are installed in the IP route table and if you delete some of those
routes, the clear ip route all command needs to be executed for the routes to be refreshed, so that
previously uninstalled routes can be re-installed up to the maximum limit.

The same gateway for the default route is updated on the management interface, on both
management modules MMs).

The first configured management-port default route entry becomes the gateway on the management
interface. Any other default routes configured later do not change the management interface gateway
value. When multiple such entries exist, and you remove them one by one, the last entry is updated as
the gateway.

Configuring static routes

564

Network OS Administrator’s Guide

53-1003225-04

Advertising