ArubaOS-CX, VRF Configuration

Adding the basics of a VRF configuration to an ArubaOS-CX is both simple, and very similar to other vendors platforms. In the example below we are adding a VRF called FWTEST and assigning two SVI’s to it along with a Loopback.

First we can see what VRFs are already configured, in this case none:

ArubaOS-CX# show vrf
VRF Configuration:
------------------
VRF Name   : default
        Interfaces             Status
        -----------------------------
        vlan1                    up
        vlan254                  up

ArubaOS-CX#

Then define the VRF, including the route distinguisher.

ArubaOS-CX# conf t
ArubaOS-CX(config)# vrf FWTEST
ArubaOS-CX(config-vrf)# rd 10:39
ArubaOS-CX(config-vrf)#

Ensure that any VLANs that require SVI’s in the new VRF are defined. If not we need to create them.

ArubaOS-CX(config-vrf)# vlan 998
ArubaOS-CX(config-vlan-998)# name FWTEST_Clients
ArubaOS-CX(config-vlan-998)# vlan 999
ArubaOS-CX(config-vlan-999)# name FWTEST_L3
ArubaOS-CX(config-vlan-999)# 

Configure the required SVIs and any other layer 3 interfaces, in our case Loopback 99.

ArubaOS-CX(config)# # interface vlan998
ArubaOS-CX(config-if-vlan)# vrf attach FWTEST
ArubaOS-CX(config-if-vlan)# ip address 172.31.255.241/28
ArubaOS-CX(config-if-vlan)# 
ArubaOS-CX(config-if-vlan)# interface vlan999
ArubaOS-CX(config-if-vlan)# vrf attach FWTEST
ArubaOS-CX(config-if-vlan)# ip address 172.31.255.130/28
ArubaOS-CX(config-if-vlan)# 
ArubaOS-CX(config-if-vlan)# interface loopback 99
ArubaOS-CX(config-loopback-if)# vrf attach FWTEST
ArubaOS-CX(config-loopback-if)# ip address 172.31.255.193/28
ArubaOS-CX(config-loopback-if)# 

Now if we check the VRFs on the switch, we can see our new SVIs and the Lo99 are all attached to the VRF FWTEST.

 
ArubaOS-CX# show vrf
VRF Configuration:
------------------
VRF Name   : default
        Interfaces             Status
        -----------------------------
        vlan1                    up
        vlan254                  up


VRF Name   : FWTEST
        Interfaces             Status
        -----------------------------
        loopback99               up
        vlan998                  up
        vlan999                  up


ArubaOS-CX# 

Finally, we can check the FWTEST routing table. This shows us the routes for the attached networks we have just defined. No other routes are shown as we are not going any routing with other devices yet.

ArubaOS-CX# 
ArubaOS-CX# sh ip ro vrf FWTEST

Displaying ipv4 routes selected for forwarding

'[x/y]' denotes [distance/metric]

172.31.255.240/28, vrf FWTEST 
        via  vlan998,  [0/0],  connected
172.31.255.192/28, vrf FWTEST 
        via  loopback99,  [0/0],  connected
172.31.255.128/28, vrf FWTEST 
        via  vlan999,  [0/0],  connected
172.31.255.130/32, vrf FWTEST 
        via  vlan999,  [0/0],  local
172.31.255.193/32, vrf FWTEST 
        via  loopback99,  [0/0],  local
172.31.255.241/32, vrf FWTEST 
        via  vlan998,  [0/0],  local

ArubaOS-CX# 

Next we can go on to configure OSPF

Finally just for reference, this was all done on an 6300 running AribaOS-CX FL.10.04.0030