VRF
show vrf brief
Section titled “show vrf brief”[Command]
show vrf brief
[Purpose]
Display vrf-related configuration information
[View]
System view
[Use Cases]
sonic# show vrf brief+------------+-------+-----------+| vrf name | vni | src_mac |+============+=======+===========+| 100 | | |+------------+-------+-----------+| 101 | | |+------------+-------+-----------+| 200 | 2000 | |+------------+-------+-----------+vrf mgmt
Section titled “vrf mgmt”[Command]
vrf mgmt
[Purpose]
Configure management port VRF
[View]
System configuration view
[Use Cases]
sonic# configure terminalsonic(config)# interface mgmt 0sonic(config-mgmt-0)# vrf mgmt[Command]
vrf vrfname
[Purpose]
Add VRF
[Parameter]
| Parameter | Description |
|---|---|
| vrfname | VRF name, length 1-11 |
[View]
System configuration view
[Use Cases]
sonic# configure terminalsonic(config)# vrf 123ip route
Section titled “ip route”[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]
sonic# configure terminalsonic(config)# vrf 123sonic(config-vrf)# ip route 10.0.0.0/24 20.0.0.2