Configuring basic layer 3, Configuring basic layer 3 overview, Adding a static ip route – Brocade Virtual ADX Switch and Router Guide (Supporting ADX v03.1.00) User Manual
Page 33: Chapter 2, E the
Brocade Virtual ADX Switch and Router Guide
19
53-1003246-01
Chapter
2
Configuring Basic Layer 3
Configuring basic Layer 3 overview
This chapter describes how to configure static IP in the Layer 3 software image. The Layer 2 with
Layer 3 software image contains all the system-level features in the Layer 2 images, along with the
following:
•
Static IP routes
•
Routing between directly connected subnets
•
The procedures in this chapter describe how to perform the following tasks:
•
Add a static IP route.
•
Add a static entry to the ARP table.
Adding a static IP route
To add a static IP route, enter a command such as the following at the global CONFIG level of the
CLI.
Virtual ADX(config)# ip route 10.157.2.0 255.255.255.0 192.168.2.1
This commands adds a static IP route to the 10.157.2.x/24 subnet.
Syntax: [no] ip route dest-ip-addr dest-mask next-hop-ip-addr [metric]
or
Syntax: [no] ip route dest-ip-addr/mask-bits next-hop-ip-addr [metric]
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 a
forward slash followed by the number of bits in the network mask. For example, you can enter
192.0.0.0 255.255.255.0 as 192.0.0.0/.24. To configure a default route, enter 0.0.0.0 for
dest-ip-addr and 0.0.0.0 for dest-mask (or 0 for the mask-bits if you specify the address in CIDR
format). Specify the IP address of the default gateway using the next-hop-ip-addr parameter.
The next-hop-ip-addr is the IP address of the next-hop router (gateway) for the route.
The metric parameter specifies the cost of the route and can be a number from 1 – 16. The default
is 1.