API Guide

ip vrf forwarding orange
ip address 2.0.0.2/24
!
interface vlan256
mode L3
no shutdown
ip vrf forwarding green
ip address 3.0.0.2/24
!
ip route vrf green 30.0.0.0/24 3.0.0.2
Router 1 show command output
OS10# show ip vrf
VRF-Name Interfaces
blue Eth1/1/2
Vlan128
default Mgmt1/1/1
Vlan1,24-25,200
green Eth1/1/4
Vlan256
orange Eth1/1/3
Vlan192
OS10# show ip route vrf blue
Codes: C - connected
S - static
B - BGP, IN - internal BGP, EX - external BGP
O - OSPF, IA - OSPF inter area, N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, E1 - OSPF external type 1,
E2 - OSPF external type 2, * - candidate default,
+ - summary route, > - non-active route
Gateway of last resort is not set
Destination Gateway Dist/Metric Last Change
------------------------------------------------------------------------------
C 20.0.0.0/24 via 20.0.0.1 ethernet1/1/2 0/0 01:46:41
C 1.0.0.0/24 via 1.0.0.1 vlan128 0/0 01:04:23
OS10# show ip route vrf orange
Codes: C - connected
S - static
B - BGP, IN - internal BGP, EX - external BGP
O - OSPF, IA - OSPF inter area, N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, E1 - OSPF external type 1,
E2 - OSPF external type 2, * - candidate default,
+ - summary route, > - non-active route
Gateway of last resort is not set
Destination Gateway Dist/Metric Last Change
-------------------------------------------------------------------------------
C 30.0.0.0/24 via 30.0.0.1 ethernet1/1/3 0/0 01:55:00
C 2.0.0.0/24 via 2.0.0.1 vlan192 0/0 01:04:14
OS10# show ip route vrf green
Codes: C - connected
S - static
B - BGP, IN - internal BGP, EX - external BGP
O - OSPF, IA - OSPF inter area, N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, E1 - OSPF external type 1,
E2 - OSPF external type 2, * - candidate default,
+ - summary route, > - non-active route
Gateway of last resort is not set
Destination Gateway Dist/Metric Last Change
---------------------------------------------------------------------------------
C 40.0.0.0/24 via 40.0.0.1 ethernet1/1/4 0/0 02:01:15
C 3.0.0.0/24 via 3.0.0.1 vlan256 0/0 01:04:03
=================================================================================
536
Layer 3