Virtual Routing and Forwarding (VRF) Configuration HP Switch
Virtual Routing and Forwarding (VRF) Configuration HP Switch
docId=emr_na-c03529403
A VRF is a completely private campus wide network and it appears as if a department has its own private router. Any subnets in any
buildings campus wide can be assigned to a VRF. A department may have as many VRFs as required to implement the security policies.
Details
In the following example, two Virtual Private Networks (VPNs) have been configured. Switches Rack4sw1 and Rack4sw3 are configured for
VPN 13. Switch Rack4sw2 and Rack4sw4 are configured for VPN 24.
Switches Rack4sw5 and Rack4sw6 are configured for the VRF instances. A trunk link connects these switches. Two separate IP VRF
interfaces shares this link.
The configuration, verification, and testing associated with the diagram follows:
Running configuration:
1 of 9 30-03-2019, 19:42
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c03529403
vlan 101
name "VLAN101"
untagged A12
ip address 192.168.101.1 255.255.255.0
IP Route Entries
Running configuration:
vlan 102
name "VLAN102"
untagged A11
ip address 192.168.102.1 255.255.255.0
IP Route Entries
Running configuration:
2 of 9 30-03-2019, 19:42
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c03529403
vlan 103
name "VLAN103"
untagged D21
ip address 192.168.103.1 255.255.255.0
IP Route Entries
Running configuration:
vlan 104
name "VLAN104"
untagged B21
ip address 192.168.104.1 255.255.255.0
interface Vlan-interface56
ip binding vpn-instance 13
ip address 192.168.56.5 255.255.255.0
interface Vlan-interface65
ip binding vpn-instance 24
3 of 9 30-03-2019, 19:42
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c03529403
interface Vlan-interface101
ip binding vpn-instance 13
ip address 192.168.101.254 255.255.255.0
interface Vlan-interface102
ip binding vpn-instance 24
ip address 192.168.102.254 255.255.255.0
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 56 65
interface Ten-GigabitEthernet1/0/11
port link-mode bridge
port access vlan 102
interface Ten-GigabitEthernet1/0/12
port link-mode bridge
port access vlan 101
VLAN ID: 56
VLAN Type: static
Route Interface: configured
IP Address: 192.168.56.5
Subnet Mask: 255.255.255.0
Description: VLAN 0056
Name: VLAN 0056
Tagged Ports:
Ten-GigabitEthernet1/0/1
Untagged Ports: none
VLAN ID: 65
VLAN Type: static
Route Interface: configured
IP Address: 192.168.65.5
Subnet Mask: 255.255.255.0
Description: VLAN 0065
Name: VLAN 0065
Tagged Ports:
Ten-GigabitEthernet1/0/1
Untagged Ports: none
4 of 9 30-03-2019, 19:42
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c03529403
ip vpn-instance 13
route-distinguisher 13:13
ip vpn-instance 24
route-distinguisher 24:24
<Rack4sw5>display ip vpn-instance
Routing Tables: 13
5 of 9 30-03-2019, 19:42
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c03529403
Routing Tables: 24
interface Vlan-interface56
ip binding vpn-instance 13
ip address 192.168.56.6 255.255.255.0
interface Vlan-interface65
ip binding vpn-instance 24
ip address 192.168.65.6 255.255.255.0
interface Vlan-interface103
ip binding vpn-instance 13
ip address 192.168.103.254 255.255.255.0
interface Vlan-interface104
ip binding vpn-instance 24
ip address 192.168.104.254 255.255.255.0
interface GigabitEthernet2/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 56 65
interface GigabitEthernet2/0/7
port link-mode bridge
port access vlan 103
interface GigabitEthernet2/0/11
port link-mode bridge
port access vlan 104
VLAN ID: 56
VLAN Type: static
Route Interface: configured
IP Address: 192.168.56.6
Subnet Mask: 255.255.255.0
Description: VLAN 0056
Name: VLAN 0056
Tagged Ports:
GigabitEthernet2/0/3
Untagged Ports: none
VLAN ID: 65
VLAN Type: static
Route Interface: configured
IP Address: 192.168.65.6
Subnet Mask: 255.255.255.0
Description: VLAN 0065
Name: VLAN 0065
Tagged Ports:
GigabitEthernet2/0/3
Untagged Ports: none
6 of 9 30-03-2019, 19:42
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c03529403
GigabitEthernet2/0/7
ip vpn-instance 13
route-distinguisher 13:13
ip vpn-instance 24
route-distinguisher 24:24
<Rack6sw6>display ip vpn-instance
7 of 9 30-03-2019, 19:42
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c03529403
Routing Tables: 13
Routing Tables: 24
8 of 9 30-03-2019, 19:42
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c03529403
9 of 9 30-03-2019, 19:42