---
title: VRF
slug: routing/vrf
createdAt: 2025-12-04T04:03:15.682Z
---

## <font color="#1d50a2">VRF</font>

### <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 *vrfname*</font>

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

**\[Purpose]**
Add VRF

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font> |
| ------------------------------------------ | -------------------------------------------- |
| *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 *A.B.C.D/M* *A.B.C.D*</font>

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

**\[Purpose]**
Add VRF routes

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font> |
| ------------------------------------------ | -------------------------------------------- |
| *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
```

