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.
show interface mgmt
[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.1ip address
[Command] ip address A.B.C.D/M A.B.C.D
[Purpose] Configure/modify management port IP address and gateway.
[Parameter]
Parameter | Description |
|---|---|
A.B.C.D/M | IP address with prefix length |
A.B.C.D | Optional 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.254vrf mgmt
[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