Clearing ip routes – Brocade Multi-Service IronWare Routing Configuration Guide (Supporting R05.6.00) User Manual

Page 419

Advertising
background image

Multi-Service IronWare Routing Configuration Guide

391

53-1003033-02

Clearing IP routes

Clearing IP routes

You can clear the entire routing-table or specific individual routes as needed.

To clear all routes from the IPv4 routing-table, enter the following command at any level of the CLI.

Brocade# clear ip route

To clear route 10.157.22.0/24 from the IPv4 routing table, enter:

Brocade# clear ip route 10.157.22.0/24

Syntax: clear [ip l ipv6] route [ip-addr ip-mask | ip-addr/mask-bits] [import l local l import vrf

vrf-name] | nexthop nexthop_id

The following examples illustrate the use of the clear route command:

Brocade# clear ip route vrf one [<IP address> <Mask>] import

Clears the imported IPv4 routes from all other VRFs. When this command is issued with an IP
address and mask, then the imported routes matching the address and mask from other VRFs
are cleared.

Brocade# clear ip route vrf one [<IP address> <Mask> local]

Clears the IPv4 routes from specific VRF. When this command is issued with an IP address and
mask only, then the local routes matching the address and mask are cleared, otherwise this
option is not available.

Brocade# clear ip route vrf one [<IP address> <Mask>] import vrf two

Clears the imported IPv4 routes from VRF two. When this command is issued with an IP
address and mask, then imported routes matching the address and mask from VRF two are
cleared.

Brocade# clear ip route vrf one [<IP address> <Mask>] import vrf default-vrf

Clears the imported IPv4 routes from the default-vrf. When this command is issued with an IP
address and mask, then imported routes matching the address and mask from the default VRF
are cleared.

Brocade# clear ipv6 route

Clears all routes from the IPv6 routing-table.

Brocade# clear ipv6 route 10.157.22.0/24

Clears route 10.157.22.0/24 from the IPv6 routing-table.

Brocade# clear ipv6 route vrf one [IPv6 addr/Prefix length] import vrf two

Clears the imported IPv6 routes from VRF two. When this command is issued with an IPv6
address and prefix length, then the imported routes matching the IPv6 address and prefix
length from VRF two are removed.

Brocade# clear ipv6 route vrf one [IPv6 addr/Prefix length] import vrf default-vrf

Clears the imported IPv6 routes from the default-vrf. When this command is issued with an
IPv6 address and prefix length, then the imported routes matching the IPv6 address and prefix
length from the default VRF are removed.

Brocade# clear ipv6 route nexthop nexthop_ID

Advertising