---
title: VRF
slug: enterprise-v5p2/vrf
description: ip unicast routing
createdAt: 2025-11-14T03:58:43.498Z
---

### <font color="#1d50a2">show vrf brief</font>

**\[Command]**
**show vrf brief**

**\[Purpose]**
Display vrf-related configuration information

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show vrf brief
+------------+-------+-----------+
|   vrf name | vni   |  src_mac  |
+============+=======+===========+
|        100 |       |           |
+------------+-------+-----------+
|        101 |       |           |
+------------+-------+-----------+
|        200 | 2000  |           |
+------------+-------+-----------+
```

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

**\[Command]**
**vrf mgmt**

**\[Purpose]**
Configure management port VRF

**\[View]**
System configuration view

**\[Use Cases]**

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

### <font color="#1d50a2">vrf *vrfname*</font>

**\[Command]**
**vrf** *vrfname*

**\[Purpose]**
Add VRF

**\[Parameter]**

| **Parameter** | **Description**       |
| ------------- | --------------------- |
| *vrfname*     | VRF name, length 1-11 |

**\[View]**
System configuration view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# vrf 123
```

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

**\[Command]**
**ip route** *A.B.C.D/M A.B.C.D*

**\[Purpose]**
Add VRF routes

**\[Parameter]**

| **Parameter** | **Description** |
| ------------- | --------------- |
| *A.B.C.D/M*   | IP address      |
| *A.B.C.D*     | IP address      |

**\[View]**
VRF View

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# vrf 123
sonic(config-vrf)# ip route 10.0.0.0/24 20.0.0.2
```

