OS10 Enterprise Edition User Guide Release 10.4.0E(R3)

PDF

Configure static routing

You can configure a manual or static route for OSPF.

  • Configure a static route in CONFIGURATION mode.
    ip route 
                                           ip-prefix/mask {
                                           next-hop | interface 
                                           interface [
                                           route-preference]}
                                        
    • ip-prefix —IPv4 address in dotted decimal format—A.B.C.D.
    • mask —Mask in slash prefix-length format (/X).
    • next-hop —Next-hop IP address in dotted decimal format—A.B.C.D.
    • interface —Interface type with the node/slot/port information
    • route-preference —(Optional) Route-preference range—1 to 255.

Configure static routes

OS10(config)# ip route 200.200.200.0/24 10.1.1.2

View configured static routes

OS10# show ip route static
                                 Codes: C - connected
                                 S - static
                                 B - BGP, IN - internal BGP, EX - external BGP
                                 O - OSPF,IA - OSPF inter area, N1 - OSPF NSSA external type 1,
                                 N2 - OSPF NSSA external type 2, E1 - OSPF external type 1,
                                 E2 - OSPF external type 2, > - non-active route
                                 Gateway of last resort is not set
                                 Destination        Gateway                   Dist/Metric Last Change
                                 ------------------------------------------------------------------
                                 S  200.200.200.0/24 via 10.1.1.2 ethernet1/1/1  0/0      00:00:03
                              

OS10 installs a static route if the next hop is on a directly connected subnet. A next-hop that is not on the directly connected subnet which recursively resolves to a next-hop on the interface's configured subnet is also automatically configured. For example, if interface ethernet 1/1/5 has IP address on subnet 100.0.0.0/8, and if 10.1.1.0/24 recursively resolves to 100.1.1.1, the system installs the static route:

  • When the interface goes down, OS10 withdraws the route.
  • When the interface comes up, OS10 reinstalls the route.
  • When the recursive resolution is broken, OS10 withdraws the route.
  • When the recursive resolution is satisfied, OS10 reinstalls the route.

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\