跳转到内容
Ask AI

Loopback Interface Configuration

此内容尚不支持你的语言。

[Command] interface loopbackloopback-id

[Purpose] Switch to loopback view

[Parameter]

ParameterDescription
loopback-idLoopback port ID

[View] System configuration view

[Use Cases]

sonic# configure terminal
sonic(config)# interface loopback 0
sonic(config-loif-0)# show this
!
interface loopback 0

[Command] ip addressA.B.C.D/M

[Purpose] Adding an IP address to the loopback port

[Parameter]

ParameterDescription
A.B.C.D/MIP 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 terminal
sonic(config)# interface loopback 2
sonic(config-loif-2)# ip address 3.3.3.6/24
sonic(config-loif-2)# show this
!
interface loopback 2
ip address 3.3.3.6/24