Configuring VRF

This chapter provides procedures and examples for configuring VRF using the NETCONF interface.

  1. Configure VRF "red".
    <vrf xmlns="urn:brocade.com:mgmt:brocade-vrf">
    		<vrf-name>red</vrf-name>
    	</vrf>
  2. Enable the IPv4 or IPv6 address-family support to configure a variety of VRF unicast routing options.
    The below example shows how to enable IPv4 address-family support
    <vrf xmlns="urn:brocade.com:mgmt:brocade-vrf">
    		<vrf-name>Red</vrf-name>
    		<address-family>
    			<ip>
    				<unicast></unicast>
    			</ip>
    		</address-family>
    	</vrf>
  3. Configure the maximum number of routes to be used for the VRF
    <vrf xmlns="urn:brocade.com:mgmt:brocade-vrf">
    		<vrf-name>red</vrf-name>
    		<address-family>
    			<ip>
    				<unicast>
    					<max-route>200</max-route>
    				</unicast>
    			</ip>
    		</address-family>
    	</vrf>
  4. Enable the Open Shortest Path First (OSPF) routing protocol over virtual forward and routing (VRF).
    <router>
    		<ospf xmlns="urn:brocade.com:mgmt:brocade-ospf”>
    			<vrf>red</vrf>
    		</ospf>
    	</router>
  5. Assign it to an area
    <router>
    		<ospf xmlns="urn:brocade.com:mgmt:brocade-ospfv3">
    			<vrf>red</vrf>
    			<area>
    				<area-id>0</area-id>
    			</area>
    		</ospf>
    	</router>
  6. Bind the interface to the VRF instance
    <interface xmlns="urn:brocade.com:mgmt:brocade-interface">
    		<ve>
    			<name>1</name>
    			<vrf xmlns="urn:brocade.com:mgmt:brocade-ip-config">
    				<forwarding>red</forwarding>
    			</vrf>
    		</ve>
    	</interface>