1

I need to create local loopback as shown herein: Performing Loopback Testing for Fast Ethernet and Gigabit Ethernet Interfaces.

Excerpt

Configure a Local Loopback Action

To configure a local loopback without physically connecting the transmit port to the receive port, follow these steps:

  1. In configuration mode, go to the following hierarchy level:

    [edit]

    user@host# edit interfaces interface-name (fastether-options | gigether-options)

  2. Configure the local loopback:

    [edit interfaces interface-name (fastether-options | gigether-options)]

    user@host# set loopback

1 Answer 1

5

Here is their documentation on interface creation, titled: Red Hat Enterprise Linux 3: Reference Guide - Chapter 8. Network Interfaces.

  1. Add this line if it does not exist to /etc/hosts

    127.0.0.1 localhost localhost.localdomain 
  2. run the following commands as root

    # ifconfig lo 127.0.0.1 # route add 127.0.0.1 
  3. Test the interface

    # ifconfig lo lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:3924 Metric:1 RX packets:60 errors:0 dropped:0 overruns:0 frame:0 TX packets:60 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 # ping localhost PING localhost (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.3 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.2 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0.1 ms 64 bytes from 127.0.0.1: icmp_seq=3 ttl=255 time=0.1 ms 64 bytes from 127.0.0.1: icmp_seq=4 ttl=255 time=0.2 ms 64 bytes from 127.0.0.1: icmp_seq=5 ttl=255 time=0.1 ms --- localhost ping statistics --- 6 packets transmitted, 6 packets received, 0% packet loss round-trip min/avg/max = 0.1/0.1/0.3 ms 
1
  • 1
    Note that in virtually all distributions worth the name, loopback is already configured out of the box. Commented Apr 5, 2016 at 4:40

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.