Loopback Interface Configuration
interface loopback
Section titled “interface loopback”[Command] interface loopbackloopback-id
[Purpose] Switch to loopback view
[Parameter]
| Parameter | Description |
|---|---|
| loopback-id | Loopback port ID |
[View] System configuration view
[Use Cases]
sonic# configure terminalsonic(config)# interface loopback 0sonic(config-loif-0)# show this!interface loopback 0ip address
Section titled “ip address”[Command] ip addressA.B.C.D/M
[Purpose] Adding an IP address to the loopback port
[Parameter]
| Parameter | Description |
|---|---|
| A.B.C.D/M | IP address with prefix length |
[View] System configuration view
[Notes] The IPv4 address configured on the Loopback port is not allowed to be deleted and can be overwritten by reconfiguration.
[Use Cases]
sonic# configure terminalsonic(config)# interface loopback 2sonic(config-loif-2)# ip address 3.3.3.6/24sonic(config-loif-2)# show this!interface loopback 2ip address 3.3.3.6/24