Command Line Reference
Layer 3 Configuration
VRF
12 min
vrf view vrf view table 1 vrf view table 1 vrf view true 273,388#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type show vrf brief show vrf brief \[command] show vrf brief \[purpose] display vrf configuration \[view] privileged user view \[use cases] sonic# show vrf brief + + + + \| vrf name | vni | src mac | +============+=======+===========+ \| 100 | | | + + + + \| 101 | | | + + + + \| 200 | 2000 | | + + + + show vrf interface show vrf interface \[command] show vrf interface \[purpose] display the binding relationship between vrfs and interfaces \[view] privileged user view \[use cases] sonic# show vrf interface + + + \| vrf name | interfaces | +============+==============+ \| 200 | vlan 227 | \| | vlan 237 | + + + \| 101 | loopback 1 | + + + show interface mgmt vrf show interface mgmt vrf \[command] show interface mgmt vrf \[purpose] display vrf configuration of management port \[view] privileged user view \[use cases] sonic# show interface mgmt vrf managementvrf disabled vrf config vrf config table 2 vrf config table 2 vrf config true 330,331#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type vrf mgmt vrf mgmt \[command] vrf mgmt \[purpose] set the vrf of mgmt \[view] management port configuration view \[notes] run command no vrf mgmt to delete management interface vrf configuration \[use cases] sonic# configure terminal sonic(config)# interface mgmt 0 sonic(config mgmt 0)# vrf mgmt vrf vrf vrf name (global configuration view) \[command] vrf vrf name \[purpose] create a vrf \[parameters] true 205,456#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[view] global configuration view \[notes] run command no vrf vrf name to delete vrf \[use cases] sonic# configure terminal sonic(config)# vrf 123 vrf vrf vrf name (interface view) \[command] vrf vrf name \[purpose] bind the interface to the vrf \[parameters] true 230,431#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[view] physical interface/vlanif/lagif/loopback interface configuration view \[notes] loopback0 is not allowed to bind vrfs run command no vrf unbind the interface from the vrf \[use cases] sonic# configure terminal sonic(config)# interface loopback 1 sonic(config loif 1)# vrf 123 mac mac hh\ hh\ hh\ hh\ hh\ hh \[command] mac hh\ hh\ hh\ hh\ hh\ hh \[purpose] configure the mac address of vrf \[parameters] true 330,331#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[view] vrf configuration view \[notes] run command no mac to delete vrf mac address configuration \[use cases] sonic# configure terminal sonic(config)# vrf 123 sonic(config vrf)# mac 00\ a0 23 12 23 53 ip route ip route a b c d/m { a b c d | interface type interface name } \[ distance ]\[description description ] \[track track id ] \[bfd] \[nexthop vrf vrf ] \[command] ip route a b c d/m { a b c d | interface type interface name }\[ distance ]\[ description description ] \[ track track id ] \[ bfd ] \[ nexthop vrf vrf ] \[purpose] configure static routes for vrf \[parameters] true 235,426#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type \[view] vrf configuration view \[notes] run command no ip route a b c d/m { a b c d | interface type interface name }\[ distance ]\[ description description ] \[ track track id ] \[ bfd ] \[ nexthop vrf vrf ] to delete static routes configuration \[use cases] sonic# configure terminal sonic(config)# vrf 123 sonic(config vrf)# ip route 10 0 0 0/24 20 0 0 2
