Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring Static Routing

    Static routes are routes that are manually configured and entered into the routing table.

    The switch uses static routes:

    • When the switch does not have a route to a destination that has a better (lower) preference value. The preference is an arbitrary value in the range from 0 through 255 that the software uses to rank routes received from different protocols, interfaces, or remote systems. The routing protocol process generally determines the active route by selecting the route with the lowest preference value. In the given range, 0 is the lowest and 255 is the highest.
    • When the switch cannot determine the route to a destination.
    • When the switch is forwarding unroutable packets.

    To configure basic static route options using the CLI:

    • To configure the switch's default gateway:
      [edit]user@switch# set routing–options static route next-hop
    • To configure a static route and specify the next address to be used when routing traffic to the static route:
      [edit]user@switch# set routing-options static route next-hop
    • To always keep the static route in the forwarding table:
      [edit]user@switch# set routing-options static route retain
    • To prevent the static route from being readvertised:
      [edit]user@switch# set routing-options static route no-readvertise
    • To remove inactive routes from the forwarding table:
      [edit]user@switch# set routing-options static route active

    Modified: 2016-08-01