Skip to content
Ask AI

Management Port Configuration

The management interface (mgmt 0) of AsterNOS can be used by default to obtain an IP address from a DHCP server via a DHCP client, connecting the management interface to a network with a DHCP server on the same network segment. The management port can only have one IPv4 address and one IPv6 address, multiple configurations will overwrite the original configuration and the last one will prevail.

[Command] show interface mgmt

[Purpose] Display management port configuration information

[View] System view

[Use Cases]

sonic# show interface mgmt
Management IP address = 192.168.1.10/24
Management Network Default Gateway = 192.168.0.1

[Command] ip address A.B.C.D/M A.B.C.D

[Purpose] Configure/modify management port IP address and gateway.

[Parameter]

ParameterDescription
A.B.C.D/MIP address with prefix length
A.B.C.DOptional parameter, Gateway IP, IP address without prefix length

[View] Management Port Configuration View

[Use Cases]

sonic# configure
sonic(config)# interface mgmt 0
sonic(config-mgmt-0)# ip address 10.250.0.103/24 10.250.0.254

[Command] vrf mgmt

[Purpose] Add the management network port to the mgmt vrf

[View] Management Port Configuration View

[Notes] By default, the management port and the service port belong to default vrf, if user need to isolate the management port and the service port can add the management port to mgmt vrf

[Use Cases]

sonic# configure
sonic(config)# interface mgmt 0
sonic(config-mgmt-0)# vrf mgmt