Skip to content
Ask AI

VRF

[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 | |
+------------+-------+-----------+

[Command] vrfvrfname

[Purpose] Add VRF

[Parameter]

ParameterDescription
vrfnameVRF name, length 1-11

[View] System configuration view

[Use Cases]

sonic# configure terminal
sonic(config)# vrf 123

[Command] ip routeA.B.C.D/M A.B.C.D

[Purpose] Add VRF routes

[Parameter]

ParameterDescription
A.B.C.D/MIP address
A.B.C.DIP address

[View] VRF View

[Use Cases]

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