Sign In with your
Trend Micro Account
Need Help?
Need More Help?

Create a technical support case if you need further support.

How do I add or delete SMS static routes via the CLI?

    • Updated:
    • 25 Oct 2017
    • Product/Version:
    • TippingPoint SMS All
    • TippingPoint Virtual SMS
    • Platform:
Summary
Various CLI commands allows static routes to be added or deleted for the network management interface. Whether or not static route entries are included in routing tables depends on several topology factors. These include network specificity, metrics, and whether the next hop IP is on the associated interface. Other routing types, redistribution's, and firewall rules also impact static route entries in the routing tables.
Details
Public

You can add a static route to the SMS by utilizing the SMS CLI command "set route.add" or by running the "routes" CLI command.

Note: The syntax for the command would be <destination> <network mask> <gateway>

Sample:

SMS=> routes
Route options allow static routes to be added or deleted for the network management interface.
IPv4 management interface routes
Destination     Gateway         Genmask         Flags Metric Ref    Use
192.168.96.0    0.0.0.0         255.255.252.0   U     0      0        0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0
0.0.0.0         192.168.98.2    0.0.0.0         UG    0      0        0

Would you like to: [A]dd or [D]elete an IPv4 route, or [E]xit? <[A],D,E>:

 

Sample:

SMS=> set route.add

Add IPv4 static route (route.add=[]) = 172.16.0.0 255.255.0.0 192.168.111.111

Result: Success

To view the SMS routing table you can use the "get route" command:

SMS=> get route
IPv4 management interface routes (route.info) =
Destination      Gateway         Genmask        Flags    Metric    Ref    Use
192.168.111.0    0.0.0.0         255.255.255.0  U        0         0      0
172.16.0.0       192.168.111.111 255.255.0.0    UG       0         0      0
169.254.0.0      0.0.0.0         255.255.0.0    U        0         0      0
0.0.0.0          192.168.111.1   0.0.0.0        UG       0         0      0

Result: Success

 

Note: The Static route added is persistent (The route entry will remain after a system reboot)

 

How To: Delete a Static Route

To delete a static route you can use the "set route.del" command or the "routes" CLI command.


Sample:

SMS=> set route.del
Delete IPv4 static route (route.del=[]) = 172.16.0.0 255.255.0.0 192.168.111.111 

Result: Success

To view the SMS routing table you can use the "get route" command:


Sample:

SMS=> get route
IPv4 management interface routes (route.info) =
Destination      Gateway         Genmask        Flags    Metric    Ref    Use
192.168.111.0    0.0.0.0         255.255.255.0  U        0         0      0
169.254.0.0      0.0.0.0         255.255.0.0    U        0         0      0
0.0.0.0          192.168.111.1   0.0.0.0        UG       0         0      0

Premium
Internal
Rating:
Category:
Configure; Troubleshoot; Deploy
Solution Id:
TP000091956
Feedback
Did this article help you?

Thank you for your feedback!

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.

If you need additional help, you may try to contact the support team. Contact Support


To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.