Loopback Interface Configuration
此内容尚不支持你的语言。
Loopback Interface Configuration
Section titled “Loopback Interface Configuration”interface loopback loopback-id
Section titled “interface loopback loopback-id”[Command]
interface loopback loopback-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 A.B.C.D/M
Section titled “ip address A.B.C.D/M”[Command]
ip address A.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