Loopback address and network interface handling, general commands
U
SER
G
UIDE
150
L
OOPBACK ADDRESS AND NETWORK INTERFACE
HANDLING
,
GENERAL COMMANDS
L
OOPBACK ADDRESS
On Imola it is possible to configure a
loopback
address
,
that is an address which identifies the
router and it is not associated with a particular, physical interface. This address is always active and
available regardless of the status of the physical interfaces.
In order to configure the
loopback
address the command is:
set loopback ipaddr <value>
set loopback on
In order to assign an IPv6 address:
set loopback ipv6addr X:X::X:X/128
In order to display the status of the interface the command is:
show interface loopback
For example:
root@Imola >
show interface loopback
3: dummy0: <BROADCAST,NOARP,UP> mtu 1500 qdisc noqueue
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
inet 172.16.0.1/32 scope global dummy0
the name associated with the loopback interface is
dummy0
.
In order to eliminate the loopback addresses the command is:
set no-loopback
Starting form 5.4.3 software version, it is possible to specify up to 128 loopback addresses using:
set loopback N ipaddr <value>
For example
set loopback 0 ipaddr 172.16.0.1
set loopback 0 description Loopback0-Data
set loopback 1 ipaddr 172.16.1.1
set loopback 1 description Loopback1-Voce
set loopback on
In this case, the names of the interfaces will respectively be
loopback0
and
loopback1
.