Configuring the Static Routing
Overview
The static routing is manually configured, which requires low system performance and is applicable to small-size network with simple and stable topologies.
Procedure
Before configuring the routing, make sure that the Layer 3 interface has been configured.
Step1 By default, the IP routing function is disabled. In the configuration mode, enable the IP routing function.
set ip routing enable true |
---|
Step2 Specify the destination address, and configure one of next-hop IP address and outgoing interface as needed.
set protocols static route <ip/prefixlen> next-hop <nexthop-address>
set protocols static interface-route <ip/prefixlen> interface <interface-name>
|
---|
Step3 Commit the configuration.
commit |
---|
Verifying the Configuration
After the configuration is completed, in the configuration mode, use run show route static command to view all static routing entries.
Other Configurations
To clear the configuration of static interface, use delete protocols static route<ip/prefixlen> command.
Copyright © 2024 Pica8 Inc. All Rights Reserved.