Cisco IOS IP Command Reference, Volume 2 of 4: Routing Protocols, Release 12.3 T
IP Routing Protocols Commands: C through H

Table Of Contents

capability lls

capability transit

capability vrf-lite

clear bgp nsap

clear bgp nsap dampening

clear bgp nsap external

clear bgp nsap flap-statistics

clear bgp nsap peer-group

clear ip bgp

clear ip bgp dampening

clear ip bgp external

clear ip bgp flap-statistics

clear ip bgp in prefix-filter

clear ip bgp peer-group

clear ip bgp table-map

clear ip bgp update-group

clear ip eigrp neighbors

clear ip eigrp vrf neighbor

clear ip ospf

clear ip ospf traffic

clear ip prefix-list

clear isis lsp-full

clear isis rib redistribution

compatible rfc1583

continue

dampening

default-information

default-information originate (BGP)

default-information originate (IS-IS)

default-information originate (OSPF)

default-information originate (RIP)

default-metric (BGP)

default-metric (EIGRP)

default-metric (OSPF)

default-metric (RIP)

discard-route

distance (IP)

distance bgp

distance eigrp

distance ospf

distribute-list in (BGP)

distribute-list in (IP)

distribute-list out (BGP)

distribute-list out (IP)

domain-password

eigrp log-neighbor-changes

eigrp log-neighbor-warnings

eigrp router-id

eigrp stub

exit peer-policy

exit peer-session

exit-address-family

export map

fast-flood

flash-update-threshold

hello padding

hostname dynamic


capability lls

To enable the use of the Link-Local Signalling (LLS) data block in originated OSPF packets and reenable OSPF nonstop forwarding (NSF) awareness, use the capability lls command in router configuration mode. To disable LLS and OSPF NSF awareness, use the no form of this command.

capability lls

no capability lls

Syntax Description

This command has no arguments or keywords.

Defaults

LLS is enabled.

Command Modes

Router configuration

Command History

Release
Modification

12.2(15)T

This command was introduced.


Usage Guidelines

You might want to disable NSF awareness by disabling the use of the LLS data block in originated OSPF packets. You might want to disable NSF awareness if the router has no applications using LLS.

If NSF is configured and you try to disable LLS, you will receive the error message, "OSPF Non-Stop Forwarding (NSF) must be disabled first."

If LLS is disabled and you try to configure NSF, you will receive the error message, "OSPF Link-Local Signaling (LLS) capability must be enabled first."

Examples

The following example disables LLS support and OSPF NSF awareness:

router ospf 2
 no capability lls

capability transit

To reenable Open Shortest Path First (OSPF) area capability transit after it has been disabled, use the capability transit command in router configuration mode. To disable OSPF area capability transit on all areas for a router process, use the no form of this command.

capability transit

no capability transit

Syntax Description

This command has no arguments or keywords.

Defaults

OSPF area transit capability is enabled.

Command Modes

Router configuration

Command History

Release
Modification

12.0(27)S

This command was introduced.

12.3(7)T

This command was integrated into Cisco IOS Release 12.3(7)T.

12.2(25)S

This command was integrated into Cisco IOS Release 12.2(25)S.


Usage Guidelines

OSPF area capability transit is enabled by default, allowing the OSPF Area Border Router to install better-cost routes to the backbone area through the transit area instead of the virtual links. If you want to retain a traffic pattern through the virtual-link path, you can disable capability transit by entering the no capability transit command. If paths through the transit area are discovered, they are most likely to be more optimal paths, or at least equal to, the virtual-link path. To reenable capability transit, enter the capability transit command.

If you need to verify whether OSPF area transit capability is enabled for a specific routing process, enter the show ip ospf command.

Examples

The following example shows how to disable OSPF area transit capability on all areas for a router process named ospf 1. A show ip ospf command is issued first to display the current areas that have area transit capability enabled. The no capability transit command is then entered to disable OSPF area transit capability on all areas for the router process ospf 1.

Router# show ip ospf

 Routing Process "ospf 1" with ID 10.1.1.1
 Supports only single TOS(TOS0) routes
 Supports opaque LSA
 Supports Link-local Signaling (LLS)
!Supports area transit capability
It is an area border router
 Initial SPF schedule delay 5000 msecs
 Minimum hold time between two consecutive SPFs 10000 msecs
 Maximum wait time between two consecutive SPFs 10000 msecs
 Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
 LSA group pacing timer 240 secs
 Interface flood pacing timer 33 msecs
 Retransmission pacing timer 66 msecs
 Number of external LSA 8. Checksum Sum 0x02853F
 Number of opaque AS LSA 0. Checksum Sum 0x000000
 Number of DCbitless external and opaque AS LSA 0
 Number of DoNotAge external and opaque AS LSA 0
 Number of areas in this router is 2. 2 normal 0 stub 0 nssa
!Number of areas transit capable is 1
External flood list length 0
    Area BACKBONE(0)
        Number of interfaces in this area is 3
        Area has no authentication
        SPF algorithm last executed 00:02:21.524 ago
        SPF algorithm executed 11 times
        Area ranges are
        Number of LSA 49. Checksum Sum 0x19B5FA
        Number of opaque link LSA 0. Checksum Sum 0x000000
        Number of DCbitless LSA 0
        Number of indication LSA 0
        Number of DoNotAge LSA 38
        Flood list length 0
    Area 1
        Number of interfaces in this area is 3
       !This area has transit capability: Virtual Link Endpoint
        Area has no authentication
        SPF algorithm last executed 00:02:36.544 ago
        SPF algorithm executed 9 times
        Area ranges are
        Number of LSA 42. Checksum Sum 0x1756D5
        Number of opaque link LSA 0. Checksum Sum 0x000000
        Number of DCbitless LSA 0
        Number of indication LSA 0
        Number of DoNotAge LSA 0
        Flood list length 0

Router(config) router ospf 1
Router(router-config) no capability transit

Related Commands

Command
Description

show ip ospf

Displays general information about OSPF routing processes.


capability vrf-lite

To suppress the Provider Edge (PE) specific checks on a router when the OSPF process is associated with the VRF, use the capability vrf-lite command in router configuration mode. To restore the checks, use the no form of this command.

capability vrf-lite

no capability vrf-lite

Syntax Description

This command has no arguments or keywords.

Defaults

Disabled. PE specific checks are performed if the process is associated with VRF command modes.

Command Modes

Router configuration

Command History

Release
Modification

12.0(21)ST

This command was introduced.

12.0(22)S

This command was integrated into Cisco IOS Release 12.0(22)S.

12.2(8)B

This command was integrated into Cisco IOS Release 12.2(8)B.


Usage Guidelines

This command works only if the OSPF process is associated with the VRF.

When the OSPF process is associated with the VRF, several checks are performed when link-state advertisements (LSAs) are received. PE checks are needed to prevent loops when the PE is performing a mutual redistribution between OSPF and BGP interfaces.

Type-3 LSA received

The DN bit is checked. If the DN bit is set, the Type-3 LSA is not considered during the SPF calculation.

Type-5 or -7 LSA received

If the Tag in the LSA is equal to the VPN-tag, the Type-5 or-7 LSA is not considered during the SPF calculation.


In some situations, performing PE checks might not be desirable. The concept of VRFs can be used on a router that is not a PE router (that is, a router that is not running BGP). With the capability vrf-lite command, the checks can be turned off to allow correct population of the VRF routing table with routes to IP prefixes.

Examples

This example shows a router configured with multi-VRF.


router ospf 100 vrf grc
 capability vrf-lite

clear bgp nsap

To clear and then reset Connectionless Network Service (CLNS) network service access point (NSAP) Border Gateway Protocol (BGP) sessions, use the clear bgp nsap command in privileged EXEC mode.

clear bgp nsap {* | as-number | ip-address} [soft] [in | out]

Syntax Description

*

Clears and then resets all current BGP sessions.

as-number

Clears and then resets BGP sessions for BGP neighbors within the specified autonomous system.

ip-address

Clears the TCP connection to the specified BGP neighbor and removes all routes learned from the connection from the BGP table. The TCP connections are then reset.

soft

(Optional) Soft reset. Allows routing tables to be reconfigured and activated without clearing the BGP session.

in | out

(Optional) Triggers inbound or outbound soft reconfiguration. If the in or out option is not specified, both inbound and outbound soft reset are triggered.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.2(8)T

This command was introduced.


Usage Guidelines

The clear bgp nsap command is similar to the clear ip bgp command, except that it is NSAP address family-specific.

Use of the clear bgp nsap command allows a reset of the neighbor sessions with varying degrees of severity, depending on the specified keywords and arguments.

Use the * keyword to reset all neighbor sessions. The software will clear and then reset the neighbor connections. Use this form of the command in the following situations:

BGP timer specification change

BGP administrative distance changes

Use the soft out keywords to clear and reset only the outbound neighbor connections. Inbound neighbor sessions will not be reset. Use this form of the command in the following situations:

Additions or changes are made to the BGP-related access lists

BGP-related weights change

BGP-related distribution lists change

BGP-related route maps change

Use the in keyword to clear only the inbound neighbor connections. Outbound neighbor sessions will not be reset. Use this form of the command in the following situations:

BGP-related access lists change or get additions

BGP-related weights change

BGP-related distribution lists change

BGP-related route maps change

Examples

In the following example, the inbound session with the neighbor 172.20.16.6 is cleared without the outbound session being reset:

Router# clear bgp nsap 172.20.16.6 in

In the following example, a soft clear is applied to outbound sessions with the neighbors in autonomous system 65000 without the inbound session being reset:

Router# clear bgp nsap 65000 soft out

Related Commands

Command
Description

show bgp nsap

Displays entries in the BGP routing table for the NSAP address family.


clear bgp nsap dampening

To clear Border Gateway Protocol (BGP) route dampening information for the network service access point (NSAP) address family and unsuppress the suppressed routes, use the clear bgp nsap dampening command in privileged EXEC mode.

clear bgp nsap dampening [nsap-prefix]

Syntax Description

nsap-prefix

(Optional) NSAP prefix about which to clear dampening information. This argument can be up to 20 octets long.


Defaults

When the nsap-prefix argument is not specified, the clear bgp nsap dampening command clears route dampening information for the entire BGP routing table for the NSAP address family.

Command Modes

Privileged EXEC

Command History

Release
Modification

12.2(8)T

This command was introduced.


Usage Guidelines

The clear bgp nsap dampening command is similar to the clear ip bgp dampening command, except that it is specific to the NSAP address family.

Examples

In the following example, route dampening information is cleared for the route to NSAP prefix 49.6001 and locally suppressed routes are unsuppressed:

Router# clear bgp nsap dampening 49.6001

Related Commands

Command
Description

bgp dampening

Enables BGP route dampening or changes various BGP route dampening factors.

show bgp nsap dampened-paths

Displays BGP dampened routes for the NSAP address family.


clear bgp nsap external

To clear all external BGP (eBGP) peers for the network service access point (NSAP) address family, use the clear bgp nsap external command in privileged EXEC mode.

clear bgp nsap external [soft] [in | out]

Syntax Description

soft

(Optional) Soft reset. Does not reset the session.

in | out

(Optional) Triggers inbound or outbound soft reconfiguration. If the in or out option is not specified, both inbound and outbound soft reset are triggered.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.2(8)T

This command was introduced.


Usage Guidelines

The clear bgp nsap external command is similar to the clear ip bgp external command, except that it is specific to the NSAP address family.

Examples

In the following example, the inbound sessions with external BGP peers are cleared without the outbound sessions being reset:

Router# clear bgp nsap external soft in

Related Commands

Command
Description

clear bgp nsap

Resets an NSAP BGP connection by dropping all neighbor sessions.


clear bgp nsap flap-statistics

To clear Border Gateway Protocol (BGP) flap statistics for the network service access point (NSAP) address family, use the clear bgp nsap flap-statistics command in privileged EXEC mode.

clear bgp nsap flap-statistics [nsap-prefix] [regexp regexp | filter-list access-list-number]

Syntax Description

nsap-prefix

(Optional) NSAP prefix about which to clear dampening information. This argument can be up to 20 octets long.

regexp regexp

(Optional) Clears flap statistics for all the paths that match the regular expression.

filter-list access-list-number

(Optional) Clears flap statistics for all the paths that pass the access list. The acceptable access list number range is from 1 to 199.


Defaults

No statistics are cleared.

If no arguments or keywords are specified, the software clears flap statistics for all routes.

Command Modes

Privileged EXEC

Command History

Release
Modification

12.2(8)T

This command was introduced.


Usage Guidelines

The clear bgp nsap flap-statistics command is similar to the clear ip bgp flap-statistics command, except that it is specific to the NSAP address family.

The flap statistics for a route are also cleared when an NSAP BGP peer is reset. Although the reset withdraws the route, no penalty is applied in this instance even though route flap dampening is enabled.

Examples

In the following example, all of the flap statistics for paths that pass access list 3 are cleared:

Router# clear bgp nsap flap-statistics filter-list 3

Related Commands

Command
Description

bgp dampening

Enables BGP route dampening or changes various BGP route dampening factors.

show bgp nsap flap-statistics

Displays BGP flap statistics for the NSAP address family.


clear bgp nsap peer-group

To clear the Border Gateway Protocol (BGP) TCP connections to all members of a BGP peer group for the network service access point (NSAP) address family, use the clear bgp nsap peer-group command in privileged EXEC mode.

clear bgp nsap peer-group peer-group-name

Syntax Description

peer-group-name

Name of the NSAP BGP peer group.


Defaults

No BGP TCP connections are cleared.

Command Modes

Privileged EXEC

Command History

Release
Modification

12.2(8)T

This command was introduced.


Usage Guidelines

The clear bgp nsap peer-group command is similar to the clear ip bgp peer-group command, except that it is specific to the NSAP address family.

Examples

In the following example, the BGP TCP connections are cleared for all members of the NSAP BGP peer group named internal:

Router# clear bgp nsap peer-group internal

Related Commands

Command
Description

neighbor peer-group (assigning members)

Configures a BGP neighbor to be a member of a peer group.


clear ip bgp

To reset Border Gateway Protocol (BGP) connections using hard or soft reconfiguration, use the clear ip bgp command in privileged EXEC mode.

clear ip bgp {* | all | ipv4 {multicast | unicast} as-number | ipv6 {multicast | unicast} as-number | vpnv4 {unicast} as-number | as-number | neighbor-address} [soft [in | out]]

Syntax Description

*

Specifies that all current BGP sessions will be reset.

all

(Optional) Specifies autonomous system peers for all address families.

ipv4 | ipv6 | vpn4

(Optional) Specifies the reset of IPv4, IPv6, or VPNn4 address family sessions.

multicast

(Optional) Specifies multicast address family sessions.

unicast

(Optional) Specifies unicast address family sessions.

as-number

Specifies that sessions with BGP peers in the specified autonomous system will be reset.

neighbor-address

Specifies that only the identified BGP neighbor will be reset. The value for this argument can be an IPv4 or IPv6 address.

soft

(Optional) Initiates a soft reset. Does not tear down the session.

in | out

(Optional) Initiates inbound or outbound reconfiguration. If either the in or out keywords are is not specified, both inbound and outbound sessions are reset.


Defaults

No default behavior or values

Command Modes

Privileged EXEC

Command History

Release
Modification

10.0

This command was introduced.

12.0(6)T

The dynamic inbound soft reset capability was added.

12.0(2)S

The dynamic inbound soft reset capability was added.


Usage Guidelines

The clear ip bgp command can be used to initiate a hard reset or soft reconfiguration. A hard reset tears down and rebuilds the specified peering sessions and rebuilds the BGP routing tables. A soft reconfiguration uses stored prefix information to reconfigure and activate BGP routing tables without tearing down existing peering sessions. Soft reconfiguration uses stored update information, at the cost of additional memory for storing the updates, to allow you to apply new BGP policy without disrupting the network. Soft reconfiguration can be configured for inbound or outbound sessions.

Generating Updates From Stored Information

To generate new inbound updates from stored update information (rather than dynamically) without resetting the BGP session, you must preconfigure the local BGP router using the neighbor soft-reconfiguration inbound command. This preconfiguration causes the software to store all received updates without modification regardless of whether an update is accepted by the inbound policy. Storing updates is memory intensive and should be avoided if possible.

Outbound BGP soft configuration has no memory overhead and does not require any preconfiguration. You can trigger an outbound reconfiguration on the other side of the BGP session to make the new inbound policy take effect.

Use this command whenever any of the following changes occur:

Additions or changes to the BGP-related access lists

Changes to BGP-related weights

Changes to BGP-related distribution lists

Changes to BGP-related route maps

Dynamic Inbound Soft Reset

The route refresh capability, as defined in RFC-2918, allows the local router to reset inbound routing tables dynamically by exchanging route refresh requests to supporting peers. The route refresh capability does not store update information locally for non-disruptive policy changes. It instead relies on dynamic exchange with supporting peers. Route refresh is advertised through BGP capability negotiation. All BGP routers must support the route refresh capability.

To determine if a BGP router supports this capability, use the show ip bgp neighbors command. The following message is displayed in the output when the router supports the route refresh capability:

Received route refresh capability from peer.

If all BGP routers support the route refresh capability, use the clear ip bgp {* | address | peer-group-name} in command. You need not use the soft keyword, because soft reset is automatically assumed when the route refresh capability is supported.


Note After configuring a soft reset (inbound or outbound), it is normal for the BGP routing process to hold memory. The amount of memory that is held depends on the size of routing tables and the percentage of the memory chunks that are utilized. Partially used memory chunks will be used or released before more memory is allocated from the global router pool.


Examples

In the following example, a soft reconfiguration is initiated for the inbound session with the neighbor 10.108.1.1, and the outbound session is unaffected:

Router# clear ip bgp 10.100.0.1 soft in

In the following example, a hard reset is initiated for sessions with all routers in the peer group named CORP:

Router# clear ip bgp CORP 

Related Commands

Command
Description

neighbor soft-reconfiguration

Configures the Cisco IOS software to start storing updates.

show ip bgp

Displays entries in the BGP routing table.


clear ip bgp dampening

To clear BGP route dampening information and to unsuppress suppressed routes, use the clear ip bgp dampening command in privileged EXEC mode.

clear ip bgp [ipv4 {multicast | unicast} | ipv6 {multicast | unicast} | vpnv4 {unicast}] dampening [neighbor-address] [ipv4-mask]

Syntax Description

ipv4 | ipv6 | vpn4

(Optional) Specifies the reset of IPv4, IPv6, or VPNn4 address family sessions.

multicast

(Optional) Specifies multicast address family sessions.

unicast

(Optional) Specifies unicast address family sessions.

neighbor-address

(Optional) IP address of the neighbor or network to clear dampening information. The value for this argument can be an IPv4 or IPv6 address.

ipv4-mask

(Optional) IPv4 network mask.


Defaults

When entering the neighbor-address argument, you will be prompted for an IPv4 address if no address family keyword is specified.

Command Modes

Privileged EXEC

Command History

Release
Modification

11.0

This command was introduced.


Usage Guidelines

The clear ip bgp dampening is used to cleared stored route dampening information. If no keywords or arguments are entered, route dampening information for the entire routing table is cleared.

Examples

The following example clears route dampening information for VPNv4 address family prefixes from network 192.168.10.0/24, and unsuppresses its suppressed routes.

Router# clear ip bgp vpnv4 unicast dampening 192.168.10.0 255.255.255.0 

Related Commands

Command
Description

bgp dampening

Enables BGP route dampening or configures BGP route dampening parameters.

clear ip bgp flap-statistics

Clears BGP route dampening flap-statistics.

set dampening

Sets set BGP route dampening parameters in a route map.

show ip bgp dampened-paths

Displays BGP dampened routes.


clear ip bgp external

To clear external Border Gateway Protocol (eBGP) peering sessions, use the clear ip bgp external command in privileged EXEC mode.

clear ip bgp external [ipv4 {multicast | unicast} | ipv6 {multicast | unicast} | vpnv4 {unicast}] [vrf name] [soft [in | out]]

Syntax Description

ipv4 | ipv6 | vpn4

(Optional) Specifies the reset of IPv4, IPv6, or VPNn4 address family sessions.

multicast

(Optional) Specifies multicast address family sessions.

unicast

(Optional) Specifies unicast address family sessions.

vrf name

(Optional) Specifies a VPN routing and forwarding instance.

soft

(Optional) Initiates a soft reset. Does not tear down the session.

in | out

(Optional) Initiates inbound or outbound reconfiguration. If either the in or out keywords are is not specified, both inbound and outbound sessions are reset.


Defaults

No default behavior or values

Command Modes

Privileged EXEC

Command History

Release
Modification

12.0(2)S

This command was introduced.


Usage Guidelines

The clear ip bgp external command is used to reset eBGP peering sessions. The usage guidelines for the clear ip bgp command apply to this command.

Examples

In the following example, a soft reconfiguration is configured for all inbound eBGP peering sessions:

Router# clear ip bgp external soft in 

In the following example, all outbound address family IPv4 multicast eBGP peering sessions are cleared:

Router# clear ip bgp external ipv4 multicast out

Related Commands

Command
Description

clear ip bgp

Resets a BGP connection or session.

neighbor soft-reconfiguration

Configures the Cisco IOS software to start storing updates.

show ip bgp

Displays entries in the BGP routing table.


clear ip bgp flap-statistics

To clear BGP route dampening flap statistics, use the clear ip bgp flap-statistics command in privileged EXEC mode.

clear ip bgp flap-statistics [neighbor-address [ipv4-mask]] [regexp regexp | filter-list extcom-number]

clear ip bgp [neighbor-address] [ipv4 {multicast | unicast} | ipv6 {multicast | unicast} | vpnv4 {unicast}] flap-statistics

Syntax Description

neighbor-address

(Optional) Clears flap statistics for the specified IP address. If this argument is placed before flap-statistics keyword, the router clears flap statistics for all paths from the specified neighbor or network. The value for this argument can be an IPv4 or IPv6 address.

ipv4-mask

(Optional) IPv4 network mask.

ipv4 | ipv6 | vpn4

(Optional) Specifies the reset of IPv4, IPv6, or VPNn4 address family sessions.

multicast

(Optional) Specifies multicast address family sessions.

unicast

(Optional) Specifies unicast address family sessions.

regexp regexp

(Optional) Clears flap statistics for all the paths that match the regular expression.

filter-list extcom-number

(Optional) Clears flap statistics for all the paths that pass the access list. The access list is specified using an extended community list number.


Defaults

When entering the neighbor-address argument, you will be prompted for an IPv4 address if no address family keyword is specified.

Command Modes

Privileged EXEC

Command History

Release
Modification

11.0

This command was introduced.


Usage Guidelines

The clear ip bgp flap-statistics command is used to clear the accumulated penalty for routes that are received on a router that has BGP dampening enabled. If no arguments or keywords are specified, flap statistics are cleared for all routes. Flap statistics are also cleared when the peer is stable for the half-life time period.

Examples

In the following example, all of the flap statistics are cleared for paths that pass filter list 3:

Router# clear ip bgp flap-statistics filter-list 3 

Related Commands

Command
Description

bgp dampening

Enables BGP route dampening or changes various BGP route dampening factors.

clear ip bgp dampening

Clears BGP route dampening information and to unsuppress suppressed routes.

set dampening

Sets set BGP route dampening parameters in a route map.

show ip bgp dampened-paths

Displays BGP dampened routes.


clear ip bgp in prefix-filter

To initiate an inbound soft reset to clear a BGP outbound route filter (ORF), use the clear ip bgp in prefix-filter command in privileged EXEC mode.

clear ip bgp ip-address | peer-group-name in prefix filter

Syntax Description

*

Clears all ORFs and resets all inbound BGP sessions.

ip-address

IP address of the peer to clear the ORF. The value for this argument can be an IPv4 or IPv6 address.

peer-group-name

Name of the peer group to clear ORFs.


Defaults

The prefix-filter keyword will be ignored and a normal inbound route refresh or soft reset will be performed if ORF capabilities have not been enabled locally or received from the sending BGP peer.

Command Modes

Privileged EXEC

Command History

Release
Modification

12.0(11)ST

This command was introduced.

12.2(4)T

This command was integrated into Cisco IOS Release 12.2(4)T.

12.2(14)S

This command was integrated into Cisco IOS Release 12.2(14)S.

12.0(22)S

This command was integrated into Cisco IOS Release 12.0(22)S.


Usage Guidelines

The clear ip bgp in prefix-filter command is used to clear the existing ORF prefix list to trigger a new route refresh or soft reconfiguration, which updates the ORF prefix list. If the clear ip bgp in command is entered without the prefix-filter keyword, a normal route refresh is performed. This command should be used when inbound routing policy changes (other than a prefix list filter) occur, such as a route map change.

Examples

In the following example, an inbound soft reset is initiated to clear the BGP ORF received from the 192.168.0.1 neighbor:

Router# clear ip bgp 192.168.0.1 in prefix-filter 

Related Commands

Command
Description

dampening

Enables outbound route filter (ORF) capability exchange and advertise ORF capabilities to a BGP peer.

show ip bgp neighbors

Displays information about the TCP and BGP connections to neighbors.


clear ip bgp peer-group

To clear all the members of a BGP peer group, use the clear ip bgp peer-group command in privileged EXEC mode.

clear ip bgp [all | ipv4 {multicast | unicast} | ipv6 {multicast | unicast} | vpnv4 {unicast}] peer-group name [soft [in | out]]

Syntax Description

all

(Optional) Specifies autonomous system peers for all address families.

ipv4 | ipv6 | vpn4

(Optional) Specifies the reset of IPv4, IPv6, or VPNn4 address family sessions.

multicast

(Optional) Specifies multicast address family sessions.

unicast

(Optional) Specifies unicast address family sessions.

peer-group name

Initiates a reset for members of the specified peer group.

soft

(Optional) Initiates a soft reset. Does not tear down the session.

in | out

(Optional) Initiates inbound or outbound reconfiguration. If either the in or out keywords are is not specified, both inbound and outbound sessions are reset.


Defaults

No default behavior or values

Command Modes

Privileged EXEC

Command History

Release
Modification

11.0

This command was introduced.


Usage Guidelines

The clear ip bgp peer-group command is used to reset peering sessions for BGP peer groups. The usage guidelines for the clear ip bgp command apply to this command.

Examples

In the following example, all members of the BGP peer group named INTERNAL are cleared:

Router# clear ip bgp peer-group INTERNAL

Related Commands

Command
Description

clear ip bgp

Resets a BGP connection or session.

neighbor peer-group (assigning members)

Configures a BGP neighbor to be a member of a peer group.


clear ip bgp table-map

To refresh table-map configuration information in the Border Gateway Protocol (BGP) routing table, use the clear ip bgp table-map command in privileged EXEC mode.

clear ip bgp [ipv4 {multicast | unicast} | ipv6 {multicast | unicast} | vpnv4 {unicast}] table-map

Syntax Description

ipv4 | ipv6 | vpn4

(Optional) Specifies the reset of IPv4, IPv6, or VPNn4 address family sessions.

multicast

(Optional) Specifies multicast address family sessions.

unicast

(Optional) Specifies unicast address family sessions.


Defaults

No default behavior or values

Command Modes

Privileged EXEC

Command History

Release
Modification

12.2(14)S

This command was introduced.

12.0(21)S

This command was integrated into Cisco IOS Release 12.0(21)S.

12.1(13)E

This command was integrated into Cisco IOS Release 12.1(13)E.

12.2(13)T

This command was integrated into Cisco IOS Release 12.2(13)T.


Usage Guidelines

The clear ip bgp table-map command is used to clear or refresh table-map configuration information in BGP routing tables. This command can be used to clear traffic-index information configured with the BGP Policy Accounting feature.

Examples

In the following example, a table map is configured and a traffic index is set. The new policy is applied after the clear ip bgp table-map command is entered.

Router(config)# route-map SET_BUCKET permit 10 
Router(config-route-map)# match community 1 
Router(config-route-map)# set traffic-index 2 
Router(config-route-map)# exit
Router(config)# router bgp 50000 
Router(config-router)# address-family ipv4 
Router(config-router-af)# table-map SET_BUCKET 
Router(config-router-af)# end
Router# clear ip bgp table-map

Related Commands

Command
Description

bgp-policy

Enables BGP policy accounting or policy propagation on an interface.

table-map

Modifies metrics and tag values when the IP routing table is updated with BGP learned routes.


clear ip bgp update-group

T o clear Border Gateway Protocol (BGP) update-group member sessions, use the clear ip bgp update-group command in privileged EXEC mode.

clear ip bgp [all | ipv4 {multicast | unicast} | ipv6 {multicast | unicast}] update-group [index-group | neighbor-address]

Syntax Description

all

(Optional) Specifies autonomous system peers for all address families.

ipv4 | ipv6 | vpn4

(Optional) Specifies the reset of IPv4, IPv6, or VPNn4 address family sessions.

multicast

(Optional) Specifies multicast address family sessions.

unicast

(Optional) Specifies unicast address family sessions.

index-group

(Optional) Specifies that the update group with corresponding index number will be reset. The range of update-group index numbers is from 1 to 4294967295.

neighbor-address

(Optional) Specifies the IP address of a single peer that will be reset. The value for this argument can be an IPv4 or IPv6 address.


Defaults

No default behavior or values

Command Modes

Privileged EXEC

Command History

Release
Modification

12.0(24)S

This command was introduced.

12.2(18)S

This command was integrated into Cisco IOS Release 12.2(18)S.

12.3(4)T

This command was integrated into Cisco IOS Release 12.3(4)T.


Usage Guidelines

The clear ip bgp update-group command is used to clear BGP update group member sessions. If no keywords or arguments are specified, entering this command will recalculate all update groups. Specific index numbers for update groups and information about update-group membership is displayed in the output of the show ip bgp update-group and debug ip bgp groups commands.

When a change to outbound policy occurs, the BGP routing process will automatically recalculate update-group memberships and apply changes by triggering an outbound soft reset after a 3-minute timer expires. This behavior is designed to provide the network operator with time to change the configuration before the soft reset is initiated. You can immediately initiate the outbound soft reset before the timer expires by entering the clear ip bgp ip-address soft out command or immediately initiate a hard reset by entering the clear ip bgp ip-address command.

Examples

In the following example, the membership of the 10.0.0.1 peer is cleared from an update group:

Router# clear ip bgp update-group 10.0.0.1 

In the following example, update-group information for all peers in the index 1 update group is cleared:

Router# clear ip bgp update-group 1 

Related Commands

Command
Description

clear ip bgp

Resets a BGP connection or session.

debug ip bgp groups

Displays information related to the processing of BGP update groups.

show ip bgp replication

Displays BGP update-group replication statistics.

show ip bgp update-group

Displays information about BGP update groups.


clear ip eigrp neighbors

To delete entries from the neighbor table, use the clear ip eigrp neighbors command in EXEC mode.

clear ip eigrp neighbors [ip-address | interface-type interface-number]

Syntax Description

ip-address

(Optional) Address of the neighbor.

interface-type interface-number

(Optional) Interface type and number. Specifying these arguments removes the specified interface type from the neighbor table that all entries learned via this interface.


Command Modes

EXEC

Command History

Release
Modification

10.0

This command was introduced.


Examples

The following example removes the neighbor whose address is 172.16.8.3:

Router# clear ip eigrp neighbors 172.16.8.3

Related Commands

Command
Description

show ip eigrp interfaces

Displays information about interfaces configured for EIGRP.


clear ip eigrp vrf neighbor

To clear neighbor entries of the specified Enhanced Interior Gateway Routing Protocol (EIGRP) virtual routing and forwarding instance (VRF) from the Routing Information Base (RIB), use the clear ip eigrp vrf command in privileged EXEC mode.

clear ip eigrp vrf {vrf-name as-number} neighbor [interface-number]

Syntax Description

vrf-name

Specifies the name of the VRF whose EIGRP neighbors will be cleared. The * keyword can be used as a wild card to specify all VRFs

as-number

Specifies the autonomous system number of the VRF whose neighbors will be cleared.

interface-number

(optional) Specifies the interface that VRF neighbors were learned through. The exact interface is specified by interface number with the interface-number argument.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.0(22)S

This command was introduced.

12.2(15)T

This command was integrated into 12.2(15)T.


Examples

The following example clears EIGRP neighbors reached through the VRF named VRF-RED in autonomous system 101:

clear ip eigrp vrf VRF-RED 101 neighbor 

The following example clears EIGRP neighbors reached through the VRF named VRF-GREEN in autonomous-system 101 learned through Ethernet interface 0/0:

clear ip eigrp vrf VRF-RED 101 neighbor ethernet 0/0

Related Commands

Command
Description

show ip eigrp vrf interfaces

Displays EIGRP interfaces that are defined under the specified VRF.

show ip eigrp vrf neighbors

Displays neighbors discovered by EIGRP that carry VRF information.

show ip eigrp vrf topology

Displays VRF entries in the EIGRP topology table.

show ip eigrp vrf traffic

Displays EIGRP VRF traffic statistics.

show ip route vrf

Displays routing protocol information that is associated with a VRF.


clear ip ospf

To clear redistribution based on the OSPF routing process ID, use the clear ip ospf command in privileged EXEC mode.

clear ip ospf [pid] {process | redistribution | counters [neighbor [neighbor-interface] [neighbor-id]]}

Syntax Description

pid

(Optional) Process ID.

process

Reset OSPF process.

redistribution

Clear OSPF route redistribution.

counters

OSPF counters.

neighbor

(Optional) Neighbor statistics per interface.

neighbor-interface

(Optional) Neighbor interface.

neighbor-id

(Optional) Neighbor ID.


Command Modes

Privileged EXEC

Command History

Release
Modification

11.1

This command was introduced.


Usage Guidelines

Use the pid argument to clear only one OSPF process. If the pid argument is not specified, all OSPF processes are cleared.

Examples

The following example clears all OSPF processes:

clear ip ospf process

clear ip ospf traffic

To clear Open Shortest Path First (OSPF) traffic statistics, use the clear ip ospf traffic command in user EXEC or privileged EXEC mode.

clear ip ospf [process-id] traffic [interface-type interface-number]

Syntax Description

process-id

(Optional) Process ID. If the process-id argument is included, only traffic statistics for the specified routing process are cleared.

interface-type

(Optional) Interface type.

interface-number

(Optional) interface number.


Command Modes

User EXEC
Privileged EXEC

Command History

Release
Modification

12.3(11)T

This command was introduced.

12.0(28)S

This command was integrated into Cisco IOS Release 12.0(28)S.


Examples

The following example clears OSPF traffic statistics for the OSPF process 100:

Router# clear ip ospf 100 traffic

Related Commands

Command
Description

show ip ospf traffic statistics

Displays OSPF traffic statistics.


clear ip prefix-list

To reset IP prefix-list counters, use the clear ip prefix-list command in privileged EXEC mode.

clear ip prefix-list [[prefix-list-name] [network/length]]

Syntax Description

prefix-list-name

(Optional) Name of the prefix list from which the hit count is to be cleared.

network/length

(Optional) Network number and length (in bits) of the network mask. The slash mark must precede the bit length value.


Defaults

No default behavior or values

Command Modes

Privileged EXEC

Command History

Release
Modification

12.0

This command was introduced.


Usage Guidelines

The clear ip prefix-list command is used to clear prefix-list hit counters. The hit count is a value indicating the number of matches to a specific prefix list entry.

Examples

In the following example, the prefix-list counters are cleared for the prefix list named FIRST_LIST that matches the 10.0.0.0/8 prefix:

Router# clear ip prefix-list FIRST_LIST 10.0.0.0/8

Related Commands

Command
Description

distribute-list in (IP)

Filters networks received in updates.

distribute-list out (IP)

Suppresses networks from being advertised in updates.

ip prefix-list

Creates an entry in a prefix list.

ip prefix-list description

Adds a text description of a prefix list.

ip prefix-list sequence-number

Enables the generation of sequence numbers for entries in a prefix list.

redistribute (IP)

Redistributes routes from one routing domain into another routing domain.

show ip bgp regexp

Displays information about a prefix list or prefix list entries.


clear isis lsp-full

To clear the LSPFULL state, use the clear isis lsp-full command in privileged EXEC mode.

clear isis lsp-full

Syntax Description

This command has no arguments or keywords.

Command Modes

Privileged EXEC

Command History

Release
Modification

12.0(25)S

This command was introduced.

12.2(18)S

This command was integrated into Cisco IOS Release 12.2(18)S.

12.3(4)T

This command was integrated into Cisco IOS Release 12.3(4)T.


Usage Guidelines

If the link-state PDU (LSP) becomes full because too many routes are redistributed, use the clear isis lsp-full command to clear the state after the problem has been resolved.

Examples

This example clears the LSPFULL state:

Router# clear isis lsp-full

Related Commands

Command
Description

lsp-full suppress

Controls which routes are suppressed when the link-state PDU becomes full.


clear isis rib redistribution

To clear some or all prefixes in the Intermediate System-to-Intermediate System (IS-IS) redistribution cache, use the clear isis rib redistribution command in privileged EXEC mode.

clear isis rib redistribution [level-1 | level-2] [network-prefix] [network-mask]

Syntax Description

level-1

(Optional) Clears Level 1 IS-IS redistributed prefixes from the redistribution cache.

level-2

(Optional) Clears Level 2 IS-IS redistributed prefixes from the redistribution cache.

network-prefix

(Optional) The network ID in the A.B.C.D format for the specific network prefix you want to clear from the redistribution Routing Information Base (RIB). If you do not provide a network mask for the prefix, the major net of the prefix will be used for the network mask.

network-mask

(Optional) The network ID in the A.B.C.D format for the network mask for the specific network prefix you want to clear from the RIB. If you do not provide a network mask for the prefix, the major net of the prefix will be used for the network mask.


Command Modes

Privileged EXEC

Command History

Release
Modification

12.0(27)S

This command was introduced.

12.3(7)T

This command was integrated into Cisco IOS Release 12.3(7)T.

12.2(25)S

This command was integrated into Cisco IOS Release 12.2(25)S.


Usage Guidelines

We recommend that you use this command in a troubleshooting situation only when a Cisco Technical Assistance Center representative requests you to do so following a software error.

Examples

The following example clears the network prefix 10.1.0.0 from the IP local redistribution cache:

Router# clear isis rib redistribution 10.1.0.0 255.255.0.0

Related Commands

Command
Description

debug isis rib redistribution

Debugs the local redistribution cache event.

show isis rib redistribution

Displays the prefixes in the IS-IS redistribution cache.


compatible rfc1583

To restore the method used to calculate summary route costs per RFC 1583, use the compatible rfc1583 command in router configuration mode. To disable RFC 1583 compatibility, use the no form of this command.

compatible rfc1583

no compatible rfc1583

Syntax Description

This command has no arguments or keywords.

Defaults

Compatible with RFC 1583.

Command Modes

Router configuration

Command History

Release
Modification

12.1(2)T

This command was introduced.


Usage Guidelines

This command is backward compatible with Cisco IOS Release 12.0.

To minimize the chance of routing loops, all OSPF routers in an OSPF routing domain should have RFC compatibility set identically.

Because of the introduction of RFC 2328, OSPF Version 2, the method used to calculate summary route costs has changed. Use the no compatible rfc1583 command to enable the calculation method used per RFC 2328.

Examples

The following example specifies that the router process is compatible with RFC 1583:

router ospf 1 
 compatible rfc1583
 !

continue

To configure a route-map to go to a route-map entry with a higher sequence number, use the continue command in route-map configuration mode. To disable a continue clause within a route-map, use the no form of this command.

continue sequence-number

no continue

Syntax Description

sequence-number

(Optional) Route-map sequence number.

If a route-map sequence number is not specified when configuring a continue clause, the continue clause will continue to the route-map entry with the next sequence number. This behavior is referred to as an "implied continue."


Defaults

If the sequence number argument is not configured when this command is entered, the continue clause will go to the route-map entry with the next default sequence number.

If a route-map entry contains a continue clause and no match clause, the continue clause will be executed automatically.

Only inbound route-maps are supported.

Command Modes

Route-map configuration

Command History

Release
Modification

12.0(22)S

This command was introduced.

12.3(2)T

This command was integrated into Cisco IOS Release 12.2(2)T.


Usage Guidelines

The continue command is used to configure continue clauses in inbound Border Gateway Protocol (BGP) route maps.

Route-map Operation Without Continue Clauses

A route-map evaluates match clauses until a successful match occurs. After the match occurs, the route-map stops evaluating match clauses and starts executing set clauses, in the order in which they were configured. If a successful match does not occur, the route-map "falls through" and evaluates the next sequence number of the route-map until all configured route-map entries have been evaluated or a successful match occurs. Each route map sequence is tagged with a sequence number to identify the entry. Route-map entries are evaluated in order starting with the lowest sequence number and ending with the highest sequence number. If the route-map contains only set clauses, the set clauses will be executed automatically, and the route-map will not evaluate any other route-map entries.

Route-map Operation With Continue Clauses

When a continue clause is configured, the route-map will continue to evaluate and execute match clauses in the specified route-map entry after a successful match occurs. The continue clause can be configured to go to (or jump to) a specific route-map entry by specifying the sequence number, or if a sequence number is not specified, the continue clause will go to the next sequence number. This behavior is called an "implied continue." If a match clause exists, the continue clause is executed only if a match occurs. If no successful matches occur, the continue clause is ignored.

Match Operations With Continue Clauses

If a match clause does not exist in the route-map entry but a continue clause does, the continue clause will be automatically executed and go to the specified route-map entry. If a match clause exists in a route-map entry, the continue clause is executed only when a successful match occurs. When a successful match occurs and a continue clause exists, the route-map executes the set clauses and then goes to the specified route-map entry. If the next route-map contains a continue clause, the route-map will execute the continue clause if a successful match occurs. If a continue clause does not exist in the next route-map, the route-map will be evaluated normally. If a continue clause exists in the next route-map but a match does not occur, the route-map will not continue and will "fall through" to the next sequence number if one exists.

Set Operations With Continue Clauses

Set clauses are saved during the match clause evaluation process and executed after the route-map evaluation is completed. The set clauses are evaluated and executed in the order in which they were configured. Set clauses are only executed after a successful match occurs, unless the route-map does not contain a match clause. The continue statement proceeds to the specified route-map entry only after configured set actions are performed. If a set action occurs in the first route-map and then the same set action occurs again, with a different value, in a subsequent route-map entry, the last set action will override any previous set actions that were configured with the same set command.


Note A continue clause can be executed, without a successful match, if a route-map entry does not contain a match clause.


Examples

In the following example, continue clause configuration is shown.

The first continue clause in route-map entry 10 indicates that the route-map will go to route map entry 30 if a successful matches occurs. If a match does not occur, the route-map will "fall through" to route-map entry 20. If a successful match occurs in route-map entry 20, the set action will be executed and the route map will not evaluate any additional route-map entries.

If a successful match does not occur in route-map entry 20, the route map will "fall through" to route-map entry 30. This sequence does not contain a match clause, so the set clause will be automatically executed and the continue clause will go to the next route-map entry because a sequence number is not specified.

If there are no successful matches, the route-map will "fall through" to route-map entry 30 and execute the set clause. Route-map entry 40 will not be evaluated.

Router(config)# route-map ROUTE-MAP-NAME permit 10 
Router(config-route-map)# match ip address 1 
Router(config-route-map)# match metric 10 
Router(config-route-map)# set as-path prepend 10 
Router(config-route-map)# continue 30 
Router(config-route-map)# exit 
Router(config)# route-map ROUTE-MAP-NAME permit 20 
Router(config-route-map)# match ip address 2 
Router(config-route-map)# match metric 20 
Router(config-route-map)# set as-path prepend 10 10 
Router(config-route-map)# exit 
Router(config)# route-map ROUTE-MAP-NAME permit 30 
Router(config-route-map)# set as-path prepend 10 10 10 
Router(config-route-map)# continue 
Router(config-route-map)# exit 
Router(config)# route-map ROUTE-MAP-NAME permit 40
Router(config-route-map)# match community 10:1
Router(config-route-map)# set local-preference 104
Router(config-route-map)# exit 

Related Commands

Command
Description

aggregate-address

Creates an aggregate entry in a BGP or multicast BGP database.

match as-path

Match BGP autonomous system path access lists.

match community

Matches a BGP community.

match extcommunity

Matches a BGP extended community.

match interface (IP)

Distributes routes that have their next hop out one of the interfaces specified.

match ip address

Distributes any routes that have a destination network number address permitted by a standard or extended access list, or performs policy routing on packets.

match ip next-hop

Redistributes any routes that have a next-hop router address passed by one of the access lists specified.

match ip route-source

Redistributes routes that have been advertised by routers and access servers at the address specified by the access lists.

match length

Bases policy routing on the Level 3 length of a packet.

match metric (IP)

Redistributes routes with the metric specified.

match mpls-label

Redistributes routes that include MPLS labels if the routes meet the conditions specified in the route map.

match route-type (IP)

Redistributes routes of the specified type.

match tag

Redistributes routes in the routing table that match the specified tags.

neighbor default-originate

Allows a BGP speaker (the local router) to send the default route 0.0.0.0 to a neighbor for use as a default route.

neighbor route-map

Applies a route map to incoming or outgoing routes.

neighbor remote-as

Adds an entry to the BGP or multiprotocol BGP neighbor table.

redistribute (IP)

Redistributes routes from one routing domain into another routing domain.

route-map (IP)

Defines the conditions for redistributing routes from one routing protocol to another, or enables policy routing.

set as-path

Modifies an autonomous system path for BGP routes.

set automatic-tag

Automatically computes the tag value in a route map configuration.

set comm-list delete

Removes communities from the community attribute of an inbound or outbound update.

set community

Sets the BGP communities attribute.

set dampening

Sets the BGP route dampening factors.

set default interface

Indicates where to output packets that pass a match clause of a route map for policy routing and have no explicit route to the destination.

set extcommunity

Sets the BGP extended communities attribute.

set interface

Indicates where to output packets that pass a match clause of route map for policy routing.

set ip default next-hop

Indicates where to output packets that pass a match clause of a route map for policy routing and for which the Cisco IOS software has no explicit route to a destination.

set ip default next-hop verify-availability

Configures a router to check the CDP database for the availability of an entry for the default next hop that is specified by the set ip default next-hop command.

set ip next-hop

Indicates where to output packets that pass a match clause of a route map for policy routing.

set ip next-hop verify-availability

Configures policy routing to verify if the next hops of a route map are CDP neighbors before policy routing to those next hops.

set ip precedence

Sets the precedence value in the IP header.

set level (IP)

Indicates where to import routes.

set local-preference

Specifies a preference value for the autonomous system path.

set mpls-label

Enables a route to be distributed with an MPLS label if the route matches the conditions specified in the route map.

set next-hop

Specifies the address of the next hop.

set nlri

This command was replaced by the address-family ipv4 and address-family vpnv4 commands.

set origin (BGP)

Sets the BGP origin code.

set qos-group

Sets a group ID that can be used later to classify packets.

set tag (IP)

Sets the value of the destination routing protocol.

set traffic-index

Defines where to output packets that pass a match clause of a route map for BGP policy accounting.

set weight

Specifies the BGP weight for the routing table.

show ip bgp

Displays entries in the BGP routing table.

show route-map

Displays all route maps configured or only the one specified.


dampening

To configure a router to automatically dampen a flapping interface, use the dampening command in interface configuration mode. To disable automatic route dampening, use the no form of this command.

dampening [half-life-period reuse-threshold] [suppress-threshold max-suppress-time [restart-penalty]]

no dampening

Syntax Description

half-life-period

(optional) Time (in seconds) after which a penalty is decreased. Once the route has been assigned a penalty, the penalty is decreased by half after the half-life period expires. The range of the half-life period is from 1 to 30 seconds. The default time is 5 seconds.

reuse-threshold

(optional) Reuse value based on the number of penalties. When the accumulated penalty decreases enough to fall below this value, the route is unsuppressed. The range of the reuse value is from 1 to 20000; the default is 1000.

suppress-threshold

(optional) Value of the accumulated penalty that triggers the router to dampen a flapping interface.A route is suppressed when its penalty exceeds this limit. The range is from 1 to 20000; the default is 2000.

max-suppress-time

(optional) Maximum time (in seconds) a route can be suppressed. The range is from 1 to 20000; the default is four times the half-life-period value. If the half-life-period value is allowed to default, the maximum suppress time defaults to 20 seconds.

restart-penalty

(optional) Penalty to applied to the interface when it comes up for the first time after the router reloads. The configurable range is from 1 to 20000 penalties. The default is 2000 penalties. This argument is not required for any other configurations.


Defaults

This command is disabled by default. To manually configure the timer for the restart-penalty argument, the value for all arguments must be manually entered.

Command Modes

Interface configuration

Command History

Release
Modification

12.0(22)S

This command was introduced.

12.2(13)T

This command was integrated into Cisco IOS Release 12.2(13)T.


Usage Guidelines

he IP Event Dampening feature will function on a subinterface but cannot be configured on only the subinterface. Only the primary interface can be configured with this feature, and all the subinterfaces are subject to the same dampening configuration.

When an interface is dampened, the interface is dampened to both IP and Connectionless Network Services (CLNS) routing equally. The interface is dampened to both IP and CLNS because integrated routing protocols like Intermediate System-to-Intermediate System (IS-IS), IP, and CLNS routing protocols are closely interconnected, so it is impossible to apply dampening separately.

This occurs because for integrated protocols like Intermediate System-to-Intermediate System (IS-IS), IP, and CLNS routing are closely interconnected, so it is impossible to apply dampening separately.

Copying a dampening configuration from virtual templates to virtual access interfaces is not supported because dampening has limited usefulness to existing applications using virtual templates. Virtual access interfaces are released when an interface flaps, and new connections and virtual access interfaces are acquired when the interface comes up and is made available to the network. Because dampening states are attached to the interface, the dampening states would not survive an interface flap.

If this command is applied to an interface that already has dampening configured, all dampening states are reset and the accumulated penalty will be set to 0. If the interface has been dampened, the accumulated penalty will fall into the reuse threshold range, and the dampened interface will be made available to the network. The flap counts, however, are retained.

Examples

The following example sets the half life to 30 seconds, the reuse threshold to 1500, the suppress threshold to 10000, and the maximum suppress time to 120 seconds:

interface Ethernet 0/0
 dampening 30 1500 10000 120

The following example configures the router to apply a penalty of 500 on Ethernet interface 0/0 when the interface comes up for the first time after the router is reloaded:

interface Ethernet 0/0
 dampening 5 500 1000 20 500 

Related Commands

Command
Description

clear counters

Clears the interface counters.

show dampening interface

Displays a summary of interface dampening.

show interface dampening

Displays a summary of the dampening parameters and status.


default-information

To control the candidate default routing information for Enhanced Interior Gateway Routing Protocol (EIGRP) processes, use the default-information command in router configuration mode. To suppress EIGRP candidate information in incoming or outbound updates, use the no default-information in command.

default-information {in | out} {access-list-number | access-list-name}

no default-information {in | out}

Syntax Description

in

Allows exterior or default routes to be received by an EIGRP process.

out

Allows EIGRP exterior routes to be advertised in updates.

access-list-number | access-list-name

Number or name of an access list. It can be a number in the range from 1 to 99 or an access list name.


Defaults

Normally, exterior routes are always accepted and default information is passed between EIGRP processes when redistribution occurs.

Command Modes

Router configuration

Command History

Release
Modification

10.0

This command was introduced.

11.2

The access-list-number and access-list-name arguments were added.


Usage Guidelines

The default network of 0.0.0.0 used by Routing Information Protocol (RIP) cannot be redistributed by IGRP but can be redistributed by EIGRP.

Examples

The following example allows EIGRP exterior or default routes to be received by the EIGRP process in autonomous system 23:

router eigrp 23
 default-information in

default-information originate (BGP)

To configure a Border Gateway Protocol (BGP) routing process to distribute a default route (network 0.0.0.0), use the default-information originate command in address family or router configuration mode. To disable the advertisement of a default route, use the no form of this command.

default-information originate

no default-information originate

Syntax Description

This command has no arguments or keywords.

Defaults

No default behavior or values

Command Modes

Address family configuration
Router configuration

Command History

Release
Modification

10.0

This command was introduced.

12.0(7)T

Address family configuration mode support was added.


Usage Guidelines

The default-information originate command is used to configure a BGP routing process to advertise a default route (network 0.0.0.0). A redistribution statement must also be configured to complete this configuration or the default route will not be advertised.

The configuration of the default-information originate command in BGP is similar to the configuration of the network (BGP) command. The default-information originate command, however, requires explicit redistribution of the route 0.0.0.0. The network command requires only that the route 0.0.0.0 is present in the Interior Gateway Protocol (IGP) routing table. For this reason, the network command is preferred.


Note The default-information originate command should not be configured with the neighbor default-originate command on the same router. You should configure one or the other.


Examples

In the following example, the router is configured to redistribute a default route from OSPF into the BGP routing process:

Router(config)# router bgp 50000
Router(config-router)# address-family ipv4 unicast 
Router(config-router-af)# default-information originate 
Router(config-router-af)# redistribute ospf 100 
Router(config-router-af)# end 

Related Commands

Command
Description

neighbor default-originate

Configures a BGP routing process to send a default route (network 0.0.0.0) to a neighbor.

network (BGP)

Specifies the list of networks for the BGP routing process.

redistribute (IP)

Redistributes routes from one routing domain into another routing domain.


default-information originate (IS-IS)

To generate a default route into an IS-IS routing domain, use the default-information originate command in router configuration mode. To disable this feature, use the no form of this command.

default-information originate [route-map map-name]

no default-information originate [route-map map-name]

Syntax Description

route-map map-name

(Optional) Routing process will generate the default route if the route map is satisfied.


Defaults

This command is disabled by default.

Command Modes

Router configuration

Command History

Release
Modification

10.0

This command was introduced.


Usage Guidelines

If a router configured with this command has a route to 0.0.0.0 in the routing table, IS-IS will originate an advertisement for 0.0.0.0 in its link-state packets (LSPs).

Without a route map, the default is advertised only in Level 2 LSPs. For Level 1 routing, there is another mechanism to find the default route, which is to look for the closest Level 1 or Level 2 router. The closest Level 1 or Level 2 router can be found by looking at the attached-bit (ATT) in Level 1 LSPs.

A route map can be used for two purposes:

Make the router generate default in its Level 1 LSPs.

Advertise 0/0 conditionally.

With a match ip address standard-access-list command, you can specify one or more IP routes that must exist before the router will advertise 0/0.

Examples

The following example forces the software to generate a default external route into an IS-IS domain:

router isis
! BGP routes will be distributed into IS-IS
redistribute bgp 120
! access list 2 is applied to outgoing routing updates
distribute-list 2 out
default-information originate
! access list 2 defined as giving access to network 10.105.0.0
access-list 2 permit 10.105.0.0 0.0.255.255

Related Commands

Command
Description

redistribute (IP)

Redistributes routes from one routing domain into another routing domain.

show isis database

Displays the IS-IS link-state database.


default-information originate (OSPF)

To generate a default external route into an OSPF routing domain, use the default-information originate command in router configuration mode. To disable this feature, use the no form of this command.

default-information originate [always] [metric metric-value] [metric-type type-value] [route-map map-name]

no default-information originate [always] [metric metric-value] [metric-type type-value] [route-map map-name]

Syntax Description

always

(Optional) Always advertises the default route regardless of whether the software has a default route.

metric metric-value

(Optional) Metric used for generating the default route. If you omit a value and do not specify a value using the default-metric router configuration command, the default metric value is 10. The value used is specific to the protocol.

metric-type type-value

(Optional) External link type associated with the default route advertised into the OSPF routing domain. It can be one of the following values:

1—Type 1 external route

2—Type 2 external route

The default is type 2 external route.

route-map map-name

(Optional) Routing process will generate the default route if the route map is satisfied.


Defaults

This command is disabled by default.

Command Modes

Router configuration

Command History

Release
Modification

10.0

This command was introduced.


Usage Guidelines

Whenever you use the redistribute or the default-information router configuration command to redistribute routes into an OSPF routing domain, the Cisco IOS software automatically becomes an Autonomous System Boundary Router (ASBR). However, an ASBR does not, by default, generate a default route into the OSPF routing domain. The software still must have a default route for itself before it generates one, except when you have specified the always keyword.

When you use this command for the OSPF process, the default network must reside in the routing table, and you must satisfy the route-map map-name keyword and argument. Use the default-information originate always route-map map-name form of the command when you do not want the dependency on the default network in the routing table.

Examples

The following example specifies a metric of 100 for the default route redistributed into the OSPF routing domain and an external metric type of Type 1:

router ospf 109
 redistribute eigrp 108 metric 100 subnets
 default-information originate metric 100 metric-type 1

Related Commands

Command
Description

redistribute (IP)

Redistributes routes from one routing domain into another routing domain.


default-information originate (RIP)

To generate a default route into Routing Information Protocol (RIP), use the default-information originate command in router configuration mode. To disable this feature, use the no form of this command.

default-information originate [route-map map-name]

no default-information originate

Syntax Description

route-map map-name

(Optional) Routing process will generate the default route if the route map is satisfied.


Defaults

This command is disabled by default.

Command Modes

Router configuration

Command History

Release
Modification

11.2

This command was introduced.


Usage Guidelines

The route map referenced in the default-information originate command cannot use an extended access list; it can use a standard access list.

Examples

The following example originates a default route (0.0.0.0/0) over a certain interface when 172.68.0.0/16 is present. Applying a condition (in this case a route map) to determine when the default route is originated is called "conditional default origination."

router rip 
 version 2
 network 172.68.16.0
 default-information originate route-map condition
!
 route-map condition permit 10
 match ip address 10
 set interface s1/0
!
access-list 10 permit 172.68.16.0 0.0.0.255
!

default-metric (BGP)

To set a default metric for routes redistributed into Border Gateway Protocol (BGP), use the default-metric command in address family or router configuration mode. To remove the configured value and return BGP to default operation, use the no form of this command.

default-metric number

no default-metric number

Syntax Description

number

Default metric value applied to the redistributed route. The range of values for this argument is from 1 to 4294967295.


Defaults

The following is default behavior if this command is not configured or if the no form of this command is entered:

The metric of redistributed interior gateway protocol (IGP) routes is set to a value that is equal to the interior BGP (iBGP) metric.

The metric of redistributed connected and static routes is set to 0.

When this command is enabled, the metric for redistributed connected routes is set to 0.

Command Modes

Address family configuration
Router configuration

Command History

Release
Modification

10.0

This command was introduced.

12.0(7)T

Address family configuration mode support was added.


Usage Guidelines

The default-metric command is used to set the metric value for routes redistributed into BGP with the redistribute command. A default metric can be configured to solve the problem of redistributing routes with incompatible metrics. Assigning the default metric will allow redistribution to occur.

This value is the Multi Exit Discriminator (MED) that is evaluated by BGP during the best path selection process. The MED is a non-transitive value that is processed only within the local autonomous system and adjacent autonomous systems. The default metric is not set if the received route has a MED value.


Note When enabled, the default-metric command applies a metric value of 0 to redistributed connected routes. The default-metric command does not override metric values that are applied with the redistribute command.


Examples

In the following example, a metric of 1024 is set for routes redistributed into BGP from OSPF:

Router(config)# router bgp 50000 
Router(config-router)# address-family ipv4 unicast 
Router(config-router-af)# default-metric 1024 
Router(config-router-af)# redistribute ospf 10 
Router(config-router-af)# end 

Related Commands

Command
Description

redistribute (IP)

Redistributes routes from one routing domain into another routing domain.


default-metric (EIGRP)

To set metrics for the Enhanced Interior Gateway Routing Protocol (EIGRP), use the default-metric command in router configuration mode. To remove the metric value and restore the default state, use the no form of this command.

default-metric bandwidth delay reliability loading mtu

no default-metric bandwidth delay reliability loading mtu

Syntax Description

bandwidth

Minimum bandwidth of the route in kilobits per second. It can be from 1 to 4294967295.

delay

Route delay in tens of microseconds. It can be 1 or any positive number that is a multiple of 39.1 nanoseconds.

reliability

Likelihood of successful packet transmission expressed as a number between 0 and 255. The value 255 means 100 percent reliability; 0 means no reliability.

loading

Effective bandwidth of the route expressed as a number from 1 to 255 (255 is 100 percent loading).

mtu

Minimum maximum transmission unit (MTU) size of the route in bytes. It can be from 1 to 65535.


Defaults

Only connected routes can be redistributed without a default metric. The metric of redistributed connected routes is set to 0.

Command Modes

Address family configuration
Router configuration

Command History

Release
Modification

10.0

This command was introduced.

12.0(22)S

Address family support was added in Cisco IOS Release 12.0(22)S.

12.0(15)T

Address family support was added in Cisco IOS Release 12.2(15)T


Usage Guidelines

A default metric is required to redistribute a protocol into EIGRP. Automatic metric translations occur between IGRP and EIGRP. You do not need default metrics to redistributed IGRP or EIGRP into itself.


Note The default-metric command does not affect EIGRP-to-EIGRP or IGRP-to-EIGRP distribution. To configure EIGRP-to-EIGRP or IGRP-to-EIGRP distribution, use route maps.


Metric defaults have been carefully set to work for a wide variety of networks. Take great care when changing these values.

Keeping the same metrics is supported only when redistributing from IGRP, EIGRP, or static routes.

Examples

The following example takes redistributed Routing Information Protocol (RIP) metrics and translates them into EIGRP metrics with values as follows: bandwidth = 1000, delay = 100, reliability = 250, loading = 100, and MTU = 1500.

router eigrp 109
 network 172.16.0.0
 redistribute rip
 default-metric 1000 100 250 100 1500

Related Commands

Command
Description

redistribute (IP)

Redistributes routes from one routing domain into another routing domain.


default-metric (OSPF)

To set default metric values for the OSPF routing protocol, use the default-metric command in router configuration mode. To return to the default state, use the no form of this command.

default-metric metric-value

no default-metric metric-value

Syntax Description

metric-value

Default metric value appropriate for the specified routing protocol.


Defaults

Built-in, automatic metric translations, as appropriate for each routing protocol. The metric of redistributed connected and static routes is set to 0.

Command Modes

Router configuration

Command History

Release
Modification

10.0

This command was introduced.


Usage Guidelines

The default-metric command is used in conjunction with the redistribute router configuration command to cause the current routing protocol to use the same metric value for all redistributed routes. A default metric helps solve the problem of redistributing routes with incompatible metrics. Whenever metrics do not convert, using a default metric provides a reasonable substitute and enables the redistribution to proceed.


Note When enabled, the default-metric command applies a metric value of 0 to redistributed connected routes. The default-metric command does not override metric values that are applied with the redistribute command.


Examples

The following example shows a router in autonomous system 109 using both the Routing Information Protocol (RIP) and the OSPF routing protocols. The example advertises OSPF-derived routes using RIP and assigns the Internal Gateway Protocol (IGP)-derived routes a RIP metric of 10.

router rip
 default-metric 10
 redistribute ospf 109

Related Commands

Command
Description

redistribute (IP)

Redistributes routes from one routing domain into another routing domain.


default-metric (RIP)

To set default metric values for Routing Information Protocol (RIP), use the default-metric command in router configuration mode. To return to the default state, use the no form of this command.

default-metric number-value

no default-metric [number-value]

Syntax Description

number-value

Default metric value.


Defaults

Built-in, automatic metric translations, as appropriate for each routing protocol

Command Modes

Router configuration

Command History

Release
Modification

10.0

This command was introduced.


Usage Guidelines

The default-metric command is used in conjunction with the redistribute router configuration command to cause the current routing protocol to use the same metric value for all redistributed routes. A default metric helps solve the problem of redistributing routes with incompatible metrics. Whenever metrics do not convert, using a default metric provides a reasonable substitute and enables the redistribution to proceed.

Examples

The following example shows a router in autonomous system 109 using both the RIP and the Open Shortest Path First (OSPF) routing protocols. The example advertises OSPF-derived routes using RIP and assigns the OSPF-derived routes a RIP metric of 10.

router rip
 default-metric 10
 redistribute ospf 109

Related Commands

Command
Description

redistribute (IP)

Redistributes routes from one routing domain into another routing domain.


discard-route

To reinstall either an external or internal discard route that was previously removed, use the discard-route command in router configuration mode. To remove either an external or internal discard route, use the no form of this command.

discard-route [external | internal]

no discard-route [external | internal]

Syntax Description

external

(Optional) Reinstalls the discard route entry for redistributed summarized routes on an Autonomous System Boundary Router (ASBR).

internal

(Optional) Reinstalls the discard-route entry for summarized internal routes on the Area Border Router (ABR).


Defaults

External and internal discard route entries are installed.

Command Modes

Router configuration

Command History

Release
Modification

12.1(1)T

This command was introduced.


Usage Guidelines

External and internal discard route entries are installed in routing tables by default. During route summarization, routing loops may occur when data is sent to a nonexisting network that appears to be a part of the summary, and the router performing the summarization has a less specific route (pointing back to the sending router) for this network in its routing table. To prevent the routing loop, a discard route entry is installed in the routing table of the ABR or ASBR.

If for any reason you do not want to use the external or internal discard route, remove the discard route by entering the no discard-route command with either the external or internal keyword.

Examples

The following display shows the discard route functionality installed by default. When external or internal routes are summarized, a summary route to Null0 will appear in the router output from the show ip route command. See the router output lines that appear in bold font:

Router# show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

      172.16.0.0/24 is variably subnetted, 3 subnets, 2 masks
C        172.16.0.128/25 is directly connected, Loopback1
O        172.16.0.0/24 is a summary, 00:00:14, Null0
C        172.16.0.0/25 is directly connected, Loopback0
      172.31.0.0/24 is variably subnetted, 3 subnets, 2 masks
C        172.31.0.128/25 is directly connected, Loopback3
O        172.31.0.0/24 is a summary, 00:00:02, Null0
C        172.31.0.0/25 is directly connected, Loopback2
C     192.168.0.0/24 is directly connected, Ethernet0/0

RouterB# show ip route ospf

      172.16.0.0/24 is variably subnetted, 3 subnets, 2 masks
O        172.16.0.0/24 is a summary, 00:00:29, Null0
      172.16.0.0/24 is variably subnetted, 3 subnets, 2 masks
O        201.0.0.0/24 is a summary, 00:00:17, Null0


When the no discard-route command with the internal keyword is entered, notice the following route change, indicated by the router output lines that appear in bold font:

RouterB# configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.
RouterB(config)# router ospf 1
RouterB(config-router)# no discard-route internal 
RouterB(config-router)#end

RouterB# show ip route ospf

      172.31.0.0/24 is variably subnetted, 3 subnets, 2 masks
O        172.16.0.0/24 is a summary, 00:04:14, Null0

Next, the no discard-route command with the external keyword is entered to remove the external discard route entry:

RouterB# configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.
RouterB(config)# router ospf 1
RouterB(config-router)# no discard-route external 
RouterB(config-router)# end

The following router output from the show running-config command confirms that both the external and internal discard routes have been removed from the routing table of RouterB. See the router output lines that appear in bold font:

RouterB# show running-config

Building configuration...

Current configuration : 1114 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname RouterB
.
.
.
router ospf 1
  log-adjacency-changes
 no discard-route external
 no discard-route internal
 area 1 range 172.16.0.0 255.255.255.0
 summary-address 172.31.0.0 255.255.255.0
 redistribute rip subnets
 network 192.168.0.0 0.0.0.255 area 0
 network 172.16.0.0 0.0.0.255 area 1
!

Related Commands

Command
Description

show ip route

Displays the current state of the routing table.

show running-config

Displays the contents of the currently running configuration file or the configuration for a specific interface, or map class information.


distance (IP)

To define an administrative distance, use the distance command in router configuration mode. To remove a distance definition, use the no form of this command.

distance {ip-address {wildcard-mask}} [ip-standard-list] [ip-extended-list]

no distance {ip-address {wildcard-mask}} [ip-standard-list] [ip-extended-list]

Syntax Description

ip-address

IP address in four-part, dotted notation.

wildcard-mask

Wildcard mask in four-part, dotted decimal format. A bit set to 1 in the wildcard-mask argument instructs the software to ignore the corresponding bit in the address value.

ip-standard-list
ip-extended-list

(Optional) Number or name of a standard or extended IP access list to be applied to incoming routing updates.


Defaults

For more information on default administrative distance, see "Usage Guidelines."

Command Modes

Router configuration

Command History

Release
Modification

10.0

This command was introduced.

11.2

The access-list-number | name argument was added.

11.3

The access-list-number | name argument was removed.

11.3

The ip keyword was removed.

12.0

The ip-standard-list and ip-extended-list arguments were added.


Usage Guidelines

Table 2 lists default administrative distances.

Table 2 Default Administrative Distances 

Route Source
Default Distance

Connected interface

0

Static route

1

Enhanced Interior Gateway Routing Protocol (EIGRP) summary route

5

External Border Gateway Protocol (eBGP)

20

Internal EIGRP

90

IGRP

100

Open Shortest Path First (OSPF)

110

Intermediate System-to-Intermediate System (IS-IS)

115

Routing Information Protocol (RIP)

120

Exterior Gateway Protocol (EGP)

140

EIGRP external route

170

Internal BGP

200

Unknown

255


Numerically, an administrative distance is an integer from 0 to 255. In general, the higher the value, the lower the trust rating. An administrative distance of 255 means that the routing information source cannot be trusted at all and should be ignored.

When the optional access list number is used with this command, it is applied when a network is being inserted into the routing table. This behavior allows filtering of networks according to the IP address of the router supplying the routing information. This option could be used, as an example, to filter out possibly incorrect routing information from routers not under your administrative control.

The order in which you enter distance commands can affect the assigned administrative distances in unexpected ways (see the "Examples" section for further clarification).

For BGP, the distance command sets the administrative distance of the External BGP (EBGP) route.

For OSPF, the IP address and address mask entered for the distance command should match the source address and address mask of the OSPF router that sent the link-state advertisement (LSA).

The show ip protocols EXEC command displays the default administrative distance for a specified routing process.

Always set the administrative distance from the least to the most specific network.


Note The weight of a route can no longer be set with the distance command. To set the weight for a route, use a route-map.


Examples

In the following example, the router eigrp global configuration command sets up EIGRP routing in autonomous system number 109. The network router configuration commands specify EIGRP routing on networks 192.168.7.0 and 172.16.0.0. The first distance router configuration command sets the default administrative distance to 255, which instructs the Cisco IOS software to ignore all routing updates from routers for which an explicit distance has not been set. The second distance command sets the administrative distance for all routers on the Class C network 192.168.7.0 to 90. The third distance command sets the administrative distance for the router with the address 172.16.1.3 to 120.

router eigrp 109
 network 192.168.7.0
 network 172.16.0.0
 distance 255
 distance 90 192.168.7.0 0.0.0.255
 distance 120 172.16.1.3 0.0.0.0

In the following example, the set distance is from the least to the most specific network:

router eigrp 100
 network 10.0.0.0
 distance 22 10.0.0.0
 distance 33 10.11.0.0 0.0.255.255
 distance 44 10.11.12.0 0.0.0.255

Note In this example, adding distance 255 to the end of the list would override the distance values for all networks within the range specified in the example. The result is that the distance values are set to 255.


Related Commands

Command
Description

distance bgp

Allows the use of external, internal, and local administrative distances that could be a better route to a node.


distance bgp

To configure the administrative distance for BGP routes, use the distance bgp command in address family or router configuration mode. To return to the administrative distance to the default value, use the no form of this command.

distance bgp external-distance internal-distance local-distance

no distance bgp

Syntax Description

external-distance

Administrative distance for external BGP routes. Routes are external when learned from an external autonomous system. The range of values for this argument are from 1 to 255.

internal-distance

Administrative distance for internal BGP routes. Routes are internal when learned from peer in the local autonomous system. The range of values for this argument are from 1 to 255.

local-distance

Administrative distance for local BGP routes. Local routes are those networks listed with a network router configuration command, often as back doors, for the router or for the networks that is being redistributed from another process. The range of values for this argument are from 1 to 255.


Defaults

The following values are used if this command is not configured or if the no form is entered:

external-distance: 20
internal-distance: 200
local-distance: 200

Routes with a distance of 255 are not installed in the routing table.

Command Modes

Address family configuration
Router configuration

Command History

Release
Modification

10.0

This command was introduced.

12.0(7)T

Address family configuration mode support was added.


Usage Guidelines

The distance bgp command is used to configure a rating of the trustworthiness of a routing information source, such as an individual router or a group of routers. Numerically, an administrative distance is a positive integer from 1 to 255. In general, the higher the value, the lower the trust rating. An administrative distance of 255 means the routing information source cannot be trusted at all and should be ignored. Use this command if another protocol is known to be able to provide a better route to a node than was actually learned via external BGP (eBGP), or if some internal routes should be preferred by BGP.


Caution Changing the administrative distance of internal BGP routes is considered dangerous and is not recommended. Improper configuration can introduce routing table inconsistencies and break routing.

The distance bgp command replaces the distance mbgp command.

Examples

In the following example, the external distance is set to 10, the internal distance is set to 50, and the local distance is set to 100:

Router(config)# router bgp 50000 
Router(config-router)# address family ipv4 multicast 
Router(config-router-af)# network 10.108.0.0 
Router(config-router-af)# neighbor 192.168.6.6 remote-as 123 
Router(config-router-af)# neighbor 172.16.1.1 remote-as 47 
Router(config-router-af)# distance bgp 10 50 100 
Router(config-router-af)# end 

Related Commands

Command
Description

address-family ipv4 (BGP)

Places the router in address family configuration mode for configuring routing sessions such as BGP, RIP, or static routing sessions that use standard IPv4 address prefixes.


distance eigrp

To allow the use of two administrative distances—internal and external—that could be a better route to a node, use the distance eigrp command in router configuration mode. To reset these values to their defaults, use the no form of this command.

distance eigrp internal-distance external-distance

no distance eigrp

Syntax Description

internal-distance

Administrative distance for Enhanced Interior Gateway Routing Protocol (EIGRP) internal routes. Internal routes are those that are learned from another entity within the same autonomous system. The distance can be a value from 1 to 255.

external-distance

Administrative distance for EIGRP external routes. External routes are those for which the best path is learned from a neighbor external to the autonomous system. The distance can be a value from 1 to 255.


Defaults

internal-distance: 90

external-distance: 170

Command Modes

Router configuration

Command History

Release
Modification

10.0

This command was introduced.


Usage Guidelines

An administrative distance is a rating of the trustworthiness of a routing information source, such as an individual router or a group of routers. Numerically, an administrative distance is an integer from 0 to 255. In general, the higher the value, the lower the trust rating. An administrative distance of 255 means the routing information source cannot be trusted at all and should be ignored.

Use the distance eigrp command if another protocol is known to be able to provide a better route to a node than was actually learned via external EIGRP, or if some internal routes should really be preferred by EIGRP.

Table 3 lists the default administrative distances.

Table 3 Default Administrative Distances 

Route Source
Default Distance

Connected interface

0

Static route

1

EIGRP summary route

5

External BGP

20

Internal EIGRP

90

IGRP

100

Open Shortest Path First (OSPF)

110

Intermediate System-to-Intermediate System (IS-IS)

115

Routing Information Protocol (RIP)

120

Exterior Gateway Protocol (EGP)

140

EIGRP external route

170

Internal Border Gateway Protocol (BGP)

200

Unknown

255


To display the default administrative distance for a specified routing process, use the show ip protocols EXEC command.

Examples

In the following example, the router eigrp global configuration command sets up EIGRP routing in autonomous system number 109. The network router configuration commands specify EIGRP routing on networks 192.168.7.0 and 172.16.0.0. The distance eigrp command sets the administrative distance of all EIGRP internal routes to 80 and all EIGRP external routes to 130.

Router(config)# router eigrp 109 
Router(router-config)# network 192.168.7.0
Router(router-config)# network 172.16.0.0 
Router(router-config)# distance eigrp 80 130 

Related Commands

Command
Description

show ip protocols

Displays the parameters and current state of the active routing protocol process.


distance ospf

To define OSPF route administrative distances based on route type, use the distance ospf command in router configuration mode. To restore the default value, use the no form of this command.

distance ospf {[intra-area dist1] [inter-area dist2] [external dist3]}

no distance ospf

Syntax Description

intra-area dist1

(Optional) Sets the distance for all routes within an area. The default value is 110.

inter-area dist2

(Optional) Sets the distance for all routes from one area to another area. The default value is 110.

external dist3

(Optional) Sets the distance for routes from other routing domains, learned by redistribution. The default value is 110.


Defaults

dist1: 110

dist2: 110

dist3: 110

Command Modes

Router configuration

Command History

Release
Modification

11.1(14)

This command was introduced.


Usage Guidelines

You must specify at least one of the keyword-argument pairs.

This command performs the same function as the distance command used with an access list. However, the distance ospf command allows you to set a distance for an entire group of routes, rather than a specific route that passes an access list.

If you already have configured the distance (IP) command with a source IP address and address mask, it will take precendence over the distance ospf command.

A common reason to use the distance ospf command is when you have multiple OSPF processes with mutual redistribution, and you want to prefer internal routes from one over external routes from the other.

Examples

The following example changes the external distance to 200, making the route less reliable:

Router A Configuration

router ospf 1
 redistribute ospf 2 subnet
 distance ospf external 200
!
router ospf 2
 redistribute ospf 1 subnet
 distance ospf external 200

Router B Configuration

router ospf 1 
 redistribute ospf 2 subnet
 distance ospf external 200 
! 
router ospf 2
 redistribute ospf 1 subnet
 distance ospf external 200

Related Commands

Command
Description

distance (IP)

Defines an administrative distance.


distribute-list in (BGP)

To filter routes or networks received in incoming Border Gateway Protocol (BGP) updates, use the distribute-list in command in router configuration mode. To delete the distribute list and remove from the running configuration file, use the no form of this command.

distribute-list acl-number | prefix list-name in

no distribute-list acl-number | prefix list-name in

Syntax Description

acl-number

IP access list number. The access list defines which networks are to be received and which are to be suppressed in routing updates.

prefix list-name

Name of a prefix list. The prefix list defines which networks are to be received and which are to be suppressed in routing updates, based upon matching prefixes.



Note Interface type and number arguments may be displayed in the CLI depending on the version of Cisco IOS software. However, the interface arguments are not supported in any software release.


Defaults

If this command is configured without a predefined access list or prefix list, the distribute list will default to permitting all traffic.

Command Modes

Router configuration


Note The distribute-list in command can be entered in address family configuration mode. However, address family configuration is not recommended and not supported.


Command History

Release
Modification

10.0

This command was introduced.

11.2

The acl-number arguments was added.

12.0

The prefix list-name argument was added.


Usage Guidelines

The distribute-list in command is used to filter incoming BGP updates. An access list or prefix list must be defined prior to configuration of this command. Standard and expanded access lists are supported. IP prefix lists are used to filter based on the bit length of the prefix. An entire network, subnet, supernet, or single host route can be specified. Prefix list and access list configuration is mutually exclusive when configuring a distribute list. The session must be reset with the clear ip bgp command before the distribute list will take effect.


Note We recommend that you use IP prefix lists (configured with the ip prefix-list command in global configuration mode) instead of distribute lists. IP prefix lists provide improved performance and are simpler to configure. Distribute list configuration will be removed from the CLI at a future date.


To suppress networks from being advertised in updates, use the distribute-list out command.

Examples

In the following example, a prefix list and distribute list are defined to configure the BGP routing process to accept traffic from only network 192.168.1.0 and network 10.108.0.0. An inbound route refresh is initiated to activate the distribute-list.

Router(config)# ip prefix-list RED deny 0.0.0.0/0 le 32 
Router(config)# ip prefix-1ist RED permit 10.108.0.0/16
Router(config)# ip prefix-list RED permit 192.168.1.0/24 
Router(config)# !
Router(config)# router bgp 50000 
Router(config-router)# network 10.108.0.0
Router(config-router)# distribute-list prefix RED in  
Router(config-router)# end 
Router# clear ip bgp in 

In the following example, an access list and distribute list are defined to configure the BGP routing process to accept traffic from only network 192.168.1.0 and network 10.108.0.0. An inbound route refresh is initiated to activate the distribute-list.

Router(config)# access-list 1 deny 0.0.0.0 255.255.255.255
Router(config)# access-list 1 permit 192.168.1.0
Router(config)# access-list 1 permit 10.108.0.0
Router(config)# !
Router(config)# router bgp 50000 
Router(config-router)# network 10.108.0.0
Router(config-router)# distribute-list 1 in
Router(config-router)# end 
Router# clear ip bgp in 

Related Commands

Command
Description

access-list

Defines an IP access list.

clear ip bgp

Resets a BGP connection or session.

distribute-list out (BGP)

Suppresses networks from being advertised in outbound BGP updates.

ip prefix-list

Creates an entry in a prefix list.

redistribute (IP)

Redistributes routes from one routing domain into another routing domain.


distribute-list in (IP)

To filter networks received in updates, use the distribute-list in command in address family or router configuration mode. To change or cancel the filter, use the no form of this command.

distribute-list [access-list-number | name] | [route-map map-tag] in [interface-type | interface-number]

no distribute-list [access-list-number | name] | [route-map map-tag] in [interface-type | interface-number]

Syntax Description

access-list-number | name

(Optional) Standard IP access list number or name. The list defines which networks are to be received and which are to be suppressed in routing updates.

route-map map-tag

(Optional) Name of the route map that defines which networks are to be installed in the routing table and which are to be filtered from the routing table. This argument is supported by OSPF only.

in

Applies the access list to incoming routing updates.

interface-type

(Optional) Interface type. The interface-type argument cannot be used in address family configuration mode.

interface-number

(Optional) Interface number on which the access list should be applied to incoming updates. If no interface is specified, the access list will be applied to all incoming updates. The interface type and number arguments can apply if you specify an access list, not a route map. The interface-type argument cannot be used in address family configuration mode.


Defaults

This command is disabled by default.

Command Modes

Address family configuration
Router configuration

Command History

Release
Modification

10.0

This command was introduced.

11.2

The access-list-name, type, and number arguments were added.

12.0(7)T

Address family configuration mode was added.

12.0(24)S

The route-map map-tag keyword and argument were added.


Usage Guidelines

This command must specify either an access list or a map-tag name of a route map. The route map is supported for OSPF filtering only.

The interface-type and interface-type arguments cannot be used in address family configuration mode.

OSPF routes cannot be filtered from entering the OSPF database. If you use this command for OSPF, it only filters routes from the routing table; it does not prevent link-state packets from being propagated.

If a route map is specified, the route map can be based on the following match options:

match interface

match ip address

match ip next-hop

match ip route-source

match metric

match route-type

match tag

Configure the route map before specifying it in the distribute-list in command.

Examples

In the following example, the EIGRP routing process accepts only two networks—network 0.0.0.0 and network 10.108.0.0:

access-list 1 permit 0.0.0.0
access-list 1 permit 10.108.0.0
access-list 1 deny 0.0.0.0 255.255.255.255
router eigrp
 network 10.108.0.0
 distribute-list 1 in

In the following example, OSPF external LSAs have a tag. The value of the tag is examined before the prefix is installed in the routing table. All OSPF external prefixes that have the tag value of 777 are filtered (prevented from being installed in the routing table). The permit statement with sequence number 20 has no match conditions, and there are no other route-map statements after sequence number 20, so all other conditions are permitted.

route-map tag-filter deny 10
 match tag 777
route-map tag-filter permit 20
!
router ospf 1
 router-id 10.0.0.2
 log-adjacency-changes
 network 172.16.2.1 0.0.0.255 area 0
 distribute-list route-map tag-filter in

Related Commands

Command
Description

access-list (IP extended)

Defines an extended IP access list.

access-list (IP standard)

Defines a standard IP access list.

distribute-list out (IP)

Suppresses networks from being advertised in updates.

redistribute (IP)

Redistributes routes from one routing domain into another routing domain.


distribute-list out (BGP)

To suppress networks from being advertised in outbound Border Gateway Protocol (BGP) updates, use the distribute-list out command in router configuration mode. To delete the distribute list and remove from the running configuration file, use the no form of this command.

distribute-list acl-number | prefix list-name out [protocol process-number | connected | static]

no distribute-list acl-number | prefix list-name out [protocol process-number | connected | static]

Syntax Description

acl-number

IP access list number. The access list defines which networks are to be received and which are to be suppressed in routing updates.

prefix list-name

Name of a prefix list. The list defines which networks are to be received and which are to be suppressed in routing updates, based upon matching prefixes in the prefix list.

protocol process-number

Specifies the routing protocol to apply the distribution list. BGP, EIGRP, OSPF, and RIP are supported. The process number is entered for all routing protocols, except RIP. The process number is a value from 1 to 65535.

connected

Specifies peers and networks learned through connected routes.

static

Specifies peers and networks learned through static routes.



Note Interface type and number arguments may be displayed in the CLI depending on the version of Cisco IOS software. However, the interface arguments are not supported in any software release.


Defaults

If this command is configured without a predefined access list or prefix list, the distribute list will default to permitting all traffic.

Command Modes

Router configuration

Command History

Release
Modification

10.0

This command was introduced.

11.2

The acl-number argument was added.

12.0

The prefix list-name argument was added.


Usage Guidelines

The distribute-list out command is used to filter outbound BGP updates. An access list or prefix list must be defined prior to configuration of this command. Standard and expanded access lists are supported. IP prefix lists are used to filter based on the bit length of the prefix. An entire network, subnet, supernet, or single host route can be specified. Prefix list and access list configuration is mutually exclusive when configuring a distribute list. The session must be reset with the clear ip bgp command before the distribute list will take effect.


Note We recommend that you use IP prefix lists (configured with the ip prefix-list command in global configuration mode) instead of distribute lists. IP prefix lists provide improved performance and are simpler to configure. Distribute list configuration will be removed from the CLI at a future date.


Entering a protocol and/or process-number arguments causes the distribute list to be applied to only routes derived from the specified routing process. Addresses not specified in the distribute-list command will not be advertised in outgoing routing updates after a distribute list is configured.

To suppress networks or routes from being received in inbound updates, use the distribute-list in command.

Examples

In the following example, a prefix list and distribute list are defined to configure the BGP routing process to advertise only network 192.168.0.0. An outbound route refresh is initiated to activate the distribute-list.

Router(config)# ip prefix-list BLUE deny 0.0.0.0/0 le 32 
Router(config)# ip prefix-list BLUE permit 192.168.0.0/16 
Router(config)# ! 
Router(config)# router bgp 50000 
Router(config-router)# distribute-list prefix BLUE out 
Router(config-router)# end 
Router# clear ip bgp out 

In the following example, an access list and a distribute list are defined to configure the BGP routing process to advertise only network 192.168.0.0. An outbound route refresh is initiated to activate the distribute-list.

Router(config)# access-list 1 permit 192.168.0.0 0.0.255.255 
Router(config)# access-list 1 deny 0.0.0.0 255.255.255.255 
Router(config)# ! 
Router(config)# router bgp 50000 
Router(config-router)# distribute-list 1 out 
Router(config-router)# end 
Router# clear ip bgp out 

Related Commands

Command
Description

access-list

Defines an IP access list.

clear ip bgp

Resets a BGP connection or session.

distribute-list in (BGP)

Filters routes and networks received in updates.

ip prefix-list

Creates an entry in a prefix list.

redistribute (IP)

Redistributes routes from one routing domain into another routing domain.


distribute-list out (IP)

To suppress networks from being advertised in updates, use the distribute-list out command in address family or router configuration mode. To cancel this function, use the no form of this command.

distribute-list {access-list-number | access-list-name} out [interface-name | routing-process | as-number]

no distribute-list {access-list-number | access-list-name} out [interface-name | routing-process | as-number]

Syntax Description

access-list-number | access-list-name

Standard IP access list number or name. The list defines which networks are to be sent and which are to be suppressed in routing updates.

out

Applies the access list to outgoing routing updates.

interface-name

(Optional) Name of a particular interface. The interface-name argument cannot be used in address family configuration mode.

routing-process

(Optional) Name of a particular routing process, or the static or connected keyword.

as-number

(Optional) Autonomous system number.


Defaults

This command is disabled by default.

Command Modes

Address family configuration
Router configuration

Command History

Release
Modification

10.0

This command was introduced.

11.2

The access-list-name argument was added.

12.0(7)T

Address family configuration mode was added.


Usage Guidelines

When networks are redistributed, a routing process name can be specified as an optional trailing argument to the distribute-list command. Specifying this option causes the access list to be applied to only those routes derived from the specified routing process. After the process-specific access list is applied, any access list specified by a distribute-list command without a process name argument will be applied. Addresses not specified in the distribute-list command will not be advertised in outgoing routing updates.

The interface-name argument cannot be used in address family configuration mode.


Note To filter networks received in updates, use the distribute-list in command.


Examples

The following example would cause only one network to be advertised by a RIP routing process, network 10.108.0.0:

access-list 1 permit 10.108.0.0
access-list 1 deny 0.0.0.0 255.255.255.255
router rip
 network 10.108.0.0
 distribute-list 1 out

The following example applies access list 1 to outgoing routing updates and enables Intermediate System-to-Intermediate System (IS-IS) on Ethernet interface 0. Only network 10.10.101.0 will be advertised in outgoing IS-IS routing updates.

router isis
 redistribute ospf 109
 distribute-list 1 out
interface Ethernet 0
 ip router isis
access-list 1 permit 10.10.101.0 0.0.0.255

Related Commands

Command
Description

access-list (IP extended)

Defines an extended IP access list.

access-list (IP standard)

Defines a standard IP access list.

distribute-list in (IP)

Filters networks received in updates.

redistribute (IP)

Redistributes routes from one routing domain into another routing domain.


domain-password

To configure the IS-IS routing domain authentication password, use the domain-password command in router configuration mode. To disable a password, use the no form of this command.

domain-password password [authenticate snp {validate | send-only}]

no domain-password [password]

Syntax Description

password

Password you assign.

authenticate snp

(Optional) Causes the system to insert the password into SNP protocol data units (PDUs).

validate

(Optional) Causes the system to insert the password into the SNPs and check the password in SNPs that it receives.

send-only

(Optional) Causes the system only to insert the password into the SNPs, but not check the password in SNPs that it receives. Use this keyword during a software upgrade to ease the transition.


Defaults

No domain password is specified and no authentication is enabled for exchange of Level 2 routing information.

Command Modes

Router configuration

Command History

Release
Modification

10.0

This command was introduced.

12.0(21)ST

The authenticate snp, validate, and send-only keywords were added.


Usage Guidelines

This password is exchanged as plain text and thus this feature provides only limited security.

This password is inserted in Level 2 (area router level) PDU link-state packets (LSPs), complete sequence number PDUs (CSNPs), and partial sequence number PDUs (PSNPs).

If you do not specify the authenticate snp keyword along with either the validate or send-only keyword, then the IS-IS routing protocol does not insert the password into SNPs.

Examples

The following example assigns an authentication password to the routing domain and specifies that the password be inserted in SNPs and checked in SNPs that the system receives:

router isis
 domain-password users2j45 authenticate snp validate

Related Commands

Command
Description

area-password

Configures the IS-IS area authentication password.

isis password

Configures the authentication password for an interface.


eigrp log-neighbor-changes

To enable the logging of changes in Enhanced Interior Gateway Routing Protocol (EIGRP) neighbor adjacencies, use the eigrp log-neighbor-changes command in router configuration mode. To disable the logging of changes in EIGRP neighbor adjacencies, use the no form of this command.

eigrp log-neighbor-changes

no eigrp log-neighbor-changes

Syntax Description

This command has no arguments or keywords.

Defaults

Adjacency changes are logged.

Command Modes

Router configuration

Command History

Release
Modification

11.2

This command was introduced.


Usage Guidelines

This command enables the logging of neighbor adjacency changes to monitor the stability of the routing system and to help detect problems. Logging is enabled by default. To disable the logging of neighbor adjacency changes, use the no form of this command.

Examples

The following configuration disables logging of neighbor changes for EIGRP process 209:

router eigrp 209
 no eigrp log-neighbor-changes

The following configuration enables logging of neighbor changes for EIGRP process 209:

router eigrp 209
 eigrp log-neighbor-changes

eigrp log-neighbor-warnings

To enable the logging of Enhanced Interior Gateway Routing Protocol (EIGRP) neighbor warning messages, use the eigrp log-neighbor-warnings command in router configuration mode. To disable the logging of EIGRP neighbor warning messages, use the no form of this command.

eigrp log-neighbor-warnings [seconds]

no eigrp log-neighbor-warnings

Syntax Description

seconds

(Optional) The time interval (in seconds) between repeated neighbor warning messages. The range of seconds is from 1 to 65535.


Defaults

Neighbor warning messages are logged.

Command Modes

Router configuration

Command History

Release
Modification

12.0(5)

This command was introduced.


Usage Guidelines

When neighbor warning messages occur, they are logged by default. With this command, you can disable and enable neighbor warning messages, and configure the interval between repeated neighbor warning messages.

Examples

The following command will log neighbor warning messages for EIGRP process 209 and repeat the warning messages in 5-minute (300 seconds) intervals:

router eigrp 209
 eigrp log-neighbor-warnings 300

eigrp router-id

To set the router ID used by Enhanced Interior Gateway Routing Protocol (EIGRP) when communicating with its neighbors, use the eigrp router-id command in router configuration mode. To remove the configured router ID, use the no form of this command.

eigrp router-id ip-address

no eigrp router-id ip-address

Syntax Description

ip-address

Router ID in dotted decimal notation.


Defaults

EIGRP automatically selects an IP address to use as the router ID when an EIGRP process is started. The highest local IP address is selected and loopback interfaces are preferred. The router ID is not changed unless the EIGRP process is removed with the no router eigrp command or if the router ID is manually configured with the eigrp router-id command.

Command Modes

Address family configuration
Router configuration

Command History

Release
Modification

12.1

This command was introduced.


Usage Guidelines

The router ID is used to identify the originating router for external routes. If an external route is received with the local router ID, the route is discarded. The router ID can be configured with any IP address with two exceptions; 0.0.0.0 and 255.255.255.255 are not legal values and cannot be entered. A unique value should be configured for each router.

Examples

The following example configures 172.16.1.3 as a fixed router ID:

router eigrp 209
 eigrp router-id 172.16.1.3

eigrp stub

To configure a router as a stub using Enhanced Interior Gateway Routing Protocol (EIGRP), use the eigrp stub command in router configuration mode. To disable the EIGRP stub routing feature, use the no form of this command.

eigrp stub [receive-only | connected | static | summary]

no eigrp stub [receive-only | connected | static | summary]

Syntax Description

receive-only

(Optional) Sets the router as a receive-only neighbor.

connected

(Optional) Advertises connected routes.

static

(Optional) Advertises static routes.

summary

(Optional) Advertises summary routes.


Defaults

Stub routing is not enabled by default.

Command Modes

Router configuration

Command History

Release
Modification

12.0(7)T

This command was introduced.

12.0(15)S

This command was integrated into Cisco IOS Release 12.0(15)S.


Usage Guidelines

Use the eigrp stub command to configure a router as a stub where the router directs all IP traffic to a distribution router.

The eigrp stub command can be modified with several options, and these options can be used in any combination except for the receive-only keyword. The receive-only keyword will restrict the router from sharing any of its routes with any other router in that EIGRP autonomous system, and the receive-only keyword will not permit any other option to be specified because it prevents any type of route from being sent. The three other optional keywords (connected, static, and summary) can be used in any combination but cannot be used with the receive-only keyword. If any of these three keywords is used individually with the eigrp stub command, connected and summary routes will not be sent automatically.

The connected keyword will permit the EIGRP Stub Routing feature to send connected routes. If the connected routes are not covered by a network statement, it may be necessary to redistribute connected routes with the redistribute connected command under the EIGRP process. This option is enabled by default.

The static keyword will permit the EIGRP Stub Routing feature to send static routes. Without the configuration of this option, EIGRP will not send any static routes, including internal static routes that normally would be automatically redistributed. It will still be necessary to redistribute static routes with the redistribute static command.

The summary keyword will permit the EIGRP Stub Routing feature to send summary routes. Summary routes can be created manually with the summary address command or automatically at a major network border router with the auto-summary command enabled. This option is enabled by default.


Note Multi-access interfaces, such as ATM, Ethernet, Frame Relay, ISDN PRI, and X.25, are supported by the EIGRP Stub Routing feature only when all routers on that interface, except the hub, are configured as stub routers.


Examples

In the following example, the eigrp stub command is used to configure the router as a stub that advertises connected and summary routes:

router eigrp 1
network 10.0.0.0
eigrp stub

In the following example, the eigrp stub command is issued with the connected and static keywords to configure the router as a stub that advertises connected and static routes (sending summary routes will not be permitted):

router eigrp 1
network 10.0.0.0
eigrp stub connected static

In the following example, the eigrp stub command is issued with the receive-only keyword to configure the router as a receive-only neighbor (connected, summary, and static routes will not be sent):

router eigrp 1
network 10.0.0.0 eigrp 
eigrp stub receive-only

exit peer-policy

To exit policy-template configuration mode and enter router configuration mode, use the exit peer-policy command in policy-template configuration mode.

exit peer-policy

Syntax Description

This command has no keywords or arguments.

Defaults

No default behavior or values

Command Modes

Policy-template configuration

Command History

Release
Modification

12.0(24)S

This command was introduced.

12.2(18)S

This command was integrated into Cisco IOS Release 12.2(18)S.

12.3(4)T

This command was integrated into Cisco IOS Release 12.3(4)T.


Usage Guidelines

This command is used to exit policy-template configuration mode.

Examples

In the following example, the router is configured to exit policy-template configuration mode and enter router configuration mode:

Router(config-router-ptmp)# exit-peer-policy 
Router(config-router)#

Related Commands

Command
Description

template peer-policy

Creates a peer policy template and enters policy-template configuration mode.


exit peer-session

To exit session-template configuration mode and enter router configuration mode, use the exit peer-session command in session-template configuration mode.

exit peer-session

Syntax Description

This command has no keywords or arguments.

Defaults

No default behavior or values

Command Modes

Session-template configuration

Command History

Release
Modification

12.0(24)S

This command was introduced.

12.2(18)S

This command was integrated into Cisco IOS Release 12.2(18)S.

12.3(4)T

This command was integrated into Cisco IOS Release 12.3(4)T.


Usage Guidelines

This command is used to exit session-template configuration mode.

Examples

In the following example, the router is configured to exit session-template configuration mode and enter router configuration mode:

Router(config-router-stmp)# exit-peer-session 
Router(config-router)#

Related Commands

Command
Description

template peer-session

Creates a peer session template and enters session-template configuration mode.


exit-address-family

To exit from address family configuration mode, use the exit-address-family command in address family configuration mode.

exit-address-family

Syntax Description

This command has no arguments or keywords.

Defaults

No default behavior or values

Command Modes

Address family configuration

Command History

Release
Modification

12.0(5)T

This command was introduced.

12.0(22)S

EIGRP support was added.

12.2(15)T

EIGRP support was added.


Usage Guidelines

This command is used to exit address family configuration mode.

Examples

In the following example, the router is configured exit address family configuration mode:

Router(config-router-af)# exit-address-family 
Router(config-router-af)#  

Related Commands

Command
Description

address-family ipv4

Enters IPv4 address family configuration mode.

address-family vpnv4

Enters VPNv4 address family configuration mode.

address-family ipv6

Enters IPv6 address family configuration mode.

address-family nsap

Enters CLNS address family configuration mode.


export map

To associate an export map with a VPN Routing and Forwarding (VRF) instance, use the export map command in VRF configuration mode.

export map route-map

Syntax Description

route-map

Specifies the route map to be used as an export map.


Defaults

No default behavior or values

Command Modes

IP VPN Routing/Forwarding configuration mode

Command History

Release
Modification

12.0(5)T

This command was introduced.


Usage Guidelines

The export map command is used to associate a route map with the specified VRF. The export map is used to filter routes that are eligible for export out of a VRF, based on the route target extended community attributes of the route. Only one export route map can be configured for a VRF.

An export route map can be used when an application requires finer control over the routes that are exported out of a VRF than the control that is provided by import and export extended communities configured for the importing and exporting VRFs.

Examples

In the following example, an export is configured under the VRF and an access list and route map are configured to specify which prefixes are exported:

Router(config)# ip vrf RED 
Router(config-vrf)# rd 1:1 
Router(config-vrf)# export map BLUE 
Router(config-vrf)# route-target import 2:1 
Router(config-vrf)# exit 
Router(config)# access-list 1 permit 192.168.0.0 0.0.255.255
Router(config)# route-map BLUE permit 10 
Router(config-route-map)# match ip address 1 
Router(config-route-map)# set extcommunity rt 2:1 
Router(config-route-map)# end 

Related Commands

Command
Description

import map

Configures an import route map for a VRF.

ip extcommunity-list

Creates an extended community list for BGP and controls access to it.

ip vrf

Configures a VRF routing table.

route-target

Creates a route-target extended community for a VRF.

show ip vrf

Displays the set of defined VRFs and associated interfaces.


fast-flood

To fast-flood Intermediate System-to-Intermediate System (IS-IS) link-state packets (LSPs), use the fast-flood command in router configuration mode. To disable the fast-flooding, use the no version of this command.

fast-flood lsp-number

no fast-flood lsp-number

Syntax Description

lsp-number

(Optional) The number of LSPs from 1 to 15 to be flooded before shortest path first (SPF) is started. The default is 5 LSPs.


Command Modes

Router configuration

Defaults

Fast-flooding is disabled. Five LSPs are flooded before SPF is started.

Command History

Release
Modification

12.0(27)S

This command was introduced.

12.3(7)T

This command was integrated into Cisco IOS Release 12.3(7)T. This command replaces the ip fast-convergence command.


Usage Guidelines

The fast-flood command tells the router to flood a certain number of LSPs, as configured by the lsp-number argument (if no lsp-number value has been specified, the default value of 5 is used), that invoke SPF before running SPF. When you speed up the LSP flooding process, you improve overall network convergence time.

If you are running SPF and if you have configured very short values (less than 40 milliseconds) for the initial delay that is set by the seconds argument of the incremental-spf command, the SPF computation might start before the LSP that triggered SPF is flooded to neighbors. The router should always flood (at least) the LSP that triggered SPF before the router runs the SPF computation.

We recommend that you enable the fast-flooding of LSPs before the router runs the SPF computation, in order to achieve a faster convergence time.


Note Beginning with Cisco IOS Release 12.3(7)T, the ip fast-convergence command is replaced with the fast-flood command.


Examples

In the following example, the fast-flood command is entered to configure the router to flood the first seven LSPs that invoke SPF, before the SPF computation is started. When the show running-configuration command is entered, the output confirms that fast-flooding has been enabled on the router.

Router# clear isis rib redistribution 10.1.0.0 255.255.0.0
Router> enable
Router# configure terminal
Router(config)# router isis first
Router(config-router)# fast-flood 7
Router(config-router)# end
Router# show running-configuration

fast-flood 7

Related Commands

Command
Description

incremental-spf

Enables incremental SPF.


flash-update-threshold

To suppress regularly scheduled flash updates, use the flash-update-threshold command in router configuration mode. To return to the default state, use the no form of this command.

flash-update-threshold seconds

no flash-update-threshold

Syntax Description

seconds

The time interval in seconds for which the suppression of flash updates can be configured. The range is from 1 to 30 seconds.


Defaults

This command is disabled by default.

Command Modes

Router configuration

Command History

Release
Modification

12.0

This command was introduced.


Usage Guidelines

This command suppresses flash updates when the arrival of a regularly scheduled update matches the number of seconds that is configured with the seconds argument. The range of seconds that can be configure is from 0 to 30 seconds. If the number of seconds matches the number of seconds or is less than the number seconds that is configured with the seconds argument, the flash update is suppressed. If the numbers seconds until the flash update arrives exceeds the number of seconds that is configured with the seconds argument, the flash update is not suppressed. The regular scheduled interval for flash updates and the configuration of the suppression of flash updates can be verified with the show ip protocol command.

Examples

The following example configures a router to suppress a regularly scheduled flash update if the update is due in 10 seconds or less:

router rip
 flash-update-threshold 10 

Related Commands

Command
Description

show ip protocols

Displays the parameters and current state of the active routing protocol process.


hello padding

To reenable IS-IS hello padding at the router level, enter the hello padding command in router configuration mode. To disable IS-IS hello padding, use the no form of this command.

hello padding

no hello padding

Syntax Description

This command has no arguments or keywords.

Defaults

IS-IS hello padding is enabled.

Command Modes

Router configuration

Command History

Release
Modification

12.0(5)T

This command was introduced.

12.0(5)S

This command was integrated into Cisco IOS Release 12.0(5)S.


Usage Guidelines

Intermediate System-to-Intermediate System (IS-IS) hellos are padded to the full maximum transmission unit (MTU) size. The benefit of padding IS-IS hellos to the full MTU is that it allows for early detection of errors that result from transmission problems with large frames or errors that result from mismatched MTUs on adjacent interfaces.

You can disable hello padding in order to avoid wasting network bandwidth in case the MTU of both interfaces is the same or, in case of translational bridging. While hello padding is disabled, Cisco routers still send the first five IS-IS hellos padded to the full MTU size, in order to maintain the benefits of discovering MTU mismatches.

To disable hello padding for all interfaces on a router for the IS-IS routing process, enter the no hello padding command in router configuration mode. To selectively disable hello padding for a specific interface, enter the no isis hello padding command in interface configuration mode.

Examples

In the following example the no hello padding command is used to turn off hello padding at the router level:

Router(config)# router isis
Router(config-router)# no hello padding
Router(config-router)# end

The show clns interfaces command is entered to show that hello padding has been turned off at router level:

Router# show clns interface e0/0

Ethernet0/0 is up, line protocol is up
  Checksums enabled, MTU 1497, Encapsulation SAP
  ERPDUs enabled, min. interval 10 msec.
  CLNS fast switching enabled
  CLNS SSE switching disabled
  DEC compatibility mode OFF for this interface
  Next ESH/ISH in 4 seconds
  Routing Protocol: IS-IS
    Circuit Type: level-1-2
    Interface number 0x0, local circuit ID 0x1
    Level-1 Metric: 10, Priority: 64, Circuit ID: Router_B.01
    Level-1 IPv6 Metric: 10
    Number of active level-1 adjacencies: 1
    Level-2 Metric: 10, Priority: 64, Circuit ID: Router_B.01
    Level-2 IPv6 Metric: 10
    Number of active level-2 adjacencies: 1
    Next IS-IS LAN Level-1 Hello in 6 seconds
!   No hello padding
    Next IS-IS LAN Level-2 Hello in 2 seconds
!   No hello padding

When the debug isis adj packets command is entered, the output will show the IS-IS hello protocol data unit (PDU) length when a hello packet has been sent to or received from an IS-IS adjacency. In the following example the IS-IS hello PDU length is 1497:

Router# debug isis adj packets e0/0

IS-IS Adjacency related packets debugging is on
Router_A#
*Oct 11 18:04:17.455: ISIS-Adj: Sending L1 LAN IIH on Ethernet0/0, length 55
*Oct 11 18:04:19.075: ISIS-Adj: Rec L2 IIH from aabb.cc00.6600 (Ethernet0/0), cir type 
L1L2, cir id 0000.0000.000B.01, length 1497

Related Commands

Command
Description

isis hello padding

Reenables IS-IS hello padding at the interface level.

debug isis adj packets

Displays information on all adjacency-related activity such as hello packets sent and received and IS-IS adjacencies going up and down.

show clns interface

Lists the CLNS-specific information about each interface.


hostname dynamic

To enable IS-IS dynamic hostname capability on the router, use the hostname dynamic command in router configuration mode. To disable the dynamic hostname feature, use the no form of this command.

hostname dynamic

no hostname dynamic

Syntax Description

This command has no arguments or keywords.

Command Default

The dynamic hostname feature is enabled by default.

Command Modes

Router configuration

Command History

Release
Modification

12.0

This command was introduced.

12.0S

This command was integrated into Cisco IOS Release 12.0(S).


Usage Guidelines

In the IS-IS routing domain, the system ID is used to represent each router. The system ID is part of the network entity title (NET) that is configured for each IS-IS router. For example, a router with a configured NET of 49.0001.0023.0003.000a.00 has a system ID of 0023.0003.000a. Router-name-to-system-ID mapping is difficult for network administrators to remember during maintenance and troubleshooting on the routers. Entering the show isis hostname command displays the entries in the system-ID-to-router-name mapping table.

The dynamic hostname mechanism uses link-state protocol (LSP) flooding to distribute the router-name-to-system-ID mapping information across the entire network. Every router on the network will try to install the system ID-to-router name mapping information in its routing table.

If a router that has been advertising the dynamic name type, length, value (TLV) on the network suddenly stops the advertisement, the mapping information last received will remain in the dynamic host mapping table for up to one hour, allowing the network administrator to display the entries in the mapping entry during a time when the network experiences problems. Entering the show isis hostname command displays the entries in the mapping table.


Note Locally defined mappings are always preferred over dynamicly learned mappings. If you have already configured the clns host command to overwrite network advertised name mappings from LSPs, the clns host command will take precedence over the dynamic hostname feature.


Examples

The following example changes the hostname from Router to RouterA and assigns the NET 49.0001.0000.0000.000b.00 to RouterA. The dynamic hostname feature is disabled by entering the no dynamic hostname command. The dynamic hostname feature is then reeanabled by entering the dynamic hostname command.

Router> enable
Router# configure terminal
Router(config)# hostname RouterA
RouterA(config)# router isis CompanyA
RouterA(config-router)# net 49.0001.0000.0000.000b.00
RouterA(config-router)# hostname dynamic
RouterA(config-router)# end

Entering the show isis hostname command displays the dynamic host mapping table. The * symbol signifies that this is the hostname for the local router. The dynamic host mapping table confirms that system ID 0000.0000.000B belongs to a router with the dynamic hostname RouterA. This router is running the IS-IS process named CompanyA.

Router# show isis hostname

Level  System ID      Dynamic Hostname    (CompanyA)
     * 0000.0000.000B RouterA

Related Commands

Command
Description

clns host

Defines a name-to-NSAP mapping that can then be used with commands that require NSAPs.

hostname

Specifies or modifies the hostname for the network server.

net

Configures an IS-IS NET for a CLNS or IS-IS routing process.

show isis hostname

Displays the entries of the dynamic host mapping table.