|
This chapter describes the function and displays the syntax of IP commands. For more information about defaults and usage guidelines, see the corresponding chapter of the Router Products Command Reference publication.
[no] access-class access-list-number {in | out}
To restrict incoming and outgoing connections between a particular virtual terminal line (into a Cisco device) and the addresses in an access list, use the access-class line configuration command. To remove access restrictions, use the no form of this command.
access-list access-list-number {deny | permit} source [source-wildcard]
no access-list access-list-number
To define a standard IP access list, use the standard version of the access-list global configuration command. To remove a standard access lists, use the no form of this command.
access-list access-list-number {deny | permit} protocol source
source-wildcard destination destination-wildcard [precedence
precedence] [tos tos]
no access-list access-list-number
access-list access-list-number {deny | permit} icmp source
source-wildcard destination destination-wildcard [icmp-type
[icmp-code] | icmp-message] [precedence precedence] [tos tos]
For ICMP, you can also use the syntax shown above.
access-list access-list-number {deny | permit} igmp source
source-wildcard destination destination-wildcard [igmp-type]
[precedence precedence] [tos tos]
For IGMP, you can also use the syntax shown above.
access-list access-list-number {deny | permit} tcp source
source-wildcard [operator port [port]] destination
destination-wildcard [operator port [port]] [established]
[precedence precedence] [tos tos]
For TCP, you can also use the the syntax shown above.
access-list access-list-number {deny | permit} udp source
source-wildcard [operator port [port]] destination
destination-wildcard [operator port [port]] [precedence precedence]
[tos tos]
For UDP, you can also use the syntax shown above.
To define an extended IP access list, use the extended version of the access-list global configuration command. To remove the access lists, use the no form of this command.
[no] arp ip-address hardware-address type [alias]
To add a permanent entry in the ARP cache, use the arp global configuration command. To remove an entry from the ARP cache, use the no form of this command.
[no] arp {arpa | probe | snap}
To control the interface-specific handling of IP address resolution into 48-bit Ethernet, FDDI, and Token Ring hardware addresses, use the arp interface configuration command. To disable an encapsulation type, use the no form of this command.
To configure how long an entry remains in the ARP cache, use the arp timeout interface configuration command. To restore the default value, use the no form of this command.
Time, in seconds, that an entry remains in the ARP cache. A value of zero means that entries are never cleared from the cache. |
To delete all dynamic entries from the ARP cache, to clear the fast-switching cache, and to clear the IP route cache, use the clear arp-cache EXEC command.
To delete entries from the host-name-and-address cache, use the clear host EXEC command.
clear ip accounting [checkpoint]
To clear the active or checkpointed database when IP accounting is enabled, use the clear ip accounting EXEC command.
To clear all dynamic entries from the Next Hop Resolution Protocol (NHRP) cache, use the clear ip nhrp EXEC command.
clear ip route {network [mask] | *}
To delete entries from the IP routing table, use the clear ip route EXEC command.
To have the route processor recompute the SSE program for IP on the Cisco 7000 series, use the clear ip sse EXEC command.
To reinitialize the route processor on the Cisco 7000 series, use the clear sse EXEC command.
To set the retransmit count used by the DNSIX Message Delivery Protocol (DMDP), use the dnsix-dmdp retries global configuration command. To restore the default number of retries, use the no form of this command.
Number of times DMDP will retransmit a message. It can be a decimal integer from 0 through 200. The default is 4 retries, or until acknowledged. |
[no] dnsix-nat authorized-redirection ip-address
To specify the address of a collection center that is authorized to change the primary and secondary addresses of the host to receive audit messages, use the dnsix-nat authorized-redirection global configuration command. To delete an address, use the no form of this command.
[no] dnsix-nat primary ip-address
To specify the IP address of the host to which DNSIX audit messages are sent, use the dnsix-nat primary global configuration command. To delete an entry, use the no form of this command.
[no] dnsix-nat secondary ip-address
To specify an alternate IP address for the host to which DNSIX audit messages are sent, use the dnsix-nat secondary global configuration command. To delete an entry, use the no form of this command.
[no] dnsix-nat source ip-address
To start the audit-writing module and to define audit trail source address, use the dnsix-nat source global configuration command. To disable the DNSIX audit trail writing module, use the no form of this command.
[no] dnsix-nat transmit-count count
To have the audit writing module collect multiple audit messages in the buffer before sending the messages to a collection center, use the dnsix-nat transmit-count global configuration command. To revert to the default audit message count, use the no form of this command.
Number of audit messages to buffer before transmitting to the server. Integer from 1 through 200. The default is 1. |
[no] ip access-group access-list-number {in | out}
To control access to an interface, use the ip access-group interface configuration command. To remove the specified access group, use the no form of this command. If a keyword is not specified, out is the default.
[no] ip accounting [access-violations]
To enable IP accounting on an interface, use the ip accounting interface configuration command. To disable IP accounting, use the no form of this command.
(Optional) Enables IP accounting with the ability to identify IP traffic that fails IP access lists. |
[no] ip accounting-list ip-address mask
To define filters to control the hosts for which IP accounting information is kept, use the ip accounting-list global configuration command. To remove a filter definition, use the no form of this command.
[no] ip accounting-threshold threshold
To set the maximum number of accounting entries to be created, use the ip accounting-threshold global configuration command. To restore the default number of entries, use the no form of this command.
Maximum number of entries (source and destination address pairs) that the router accumulates. The default is 512 entries. |
ip accounting-transits count
no ip accounting-transits
To control the number of transit records that are stored in the IP accounting database, use the ip accounting-transits global configuration command. To return to the default number of records, use the no form of this command.
[no] ip address ip-address mask
To set an IP address for an interface, use the ip address interface configuration command. To remove an IP address, use the no form of this command.
[no] ip address ip-address mask secondary
To set multiple IP addresses for an interface, use the ip address secondary interface configuration command. To remove an address, use the no form of this command.
[no] ip broadcast-address [ip-address]
To define a broadcast address for an interface, use the ip broadcast-address interface configuration command. To restored the default IP broadcast address, use the no form of this command.
ip cache-invalidate-delay [minimum maximum quiet threshold]
no ip cache-invalidate-delay
To control the invalidation rate of the IP route cache, use the ip cache-invalidate-delay global configuration command. To allow the IP route cache to be immediately invalidated, use the no form of this command.
At times the router might receive packets destined for a subnet of a network that has no network default route. To have the router forward such packets to the best supernet route possible, use the ip classless global configuration command. To disable this feature, use the no form of this command.
[no] ip default-gateway ip-address
To define a default gateway (router) when IP routing is disabled, use the ip default-gateway global configuration command. To disable this function, use the no form of this command.
[no] ip directed-broadcast [access-list-number]
To enable the translation of directed broadcast to physical broadcasts, use the ip directed-broadcast interface configuration command. To disable this function, use the no form of this command.
(Optional) Number of the access list. If specified, a broadcast must pass the access list to be forwarded. If not specified, all broadcasts are forwarded. |
To define a list of default domain names to complete unqualified host names, use the ip domain-list global configuration command. To delete a name from a list, use the no form of this command.
Domain name. Do not include the initial period that separates an unqualified name from the domain name. |
To enable the IP Domain Name System-based host name-to-address translation, use the ip domain-lookup global configuration command. To disable the Domain Name System, use the no form of this command.
To allow Domain Name System (DNS) queries for CLNS addresses, use the ip domain-lookup nsap global configuration command. To disable this feature, use the no form of this command.
ip domain-name name
no ip domain-name
To define a default domain name that the router uses to complete unqualified host names (names without a dotted-decimal domain name), use the ip domain-name global configuration command. To disable use of the Domain Name System, use the no form of this command.
Default domain name used to complete unqualified host names.Do not include the initial period that separates an unqualified name from the domain name. |
[no] ip forward-protocol {udp [port] | nd | sdns}
To specify which protocols and ports the router forwards when forwarding broadcast packets, use the ip forward-protocol global configuration command. To remove a protocol or port, use the no form of this command.
[no] ip forward-protocol any-local-broadcast
To forward any broadcasts including local subnet broadcasts, use the ip forward-protocol any-local-broadcast global configuration command. To disable this type of forwarding, use the no form of this command.
[no] ip forward-protocol spanning-tree
To permit IP broadcasts to be flooded throughout the internetwork in a controlled fashion, use the ip forward-protocol spanning-tree global configuration command. To disable the flooding of IP broadcasts, use the no form of this command.
[no] ip forward-protocol turbo-flood
To speed up flooding of User Datagram Protocol (UDP) datagrams using the spanning-tree algorithm, use the ip forward-protocol turbo-flood global configuration command. To disable this feature, use the no form of this command.
To configure the router discovery feature using the Cisco Gateway Discovery Protocol (GDP) routing protocol, use the ip gdp gdp interface configuration command. To disable this feature, use the no form of this command.
To configure the router discovery feature using the Cisco Interior Gateway Routing Protocol (IGRP), use the ip gdp igrp interface configuration command. To disable this feature, use the no form of this command.
To configure the router discovery feature using the ICMP Router Discovery Protocol (IRDP), use the ip gdp irdp interface configuration command. To disable this feature, use the no form of this command.
To configure the router discovery feature using the Routing Information Protocol (RIP), use the ip gdp rip interface configuration command. To disable this feature, use the no form of this command.
[no] ip helper-address address
To have the router forward User Datagram Protocol (UDP) broadcasts, including BOOTP, received on an interface, use the ip helper-address interface configuration command. To disable the forwarding of broadcast packets to specific addresses, use the no form of this command.
Destination broadcast or host address to be used when forwarding UDP broadcasts. You can have more than one helper address per interface. |
ip host name [tcp-port-number] address1 [address2[...[address8]]]
no ip host name address
To define a static host name-to-address mapping in the host cache, use the ip host global configuration command. To remove the name-to-address mapping, use the no form of this command.
[no] ip hp-host hostname ip-address
To enter into the host table the host name of an HP host to be used for HP Probe Proxy service, use the ip hp-host global configuration command. To remove a host name, use the no form of this command.
To have the router to respond to Internet Control Message Protocol (ICMP) mask requests by sending ICMP Mask Reply messages, use the ip mask-reply interface configuration command. To disable this function, use the no form of this command.
[no] ip mobile arp [timers keepalive hold-time] [access-group
access-list-number]
To enable local-area mobility, use the ip mobile arp interface configuration command. To disable local-area mobility, use the no form of this command.
To set the maximum transmission unit (MTU) size of IP packets sent on an interface, use the ip mtu interface configuration command. To restore the default MTU size, use the no form of this command.
[no] ip name-server server-address1 [server-address2
[...[server-address6]]]
To specify the address of one or more name servers to use for name and address resolution, use the ip name-server global configuration command. To remove the addresses specified, use the no form of this command.
ip netmask-format {bitcount | decimal | hexadecimal}
no ip netmask-format [bitcount | decimal | hexadecimal]
To specify the format in which netmasks are displayed in show command output, use the ip netmask-format line configuration command. To restore the default display format, use the no form of this command.
ip nhrp authentication string
no ip nhrp authentication [string]
To configure the authentication string for an interface using Next Hop Resolution Protocol (NHRP), use the ip nhrp authentication interface configuration command. To remove the authentication string, use the no form of this command.
Authentication string configured for the source and destination stations that controls whether NHRP stations allow intercommunication. The string can be up to 8 characters long. |
ip nhrp holdtime seconds-positive [seconds-negative]
no ip nhrp holdtime [seconds-positive [seconds-negative]]
To change the number of seconds that NHRP nonbroadcast, multiaccess (NBMA) addresses are advertised as valid in authoritative NHRP responses, use the ip nhrp holdtime interface configuration command. To restore the default value, use the no form of this command.
ip nhrp interest access-list-number
no ip nhrp interest [access-list-number]
To control which IP packets can trigger sending a Next Hop Resolution Protocol (NHRP) Request, use the ip nhrp interest interface configuration command. To restore the default value, use the no form of this command.
ip nhrp map ip-address nbma-address
no ip nhrp map ip-address nbma-address
To statically configure the IP-to-NBMA address mapping of IP destinations connected to a nonbroadcast, multiaccess (NBMA) network, use the ip nhrp map interface configuration command. To remove the static entry from NHRP cache, use the no form of this command.
[no] ip nhrp map multicast nbma-address
To configure NBMA addresses used as destinations for broadcast or multicast packets to be sent over a tunnel network, use the ip nhrp map multicast interface configuration command. To remove the destinations, use the no form of this command.
Nonbroadcast, multiaccess (NBMA) address which is directly reachable through the NBMA network. The address format varies depending on the medium you are using. |
ip nhrp network-id number
no ip nhrp network-id [number]
To enable the Next Hop Resolution Protocol (NHRP) on an interface, use the ip nhrp network-id interface configuration command. To disable NHRP on the interface, use the no form of this command.
Globally unique, 32-bit network identifier for a nonbroadcast, multiaccess (NBMA) network. The range is 1 to 4294967295. |
[no] ip nhrp nhs nhs-address [net-address [netmask]]
To specify the address of one or more NHRP Next Hop Servers, use the ip nhrp nhs interface configuration command. To remove the address, use the no form of this command.
(Optional) IP address of a network served by the Next Hop Server. |
|
(Optional) IP network mask to be associated with the net IP address. The net IP address is logically ANDed with the mask. |
To re-enable the use of forward record and reverse record options in NHRP Request and Reply packets, use the ip nhrp record interface configuration command. To suppress the use of such options, use the no form of this command.
ip nhrp responder type number
no ip nhrp responder [type] [number]
To designate which interface's primary IP address the Next Hop Server will use in NHRP Reply packets when the NHRP requestor uses the Responder Address option, use the ip nhrp responder interface configuration command. To remove the designation, use the no form of this command.
To enable the HP Probe Proxy support, which allows a router to respond to HP Probe Proxy Name requests, use the ip probe proxy interface configuration command. To disable HP Prove Proxy, use the no form of this command.
To enable proxy ARP on an interface, use the ip proxy-arp interface configuration command. To disable proxy ARP on the interface, use the no form of this command.
To enable the sending of redirect messages if the router is forced to resend a packet through the same interface on which it was received, use the ip redirects interface configuration command. To disable the sending of redirect messages, use the no form of this command.
[no] ip route-cache [cbus]
[no] ip route-cache same-interface
[no] ip route-cache sse
To control the use of a high-speed switching cache for IP routing as well as the use of autonomous switching, use the ip route-cache interface configuration command. To disable fast switching and autonomous switching, use the no form of this command.
To enable IP routing on the router, use the ip routing global configuration command. To disable IP routing on the router, use the no form of this command.
To add a basic security option to all outgoing packets, use the ip security add interface configuration command. To disable the adding of a basic security option to all outgoing packets, use the no form of this command.
[no] ip security aeso source compartment-bits
To attach Auxiliary Extended Security Options (AESOs) to an interface, use the ip security aeso command. To disable AESO on an interface, use the no form of this command.
[no] ip security dedicated level authority [authority...]
To set the level of classification and authority on the interface, use the ip security dedicated interface configuration command. To reset the interface to the default classification and authorities, use the no form of this command.
[no] ip security eso-info source compartment-size default-bit
To configure system-wide defaults for extended IP Security Option (IPSO) information, use the ip security eso-info global configuration command. To return to the default settings, use the no form of this command.
[no] ip security eso-max source compartment-bits
To specify the maximum sensitivity level for an interface, use the ip security eso-max interface configuration command. To return to the default, use the no form of this command.
[no] ip security eso-min source compartment-bits
To configure the minimum sensitivity for an interface, use the ip security eso-min interface configuration command. To return to the default, use the no form of this command.
[no] ip security extended-allowed
To accept packets on an interface that has an extended security option present, use the ip security extended-allowed interface configuration command. To restore the default, use the no form of this command.
To prioritize the presence of security options on a packet, use the ip security first interface configuration command. To disable this function, use the no form of this command.
[no] ip security ignore-authorities
To have the router ignore the authorities field of all incoming packets, use the ip security ignore-authorities interface configuration command. To disable this function, use the no form of this command.
[no] ip security implicit-labelling [level authority [authority...]]
To force the router to accept packets on the interface, even if they do not include a security option, use the ip security implicit-labelling interface configuration command. To disable this function, use the no form of this command.
ip security multilevel level1 [authority1...] to level2 authority2
[authority2...]
no ip security multilevel
To set the range of classifications and authorities on an interface, use the ip security multilevel interface configuration command. To disable this function, use the no form of this command.
[no] ip security reserved-allowed
To treat as valid any packets that have Reserved1 through Reserved4 security levels, use the ip security reserved-allowed interface configuration command. To disable this feature, use the no form of this command.
To remove any basic security option on outgoing packets on an interface, use the ip security strip interface configuration command. To disable this function, use the no form of this command.
To allow the router to handle IP datagrams with source routing header options, use the ip source-route global configuration command. To have the router discard any IP datagram containing a source-route option, use the no form of this command.
To enable the use of subnet zero for interface addresses and routing updates, use the ip subnet-zero global configuration command. To restore the default, use the no form of this command.
[no] ip tcp compression-connections number
To specify the total number of header compression connections that can exist on an interface, use the ip tcp compression-connections interface configuration command. To restore the default, use the no form of this command.
[no] ip tcp header-compression [passive]
To enable TCP header compression, use the ip tcp header-compression interface configuration command. To disable compression, use the no form of this command.
(Optional) Compresses outgoing TCP packets only if incoming TCP packets on the same interface are compressed. If you do not specify the passive keyword, the router compresses all traffic. |
ip tcp path-mtu-discovery
no ip tcp path-mtu-discovery
To enable Path MTU Discovery for all new TCP connections from the router, use the ip tcp path-mtu-discovery interface configuration command. To disable the feature, use the no form of this command.
[no] ip tcp synwait-time seconds
To set a period of time the router waits while attempting to establish a TCP connection before it times out, use the ip tcp synwait-time global configuration command. To restore the default time, use the no form of this command.
Time in seconds the router waits while attempting to establish a TCP connection. It can be an integer from 5 to 300 seconds. The default is 30 seconds. |
[no] ip unnumbered interface-name
To enable IP processing on a serial interface without assigning an explicit IP address to the interface, use the ip unnumbered interface configuration command. To disable the IP processing on the interface, use the no form of this command.
Name of another interface on which the router has an assigned IP address. It cannot be another unnumbered interface. |
To enable the generation of ICMP Unreachable messages, use the ip unreachables interface configuration command. To disable this function, use the no form of this command.
ping [protocol] {host | address}
To check host reachability and network connectivity, use the ping (IP packet internet groper function) EXEC command.
To display the contents of all current access lists, use the show access-lists privileged EXEC command.
To display the entries in the ARP table for the router, use the show arp privileged EXEC command.
To display state information and the current configuration of the DNSIX audit writing module, use the show dnsix privileged EXEC command.
To display the default domain name, the style of name lookup service, a list of name server hosts, and the cached list of host names and addresses, use the show hosts EXEC command.
show ip access-list [access-list-number]
To display the contents of all current IP access lists, use the show ip access-list EXEC command.
show ip accounting [checkpoint] [output-packets | access-violations]
To display the active accounting or checkpointed database, use the show ip accounting privileged EXEC command.
To display the router's IP addresses mapped to TCP ports (aliases) and SLIP addresses, which are treated similarly to aliases, use the show ip aliases EXEC command.
To display the Address Resolution Protocol (ARP) cache, where SLIP addresses appear as permanent ARP table entries, use the show ip arp EXEC command.
show ip cache [prefix mask] [type number]
To display the routing table cache used to fast switch IP traffic, use the show ip cache EXEC command.
show ip interface [type number]
To display the usability status of interfaces, use the show ip interface EXEC command.
To display the masks used for network addresses and the number of subnets using each mask, use the show ip masks EXEC command.
show ip nhrp [dynamic | static] [type number]
To display the Next Hop Resolution Protocol (NHRP) cache, use the show ip nhrp EXEC command.
To display Next Hop Resolution Protocol (NHRP) traffic statistics, use the show ip nhrp traffic EXEC command.
To display the address of a default gateway (router) and the address of hosts for which a redirect has been received, use the show ip redirects EXEC command.
show ip route [address [mask] | protocol]
To display the entries in the routing table, use the show ip route EXEC command.
(Optional) Address about which routing information should be displayed. |
|
(Optional) Argument for a particular routing protocol, or static or connected. |
To display summary information about entries in the routing table, use the show ip route summary EXEC command.
show ip tcp header-compression
To display statistics about TCP header compression, use the show ip tcp header-compression EXEC command.
To display statistics about IP traffic, use the show ip traffic EXEC command.
To display a summary of Silicon Switch Processor (SSP) statistics, use the show sse summary EXEC command.
To display standby protocol information, use the show standby EXEC command.
[no] standby [group-number] authentication string
To configure an authentication string for the Hot Standby Router Protocol, use the standby authentication interface configuration command. To delete an authentication string, use the no form of this command.
[no] standby [group-number] ip [ip-address]
To activate the Hot Standby Router Protocol, use the standby ip interface configuration command. To disable the Hot Standby Router Protocol, use the no form of this command.
(Optional) Group number on the interface for which the Hot Standby Router Protocol is being activated. The default number is 0. |
|
[no] standby [group-number] preempt
To indicate that, when the local router has a Hot Standby priority higher than the current active router, the local router should attempt to assume control as the active router, use the standby preempt interface configuration command. To have the local router assume control as the active router only if it receives information indicating that there is no router currently in the active state (acting as the designated router), use the no form of this command.
(Optional) Group number on the interface for which the Hot Standby preemptive feature is being activated. The default number is 0. |
[no] standby [group-number] priority priority-number
To prioritize a potential Hot Standby router, use the standby priority interface configuration command. To restore the priority to the default, use the no form of this command.
(Optional) Group number on the interface to which the priority number applies. The default number is 0. |
|
Priority value. It is an integer from 0 through 255. The default is 100. |
[no] standby [group-number] timers hellotime holdtime
To configure the time between hellos and the time before other routers declare the active Hot Standby or standby router to be down, use the standby timers interface configuration command. To restore the timers to their default values, use the no form of this command.
[no] standby [group-number] track type number [interface-priority]
To configure an interface so that the router's Hot Standby priority changes based on the availability of other interfaces, use the standby track interface configuration command. To remove the tracking, use the no form of this command.
term ip netmask-format {bitcount | decimal | hexadecimal}
term no ip netmask-format [bitcount | decimal | hexadecimal]
To specify the format in which netmasks are displayed in show command output, use the term ip netmask-format EXEC command. To restore the default display format, use the no form of this command.
To discover the routes the router's packets follow when traveling to their destination, use the trace user EXEC command.
(Optional) Destination address or host name on the command line. The default parameters for the appropriate protocol are assumed and the tracing action begins. |
To discover the routes the router's packets follow when traveling to their destination, use the trace privileged EXEC command.
(Optional) Destination address or host name on the command line. The default parameters for the appropriate protocol are assumed and the tracing action begins. |
transmit-interface interface-name
no transmit-interface
To assign a transmit interface to a receive-only interface, use the transmit-interface interface configuration command. To return to normal duplex Ethernet interfaces, use the no form of this command.
tunnel mode {aurp | cayman | dvmrp | eon | gre ip [multipoint] | nos}
no tunnel mode
To set the encapsulation mode for the tunnel interface, use the tunnel mode interface configuration command. To set to the default, use the no form of this command.
(Optional) Enables a GRE tunnel to be used in a multipoint fashion. Can be used with the gre ip keyword only, and requires the use of the tunnel key command. |
|
Posted: Wed Jul 2 23:48:40 PDT 2003
All contents are Copyright © 1992--2003 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.