---
title: Management Port Configuration
slug: enterprise-v5p2/management-port-configuration
description: basic configuartion
createdAt: 2025-11-14T03:58:41.381Z
---

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.

### <font color="#1d50a2">show interface mgmt</font>

**\[Command]**
**show interface mgmt**

**\[Purpose]**
Display management port configuration information

**\[View]**
System view

**\[Use Cases]**

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

### <font color="#1d50a2">ip address</font>

**\[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]**

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

### <font color="#1d50a2">vrf mgmt</font>

**\[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]**

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

