Creating A Static Route; Creating A Default Route - Alcatel OmniSwitch 6624 Network Configuration Manual

Hide thumbs Also See for OmniSwitch 6624:
Table of Contents

Advertisement

IP Forwarding

Creating a Static Route

Static routes are user-defined routes that allow you to define, or customize, an explicit path to an IP
network segment, which is then added to the IP Forwarding table. Static routes can be created between
VLANs to enable devices on these VLANs to communicate.
Use the
ip static-route
the route as well as the IP address of the first hop (gateway) used to reach the destination. For example, to
create a static route to IP address 171.11.0.0 through gateway 171.11.2.1 you would enter:
-> ip static-route 171.11.0.0 gateway 171.11.2.1
The subnet mask is not required if you want to use the natural subnet mask. By default, the switch imposes
a natural mask on the IP address. In the above example, the Class B mask of 255.255.0.0 is implied. If you
do not want to use the natural mask, you must enter a subnet mask. For example, to create a static route to
IP address 10.255.11.0, you would have to enter the Class C mask of 255.255.255.0:
-> ip static-route 10.255.11.0 mask 255.255.255.0 gateway 171.11.2.1
When you create a static route, the default metric value of 1 is used. However, you can change the priority
of the route by increasing its metric value. The lower the metric value, the higher the priority. This metric
is added to the metric cost of the route. The metric range is 1 to 15.
For example:
-> ip static-route 10.255.11.0 mask 255.255.255.0 gateway 171.11.2.1 metric 5
Static routes do not age out of the IP Forwarding table; you must delete them from the table. Use the no ip
static route command to delete a static route. You must specify the destination IP address of the route as
well as the IP address of the first hop (gateway). For example, to delete a static route to IP address
171.11.0.0 through gateway 171.11.2.1 you would enter:
-> no ip static-route 171.11.0.0 gateway 171.11.2.1
Use the
show ip route
Note. A static route is not active unless the gateway it is using is active.

Creating a Default Route

A default route can be configured for packets destined for networks that are unknown to the switch. Use
the ip static-route command to create a default route. You must specify a default route of 0.0.0.0 with a
subnet mask of 0.0.0.0, and the IP address of the next hop (gateway). For example, to create a default route
through gateway 171.11.2.1 you would enter:
-> ip static-route 0.0.0.0 mask 0.0.0.0 gateway 171.11.2.1
page 12-6
command to create a static route. You must specify the destination IP address of
command to display the IP Forwarding table.
OmniSwitch 6624/6648 Network Configuration Guide
Configuring IP
April 2004

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omniswitch 6648

Table of Contents