1

How can I create a logical local loopback like the procedure here for a Juniper router. (Not talking about 127.0.0.1)

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

Fabby
  • 35,017
Alex
  • 113

1 Answers1

1

Dead easy (if you know how)

sudo ifdown eth0
gksudo gedit /etc/network/interfaces

Add the following to the end:

auto eth0
allow-hotplug eth0
iface eth0 inet loopback
iface eth0 inet static
    address 192.168.200.200
    netmask 255.255.255.0

execute:

sudo ifup eth0

Presto: an eth0 loopback in software!

ping 192.168.200.200
PING 192.168.200.200 (192.168.200.200) 56(84) bytes of data.
64 bytes from 192.168.200.200: icmp_seq=1 ttl=64 time=0.073 ms
64 bytes from 192.168.200.200: icmp_seq=2 ttl=64 time=0.042 ms
64 bytes from 192.168.200.200: icmp_seq=3 ttl=64 time=0.069 ms
64 bytes from 192.168.200.200: icmp_seq=4 ttl=64 time=0.044 ms
^C
--- 192.168.200.200 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2997ms
rtt min/avg/max/mdev = 0.042/0.057/0.073/0.014 ms
Fabby
  • 35,017