Security

 View Only
Expand all | Collapse all

How to remove static route from clearpass

This thread has been viewed 20 times
  • 1.  How to remove static route from clearpass

    Posted Aug 26, 2021 06:04 PM
    I'm trying to remove a static route for GRE tunnel that I entered the incorrect IP. I can't figure out the command to remove it. 

    10.255.0.0/18 via 1.1.1.1 dev gre1   <static table>

    1.1.1.2 dev gre1 proto kernel scope link src 1.1.1.1  <Main Table>


    Usage:

    network ip del <-i <id>>
    Where
    -i -- Id of the network ip rule to be deleted

    I'm unsure what is the ID its referring to. I added it with this command   network ip del gre1 -d 10.255.0.0/18 -g 1.1.1.1

    Just need some help with the syntax. 



    ------------------------------
    Kelly L
    ------------------------------


  • 2.  RE: How to remove static route from clearpass

    Posted Aug 27, 2021 04:16 AM
    Hi Kelly,

    you can get a list of all routes with this command:
    [appadmin@clearpass-a]# network ip list
    =======================================================================
                            IP Rule Information
    -----------------------------------------------------------------------
    0:	from all lookup local
    204:	from 10.104.104.40 lookup mgmt
    220:	from all lookup 220
    10020:	from all to 10.104.104.0/24 lookup mgmt
    10040:	from 10.104.104.41 lookup mgmt
    32766:	from all lookup main
    32767:	from all lookup default
    
    =======================================================================
                      Route Information for Table main
    -----------------------------------------------------------------------
    default via 10.104.104.1 dev eth0
    10.104.104.0/24 dev eth0 proto kernel scope link src 10.104.104.41
    127.17.0.0/16 dev docker0 proto kernel scope link src 127.17.0.1 linkdown
    169.254.0.0/16 dev eth0 scope link metric 1002
    169.254.0.0/16 dev eth1 scope link metric 1003 linkdown
    
    =======================================================================
                     Route Information for Table static
    -----------------------------------------------------------------------
    
    =======================================================================
                      Route Information for Table mgmt
    -----------------------------------------------------------------------
    default via 10.104.104.1 dev eth0
    10.104.104.0/24 dev eth0 scope link src 10.104.104.41
    
    =======================================================================
                      Route Information for Table data
    -----------------------------------------------------------------------
    
    =======================================================================
                   Route Information for Table IPSec(220)
    -----------------------------------------------------------------------
    
    =======================================================================
    
    There you will find the ID of route to delete. 

    BR
    Florian

    ------------------------------
    -------------------------------------------------------------------------------
    Florian Baaske
    -------------------------------------------------------------------------------
    Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.
    -------------------------------------------------------------------------------
    Also visit the AirHeads Youtube Channel:
    https://www.youtube.com/channel/UCFJCnuXFGfEbwEzfcgU_ERQ
    -------------------------------------------------------------------------------
    Feel free to visit my personal Blog
    https://www.flomain.de
    ------------------------------