AOS-CX Simulator - VRF Part 1 Lab Guide
AOS-CX Simulator - VRF Part 1 Lab Guide
At this time, EVE-NG does not support exporting/importing AOS-CX startup-config. The lab
user should copy/paste the AOS-CX node configuration from the lab guide as described in
the lab guide if required.
TABLE OF CONTENTS
Lab Objective .............................................................................................................................................. 2
Lab Overview .............................................................................................................................................. 2
Lab Network Layout .................................................................................................................................... 3
Lab Tasks ................................................................................................................................................... 3
Task 1 – Lab setup ................................................................................................................................... 3
Task 2 - Configure Layer3 for VRF-lite ..................................................................................................... 5
Step #1: Configure VRFs ....................................................................................................................... 5
Step #2: Configure Host VLANs and Transit VLANs .............................................................................. 5
Step #3: Configure SVI (Switch Virtual Interface = L3 VLAN interface)................................................... 6
Step #4: Configure ROP (Routed Only Port) L3 interface ....................................................................... 6
Step #5: Verify VRF attachment ............................................................................................................. 7
Step #6: Routing .................................................................................................................................... 7
Task 3 – VRF testing .............................................................................................................................. 10
Test #1: connectivity between Hosts .................................................................................................... 11
Test #2: Static inter-VRF Route Leaking .............................................................................................. 12
Appendix – Reference Configurations....................................................................................................... 15
1
VRF Lab1
static IVRL
Lab Objective
This lab will enable the reader to gain hands-on experience with VRF and inter VRF route leaking (IVRL).
Lab Overview
This lab guide explains how to configure VRFs (Virtual Routing and Forwarding) on AOS-CX switch.
Please read the VRF section of the AOS-CX 10.6 IP Routing Guide (https://www.arubanetworks.com/techdocs/AOS-
CX/10.06/HTML/5200-7702/index.html#GUID-F2CC1540-2EFD-41FF-B3A8-9C38E9133488.html).
- Configure inter-VRF route leaking to allow communication between hosts and server.
The minimum required AOS-CX Switch Simulator version for this lab is 10.5. It is recommended to use later release 10.6.
2
VRF Lab1
static IVRL
Lab Tasks
3
VRF Lab1
static IVRL
SW3
hostname SW3
!
vlan 1
interface mgmt
no shutdown
ip dhcp
interface 1/1/1
no shutdown
description to HostC
interface 1/1/2
no shutdown
description to HostD
interface 1/1/9
no shutdown
description to SW1
Verify the connectivity through LLDP neighbor information as follows:
SW1
SW1# show lldp neighbor-info
4
VRF Lab1
static IVRL
through ROP (Routed Only Port): one VRF per interface in case of a single VRF or one VRF per sub-interface in case of
multiple VRFs (not yet supported on AOS-CX Simulator)
through Transit VLANs, each Transit VLAN being associated to one VRF for multiple VRFs case.
Both methods are used in this lab for educational purpose. SW2 will use ROP with one VRF. SW3 will use Transit VLANs.
VRF1, for VRF-lite interconnectivity to SW1, and for hosting VRF1 endpoint: HostC.
VRF2, for VRF-lite interconnectivity to SW1, and for hosting VRF2 endpoint: HostD
SW1(config)# SW3(config)#
vrf VRF1 vrf VRF1
vrf VRF2 vrf VRF2
vrf SERVICES
Note: There is no need for RD (route-distinguisher) in the VRF context as BGP is not used in this lab.
5
VRF Lab1
static IVRL
no routing no routing
vlan trunk native 1 vlan access 110
vlan trunk allowed 1115,1125 interface 1/1/2
no shutdown
description to HostB
no routing
vlan access 111
SW3(config)#
vlan 119-120,1115,1125
!
interface 1/1/1
no shutdown
description to HostC
no routing
vlan access 119
interface 1/1/2
no shutdown
description to HostD
no routing
vlan access 120
interface 1/1/9
no shutdown
description to SW1
no routing
vlan trunk native 1
vlan trunk allowed 1115,1125
On SW1, a ROP is used for Lab simplicity to connect the server SRV-services.
SW1(config)# SW2(config)#
interface 1/1/1 interface 1/1/9
no shutdown no shutdown
vrf attach VRF1 description to SW1
description to SW2 ip address 192.168.115.1/31
ip address 192.168.115.0/31
interface 1/1/9
no shutdown
vrf attach SERVICES
6
VRF Lab1
static IVRL
description to SRV-services
ip address 10.5.50.1/24
SW3(config)#
SW3# show vrf
VRF Configuration:
------------------
VRF Name : default
Interfaces Status
-----------------------------
1/1/3 down
1/1/4 down
1/1/5 down
1/1/6 down
1/1/7 down
1/1/8 down
On SW1, we need to create a route to reach 10.11.110.0/24 and 10.11.111.0/24. This is summarized with 10.11.96.0/20 with
7
VRF Lab1
static IVRL
Next-Hop being SW2 IP address. Similarly a route entry is created for 10.12.0.0/16 pointing to SW3 IP address as Next-Hop.
On SW2, a default route is enough. On SW3, a default route per VRF is used as well.
SW1(config)# SW2(config)#
ip route 10.11.96.0/20 192.168.115.1 vrf VRF1 ip route 0.0.0.0/0 192.168.115.0
ip route 10.11.119.0/24 192.168.115.3 vrf VRF1
ip route 10.12.0.0/16 192.168.125.1 vrf VRF2
SW3(config)#
ip route 0.0.0.0/0 192.168.115.2 vrf VRF1
ip route 0.0.0.0/0 192.168.125.0 vrf VRF2
For VRF1, there are local /32 entry, connected /31 entry and static routes to SW2 and SW3.
SW1
SW1# show ip route vrf VRF2
8
VRF Lab1
static IVRL
On SW2:
SW2
SW2# show ip route
The main configuration on SW1, SW2 and SW3 is ready to start performing connectivity tests.
9
VRF Lab1
static IVRL
10
VRF Lab1
static IVRL
ip address 192.168.115.3/31
interface vlan 1125
vrf attach VRF2
ip address 192.168.125.1/31
ip route 0.0.0.0/0 192.168.115.2 vrf VRF1
ip route 0.0.0.0/0 192.168.125.0 vrf VRF2
VPCS> show ip
NAME : VPCS[1]
IP/MASK : 10.5.50.10/24
GATEWAY : 10.5.50.1
DNS :
MAC : 00:50:79:66:68:04
LPORT : 20000
RHOST:PORT : 127.0.0.1:30000
MTU : 1500
Ping inside the same VRF:
11
VRF Lab1
static IVRL
The purpose of VRFs is to isolate routing domains. As a consequence, without any inter-VRF route-leaking, hosts in VRF1
should not communicate with hosts in other VRFs.
*192.168.115.0 icmp_seq=1 ttl=63 time=3.025 ms (ICMP type:3, code:0, Destination network unreachable)
*192.168.115.0 icmp_seq=2 ttl=63 time=2.367 ms (ICMP type:3, code:0, Destination network unreachable)
*192.168.115.0 icmp_seq=3 ttl=63 time=2.305 ms (ICMP type:3, code:0, Destination network unreachable)
*192.168.115.0 icmp_seq=4 ttl=63 time=2.328 ms (ICMP type:3, code:0, Destination network unreachable)
10.12.120.10 icmp_seq=5 timeout
*192.168.115.0 icmp_seq=1 ttl=63 time=2.514 ms (ICMP type:3, code:0, Destination network unreachable)
*192.168.115.0 icmp_seq=2 ttl=63 time=7.301 ms (ICMP type:3, code:0, Destination network unreachable)
*192.168.115.0 icmp_seq=3 ttl=63 time=2.651 ms (ICMP type:3, code:0, Destination network unreachable)
*192.168.115.0 icmp_seq=4 ttl=63 time=2.048 ms (ICMP type:3, code:0, Destination network unreachable)
10.5.50.10 icmp_seq=5 timeout
The next section explain how to make communication between VRF1 and SERVICES, between VRF2 and SERVICES, and
maintaining isolation between VRF1 and VRF2.
12
VRF Lab1
static IVRL
In order for VRF1 routing domain to know how to reach SRV-services, a static route has to be created in VRF1. As this route is a
connected route in the SERVICES VRF, the outgoing interface is used instead of Next-Hop IP address:
ip route 10.5.50.0/24 1/1/9 vrf VRF1
Similarly for VRF2:
ip route 10.5.50.0/24 1/1/9 vrf VRF2
In order for SERVICES routing domain to know how to reach hosts, a static route per subnet has to be created in SERVICES
VRF. Instead of using a Next-Hop IP address that is not in the SERVICES VRF, instead the route is created by specifying the
outgoing interface:
You can see a route entry coming from the egress VRF: SERVICES.
SW1
SW1# show ip route vrf VRF2
13
VRF Lab1
static IVRL
Finally, SERVICES routing table includes routes for egress VRFs VRF1 and VRF2.
Test again the connectivity between Hosts and then between hosts and server:
*192.168.115.0 icmp_seq=1 ttl=63 time=3.064 ms (ICMP type:3, code:0, Destination net work unreachable)
*192.168.115.0 icmp_seq=2 ttl=63 time=6.026 ms (ICMP type:3, code:0, Destination net work unreachable)
*192.168.115.0 icmp_seq=3 ttl=63 time=2.927 ms (ICMP type:3, code:0, Destination net work unreachable)
*192.168.115.0 icmp_seq=4 ttl=63 time=2.455 ms (ICMP type:3, code:0, Destination net work unreachable)
10.12.120.10 icmp_seq=5 timeout
The communication is now possible between Hosts in VRF1 and SRV-services in SERVICES VRF.
14
VRF Lab1
static IVRL
SW2
hostname SW2
!
vlan 1,110-111
interface mgmt
no shutdown
ip dhcp
interface 1/1/1
no shutdown
description to HostA
no routing
vlan access 110
interface 1/1/2
no shutdown
description to HostB
no routing
vlan access 111
interface 1/1/9
no shutdown
description to SW1
ip address 192.168.115.1/31
interface vlan 110
ip address 10.11.110.1/24
interface vlan 111
15
VRF Lab1
static IVRL
ip address 10.11.111.1/24
ip route 0.0.0.0/0 192.168.115.0
SW3
hostname SW3
!
vlan 1,119-120,1115,1125
interface mgmt
no shutdown
ip dhcp
interface 1/1/1
no shutdown
description to HostC
no routing
vlan access 119
interface 1/1/2
no shutdown
description to HostD
no routing
vlan access 120
interface 1/1/9
no shutdown
description to SW1
no routing
vlan trunk native 1
vlan trunk allowed 1115,1125
interface vlan 119
vrf attach VRF1
ip address 10.11.119.1/24
interface vlan 120
vrf attach VRF2
ip address 10.12.120.1/24
interface vlan 1115
vrf attach VRF1
ip address 192.168.115.3/31
interface vlan 1125
vrf attach VRF2
ip address 192.168.125.1/31
ip route 0.0.0.0/0 192.168.115.2 vrf VRF1
ip route 0.0.0.0/0 192.168.125.0 vrf VRF2
16
Document type
Headline text
www.arubanetworks.com
3333 Scott Blvd. Santa Clara, CA 95054
1.844.472.2782 | T: 1.408.227.4500 | FAX: 1.408.227.4550 | [email protected]
17