beautypg.com

Ospf for route exchange – Brocade Multi-Service IronWare Multiprotocol Label Switch (MPLS) Configuration Guide (Supporting R05.6.00) User Manual

Page 747

background image

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

723

53-1003031-02

BGP or MPLS VPN sample configurations

6

Brocade(config-bgp)# neighbor 10.2.2.1 update-source loopback 1

Brocade(config-bgp)# address-family vpnv4 unicast

Brocade(config-bgp-vpnv4u)# neighbor 10.2.2.1 activate

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

Brocade(config-bgp-ipv4u-vrf)# redistribute rip

Brocade(config-bgp-ipv4u-vrf)# exit

Brocade(config)# router rip vrf VPN1

Brocade(config-rip-router)# redistribute bgp

Brocade(config-rip-router)# exit

Brocade(config)# router ospf

Brocade(config-ospf-router)# area 0

Brocade(config-ospf-router)# exit

Brocade(config)# interface ethernet 1/2

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

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

Brocade(config-if-e10000-1/2)# exit

Brocade(config)# router mpls

Brocade(config-mpls)# policy

Brocade(config-mpls-policy)# traffic-engineering ospf

Brocade(config-mpls)# mpls-interface eth 1/2

Brocade(config-mpls)# lsp tunnel1

Brocade(config-mpls-lsp-tunnel1)# to 10.2.2.1

Brocade(config-mpls-lsp-tunnel1)# enable

Brocade(config-mpls-lsp-tunnel1)# exit

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.36.3/24

Brocade(config-if-e10000-1/1)# ip rip v2-only

Brocade(config-if-e10000-1/1)# exit

OSPF for route exchange

OSPF can be used to exchange routes between CE routers and PE routers. In this situation, OSPF
must be enabled on the CE router with a local area and enabled on the interface that is connected
to the interface of the PE that is associated with the VRF that the user wants to advertise OSPF
routes on. On the PE router, the VRF must be enabled in BGP to redistribute OSPF routes, and OSPF
must be enabled for the VRF and configured to redistribute routes from BGP-VPNv4.

Figure

77

provides an example of a network where OSPF is used to exchange routes between CE routers and
PE routers.