beautypg.com

Brocade Multi-Service IronWare Multiprotocol Label Switch (MPLS) Configuration Guide (Supporting R05.6.00) User Manual

Page 746

background image

722

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

53-1003031-02

BGP or MPLS VPN sample configurations

6

Brocade(config-bgp-vpnv4u)# neighbor 10.2.2.2 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)#

Brocade(config)# interface ethernet 1/2

Brocade(config-if-e10000-1/2)# ip address 10.33.34.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.2

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

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

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

PE 4 configuration
This configuration example describes what is required to operate the PE 4 router in

Figure

76

. In

this example, the VRF VPN1 is created with a unique route descriptor consisting of the BGP AS
number (1) and a random other number (2), and route targets are set for import and export. The
VRF (VPN1) is defined on the interface that connects to CE 5. RIP is configured on the VRF named
VPN1 to exchange routes with CE 1 and to redistribute routes from across the MPLS domain.

IBGP with extended community attributes is configured between PE 4 and PE 1. The OSPF area is
specified as 0, and MPLS is set up for OSPF traffic engineering. In addition, MPLS is configured
with a signaled LSP named “tunnel1” to PE 1.

Brocade(config)# interface loopback 1

Brocade(config-lbif-1)# ip address 10.2.2.2/24

Brocade(config-lbif-1)# ip ospf area 0

Brocade(config-lbif-1)# exit

Brocade(config)# vrf VPN1

Brocade(config-vrf-vpn1)# rd 1:2

Brocade(config-vrf-vpn1)# route-target export 100:2

Brocade(config-vrf-vpn1)# route-target import 100:1

Brocade(config-vrf-vpn1)# exit-vrf

Brocade(config)# router bgp

Brocade(config-bgp)# local-as 1

Brocade(config-bgp)# neighbor 10.2.2.1 remote-as 1