Support Support Downloads Knowledge Base Apex Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[ScreenOS] Cannot Remove a Host or Connected route bound to an Interface

0

0

Article ID: KB5919 KB Last Updated: 22 Jun 2010Version: 4.0
Summary:
Cannot Remove a Host or Connected route bound to an Interface
Symptoms:
Cannot remove a host or connected route bound to an interface.
For example:

The following routes exist in the routing table, as shown with get route:

IPv4 Dest-Routes for <trust-vr> (7 entries)
--------------------------------------------------------------------------------------
ID IP-Prefix Interface Gateway P Pref Mtr Vsys
--------------------------------------------------------------------------------------
 * 9 0.0.0.0/0 mgt 10.204.115.254 S 20 1 Root
* 2 10.204.115.0/24 mgt 0.0.0.0 C 0 0 Root
 
* 3 10.204.115.24/32 mgt 0.0.0.0 H 0 0 Root
 


If I try to remove the Host or Connected route bound to an interface, the following error is displayed.

VRoute: can't be removed error


Let us first try to remove host route from the above routing table.

nsisg1000-> unset route 10.204.115.24/32 interface mgt

Error: Route IP (10.204.115.24) mask (255.255.255.255) interface (mgt) is a host route. Can't be deleted.
total routes deleted = 0
VRoute: can't be removed


Now, let us try to remove the connected route from the routing table mentioned above.
 
nsisg1000-> unset route 10.204.115.0/24 interface mgt

Error: Route IP (10.204.115.24) mask (255.255.255.0) interface (mgt) is a connected route. Can't be deleted.
total routes deleted = 0
VRoute: can't be removed

Solution:

This is by design as Host/Connected route associated to an interface IP address cannot be removed. The only way to remove that route is to unset the interface, or re-assigned the interface IP to a different network.



Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search