Users Guide

Table Of Contents
BGP 1415
This is a very simple OSPF configuration for each of the routers. In this case,
a loopback is used to emulate an OSPF connected interface. If an actual
VLAN-routed interface is used, declare it a passive interface in the OSPF
configuration.
For router S2, VRF Green and Red are configured.
1
Create an OSPF instance for VRF Green
S2(config)#router ospf vrf "Green"
2
Router ID is required.
S2(config-router-vrf-Green)#router-id 172.17.0.99
3
Network is all 'don't care'.
S2(config-router-vrf-Green)#network 172.17.0.0 255.255.255.255
area 0
4
Redistribute connected routes to S1.
S2(config-router-vrf-Green)#redistribute connected
S2(config-router-vrf-Green)#exit
5
Create an OSPF instance for VRF Red.
S2(config)#router ospf vrf "Red"
6
Router ID is required.
S2(config-router-vrf-Red)#router-id 172.16.0.99
7
Network is all 'don't care'.
S2(config-router-vrf-Red)#network 172.16.0.0 255.255.255.255
area 0
8
Redistribute connected routes.
S2(config-router-vrf-Red)#redistribute connected
S2(config-router-vrf-Red)#exit
9
Allow both VRF Red and Green access to router S1 over a physical
interface.
S2(config)#interface Gi1/0/13
S2(config-if-Gi1/0/16)#switchport mode trunk
S2(config-if-Gi1/0/16)#switchport trunk allowed vlan 1,16-17
S2(config-if-Gi1/0/16)#exit