![MRV Communications OptiSwitch-2400/L3 User Manual Download Page 56](http://html1.mh-extra.com/html/mrv-communications/optiswitch-2400-l3/optiswitch-2400-l3_user-manual_1846068056.webp)
OptiSwitch 2400/L3
Configuring Routing Protocols
C
HAPTER
4
48
Routing Protocols
Routing protocols are the formulas used by routers to decide
where to forward the data packets. The routing protocol
determines the path and specifies how routers communicate and
share information with each other. If you do not use a static,
predetermined route, various routing protocols exist that enable
the network to act dynamically and switch paths when necessary.
Static Routes
A static route indicates a permanent transmission path to another
network. You can restrict the path of data packets by configuring
a static route. The route remains in the routing tables until you
remove it. However, if the interface used to reach the next hop in
the static route becomes disabled, the static route is
automatically removed from the IP routing table.
{
XE "Routing
protocols:static routes"
}{
XE "Static routes"
}
To configure a static route:
1
From the enable mode, type
configure terminal
to begin
configuration.
{
XE "Configuration:static routes"
}{
XE "Static
routes:configuring"
}
2
Type
ip
route
at the prompt. You can then enter
?
to display
your command options. You can also enter the static route IP
destination address with or without the subnet mask, followed
by the interface name or gateway IP.
OS2400(config)#
ip
route
{ip address/ip address and subnet
mask} {if name/gateway ip}
3
Type
exit
to return to the previous mode.
4
Type
write file
to save the configuration changes to the
configuration files.
The following example displays the command line for configuring
static routes:
OS2400> enable
OS2400# config term
OS2400(config)# ip route
A.B.C.D IP destination prefix
A.B.C.D/M IP destination prefix (e.g. 10.0.0.0/8)
OS2400(config)# ip route 192.168.1.1/24
A.B.C.D IP gateway address
INTERFACE IP gateway interface name
OS2400(config)# ip route 192.168.1.1/24 vif1