beautypg.com

Enabling ospf on the pe router interface, Ospf to ce example – Brocade Multi-Service IronWare Multiprotocol Label Switch (MPLS) Configuration Guide (Supporting R05.6.00) User Manual

Page 749

background image

Multi-Service IronWare Multiprotocol Label Switch (MPLS) Configuration Guide

725

53-1003031-02

BGP or MPLS VPN sample configurations

6

Configuring the VRF on the PE router to redistribute OSPF routes

To allow OSPF route exchange between a specified VRF on a PE router and its associated CE router,
the VRF must be enabled to redistribute OSPF routes. To enable the VRF VPN1 on PE 1 router in

Figure

77

to redistribute OSPF routes, enter the following commands.

Brocade(config-bgp)# address-family ipv4 unicast vrf VPN1

Brocade(config-bgp-ipv4u-vrf)# redistribute ospf match internal

Brocade(config-bgp-ipv4u-vrf)# redistribute ospf match external1

Brocade(config-bgp-ipv4u-vrf)# redistribute ospf match external2

Configuring OSPF on the PE router to redistribute BGP-VPNv4 routes

To allow OSPF route exchange between a specified VRF on a PE router and its associated CE router,
OSPF must be configured to redistribute BGP routes from the local AS. To enable OSPF on PE 1 in

Figure

77

and configure it to redistribute BGP-VPNv4 routes into OSPF, enter the following

commands.

Brocade(config)# router ospf vrf VPN1

Brocade(config-ospf-router)# domain-id 0.0.0.100

Brocade(config-ospf-router)# domain-tag 1200

Brocade(config-ospf-router)# area 1

Brocade(config-ospf-router)# redistribute bgp

Enabling OSPF on the PE router interface

To allow OSPF route exchange between a PE router and its associated CE router, OSPF must be
enabled on the PE’s interface that is associated with the VRF and connected to the PE router. To
configure OSPF on the interface of the PE 1 router that is associated with VRF VPN1 in

Figure

77

to

CE 1, enter the following commands.

Brocade(config)# interface ethernet 1/1

Brocade(config-if-e10000-1/1)# vrf forwarding VPN1

Brocade(config-if-e10000-1/1)# ip address 10.33.33.3/24

Brocade(config-if-e10000-1/1)# ip ospf area 1

OSPF to CE example

In this example, the network shown in

Figure

77

is configured for OSPF to forward routes between

the networks attached to the CE routers and the PE routers. IBGP is used to forward routes
between the PE routers and an LSP tunnel is configured across the MPLS domain.

Figure

77

contains all of the network addresses and AS numbers required to perform this configuration. The
configurations are shown for only the CE 1, CE 5, PE 1 and PE 5 routers, which demonstrates what
is required to make VPN1 work. The configurations for VPN2, VPN3, and VPN 4 would essentially be
the same.

CE 1 configuration
This configuration example describes what is required to operate the CE 1 router in

Figure

77

. In

this example, a static route is configured between the external network (10.1.2.0/24) and the
loopback interface. OSPF is configured to redistribute static routes between the CE 1 router and
the attached interface of PE 1.