Got it

How to Configure Static Route

Created: Apr 30, 2019 12:09:47Latest reply: Apr 30, 2019 12:29:20 565 1 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hi, there.


Can help give one example of how to configure static route?


Thank you.

Featured Answers
Gavin.Liu
Created Apr 30, 2019 12:29:20

Hey there!


MA5608T(config)#ip route-static
{ default-preference<K>|ip_addr<I><X.X.X.X>|selection-rule<K>|track<K>|vpn-instance<K> }:0.0.0.0
{ integer<U><0,32>|ip_addr<I><X.X.X.X> }:0.0.0.0
{ ip_addr<I><X.X.X.X>|meth<K>|null<K>|vlanif<K> }:100.100.100.100
{ <cr>|description<K>|permanent<K>|preference<K>|tag<K>|track<K> }:

Command:


ip route-static  0.0.0.0 0.0.0.0 100.100.100.100

MA5608T(config)#undo   ip route-static  0.0.0.0 0.0.0.0 100.100.100.100
{ <cr>|permanent<K>|preference<K>|tag<K>|track<K> }:

Command:


undo ip route-static  0.0.0.0 0.0.0.0 100.100.100.100

MA5608T(config)#
MA5608T(config)#
MA5608T(config)#display ip routing-table
{ <cr>|acl<K>|all-vpn-instance<K>|ip-prefix<K>|ip_addr<I><X.X.X.X>|limit<K>|protocol<K>|statistics<K>|time-range<K>|verbose<K>|vpn-instance<K>||<K> }:

Command:


display ip routing-table


Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 5        Routes : 5

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   Static  60   0          RD   10.159.240.1    vlanif100
   10.159.240.0/23  Direct  0    0           D   10.159.240.122  vlanif100
10.159.240.122/32  Direct  0    0           D   127.0.0.1       vlanif100
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0

MA5608T(config)#


Thank you.

View more
  • x
  • convention:

All Answers

Hey there!


MA5608T(config)#ip route-static
{ default-preference<K>|ip_addr<I><X.X.X.X>|selection-rule<K>|track<K>|vpn-instance<K> }:0.0.0.0
{ integer<U><0,32>|ip_addr<I><X.X.X.X> }:0.0.0.0
{ ip_addr<I><X.X.X.X>|meth<K>|null<K>|vlanif<K> }:100.100.100.100
{ <cr>|description<K>|permanent<K>|preference<K>|tag<K>|track<K> }:

Command:


ip route-static  0.0.0.0 0.0.0.0 100.100.100.100

MA5608T(config)#undo   ip route-static  0.0.0.0 0.0.0.0 100.100.100.100
{ <cr>|permanent<K>|preference<K>|tag<K>|track<K> }:

Command:


undo ip route-static  0.0.0.0 0.0.0.0 100.100.100.100

MA5608T(config)#
MA5608T(config)#
MA5608T(config)#display ip routing-table
{ <cr>|acl<K>|all-vpn-instance<K>|ip-prefix<K>|ip_addr<I><X.X.X.X>|limit<K>|protocol<K>|statistics<K>|time-range<K>|verbose<K>|vpn-instance<K>||<K> }:

Command:


display ip routing-table


Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 5        Routes : 5

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   Static  60   0          RD   10.159.240.1    vlanif100
   10.159.240.0/23  Direct  0    0           D   10.159.240.122  vlanif100
10.159.240.122/32  Direct  0    0           D   127.0.0.1       vlanif100
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0

MA5608T(config)#


Thank you.

View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.