Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Performing a Loopback Test on an Interface

    Problem

    The following steps are a general outline of how you use loopback testing to isolate the source of the interface problem. For more detailed information on a specific interface, see the corresponding loopback section.

    Solution

    To use loopback testing for interfaces, follow these steps:

    1. Diagnose a suspected hardware problem.
      1. Create a loopback.
      2. Set clocking to internal. (Not for Fast Ethernet/Gigabit Ethernet or Multichannel DS3 interfaces.)
      3. Verify that the status of the interface is up.
      4. Configure a static address resolution protocol table entry. (Fast Ethernet/Gigabit Ethernet interfaces only)
      5. Clear the interface statistics.
      6. Force the link layer to stay up.
      7. Verify the status of the logical interface.
      8. Ping the interface.
      9. Check for interface error statistics.
    1. Diagnose a suspected connection problem.
      1. Create a loop from the router to the network.
      2. Create a loop to the router from various points in the network.

    The Table 1 lists and describes the operational and configuration mode commands you use to perform loopback testing on interfaces (the commands are shown in the order in which you perform them).

    Table 1: Commands Used to Perform Loopback Testing on Interfaces

    CLI Statement or Command

    Interface Type

    Description

    [edit interfaces interface-name interface- options]
    set loopback (local | remote)

    All interfaces

    The loopback statement at the hierarchy level configures a loopback on the interface. Packets can be looped on either the local router or the remote channel service unit (CSU).

    To turn off loopback, remove the loopback statement from the configuration.

    show

    All interfaces

    Verify the configuration before you commit it.

    commit

    All interfaces

    Save the set of changes to the database and cause the changes to take operational effect.

    Use after you have verified a configuration in all configuration steps.

    [edit interfaces interface-name]
    set clocking internal

    T1, T3, ATM, and SONET interfaces

    The clocking statement at this hierarchy level configures the clock source of the interface to internal.

    show interfaces interface-name

    Used for all interfaces

    Display static status information about a specific interface.

    [edit interfaces interface-name unit logical-unit-number family inet address address]
    arp ip-address
    mac mac-address

    Fast Ethernet and Gigabit Ethernet interfaces

    The arp statement at this hierarchy level defines mappings between IP and Media Access Control (MAC) addresses.

    show arp no-resolve

    Fast Ethernet and Gigabit Ethernet interfaces

    Display the entries in the ARP table without attempting to determine the hostname that corresponds to the IP address (the no-resolve option).

    clear interfaces statistics interface-name

    All interfaces

    Reset the statistics for an interface to zero.

    [edit interfaces interface-name ]
    set encapsulation cisco-hdlc

    T1, T3, SONET, and Multichannel DS3 interfaces

    The encapsulation statement at this hierarchy level sets the encapsulation to the Cisco High-level Data-Link Control (HDLC) transport protocol on the physical interface.

    [edit interfaces interface-name]
    set no-keepalives

    T1, T3, SONET, and Multichannel DS3 interfaces

    The no-keepalives statement at this level disables the sending of keepalives on the physical interface.

    show interfaces interface-name terse

    T1, T3, and SONET interfaces

    Display summary information about interfaces. (Use to display the status of the logical interfaces for these interfaces.)

    ping interface t1- x/x/x local-IP-address bypass-routing count 1000 rapid

    All interfaces

    Check the reachability of network hosts by sending ICMP ECHO_REQUEST messages to elicit ICMP ECHO_RESPONSE messages from the specified host.

    Use the bypass-routing option to ping a local system through an interface that has no route through it.

    The count option sends 1000 ping requests through the system.

    Type Ctrl+C to interrupt a ping command.

    show interfaces interface-name extensive

    All interfaces

    Display very detailed interface information about a specific interface.

    Published: 2013-02-25