VRF
5 min
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
[Command] vrf mgmt
[Purpose] Configure management port VRF
[View] System configuration view
[Use Cases]
sonic# configure terminal
sonic(config)# interface mgmt 0
sonic(config-mgmt-0)# vrf mgmtvrf vrfname
[Command] vrf vrfname
[Purpose] Add VRF
[Parameter]
Parameter | Description |
|---|---|
vrfname | VRF name, length 1-11 |
[View] System configuration view
[Use Cases]
sonic# configure terminal
sonic(config)# vrf 123ip 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 terminal
sonic(config)# vrf 123
sonic(config-vrf)# ip route 10.0.0.0/24 20.0.0.2