Defining an ospf instance in a vrf – Brocade Multi-Service IronWare Multiprotocol Label Switch (MPLS) Configuration Guide (Supporting R05.6.00) User Manual
Page 655
![background image](/manuals/361646/655/background.png)
Multi-Service IronWare Multiprotocol Label Switch (MPLS) Configuration Guide
631
53-1003031-02
Configuring BGP VPNs on a PE
6
The following illustrates the configuration that takes place first on PE1 and then on PE2:
Sham link configuration on PE1
router ospf vrf CustomerA
area 1
area 1 sham-link 172.31.255.1 172.31.255.2 cost 1
redistribution bgp
interface loopback 2
vrf forwarding CustomerA
ip address 172.31.255.1/32
!
Brocade# show ip route vrf CustomerA 172.31.255.2
Type Codes - B:BGP D:Connected I:ISIS O:OSPF R:RIP S:Static; Cost - Dist/Metric
ISIS Codes - L1:Level-1 L2:Level-2
OSPF Codes - i:Inter Area 1:External Type 1 2:External Type 2 s:Sham Link
Destination Gateway Port Cost Type Uptime
1 172.31.255.2/32 172.30.255.48 lsp PE1-PE2 200/0 B 10m3s
Sham link configuration on PE2
router ospf vrf CustomerA
area 1
area 1 sham-link 172.31.255.2 172.31.255.1 cost 1
redistribution bgp
interface loopback 2
vrf forwarding CustomerA
ip address 172.31.255.2/32
!
Brocade# show ip route vrf CustomerA 172.31.255.1
Type Codes - B:BGP D:Connected I:ISIS S:Static R:RIP O:OSPF; Cost - Dist/Metric
Destination Gateway Port Cost Type
1 172.31.255.1/32 172.30.255.32 lsp PE2-PE1 200/0 B
Configuring OSPF on a PE device to redistribute BGP-VPNv4 routes
To allow OSPF route exchange between a specified VRF on a PE device and its associated CE
device, OSPF must be configured to redistribute BGP routes from the local AS as described in the
following steps:
•
“Defining an OSPF instance in a VRF”
•
“Creating an OSPF area in an OSPF VRF instance”
•
“Creating a domain identifier in an OSPF VRF instance”
•
“Assigning a domain tag in an OSPF VRF instance”
Defining an OSPF instance in a VRF
NOTE
This features is not supported on Brocade NetIron CES or Brocade NetIron CER devices.
To define an OSPF instance in VRF VPN1, enter the following command at the OSPF Config level.
Brocade(config)# router ospf vrf VPN1