Cisco 10000 User Manual

Page 119

Advertising
background image

3-37

Cisco 10000 Series Router Software Configuration Guide

OL-2226-23

Chapter 3 Configuring Remote Access to MPLS VPN

Configuration Examples for RA to MPLS VPN

!Defines the virtual template and associates the common VRF with it.

interface Virtual-Template1

ip vrf forwarding common

ip unnumbered Loopback1

peer default ip address pool common

ppp authentication chap

!

!Configures OSPF to advertise the networks.

router ospf 100

log-adjacency-changes

auto-cost reference-bandwidth 1000

network 10.16.3.1 0.0.0.0 area 0

network 10.1.0.0 0.0.255.255 area 0

network 10.2.0.0 0.0.255.255 area 0

network 10.3.0.0 0.0.255.255 area 0

network 10.4.0.0 0.0.255.255 area 0

!

router rip

version 2

!

!Enters address family configuration mode to configure the VRF for PE to CE routing

!sessions.

address-family ipv4 vrf common

version 2

network 10.0.0.0

no auto-summary

exit-address-family

!

!Configures BGP to advertise the networks for the VPN.

router bgp 100

no synchronization

no bgp default ipv4-unicast

bgp log-neighbor-changes

neighbor 172.16.1.4 remote-as 100

neighbor 172.16.1.4 activate

!

!Enters address family configuration mode to configure the common VRF for PE to CE routing

!sessions.

address-family ipv4 vrf common

no auto-summary

no synchronization

aggregate-address 2.10.0.0 255.255.0.0 summary-only

exit-address-family

!

address-family vpnv4

neighbor 172.16.1.4 activate

neighbor 172.16.1.4 send-community both

exit-address-family

!

!Specifies the IP local pool to use for the VRF address assignment.

ip local pool common 2.10.1.1 2.10.126.0

ip classless

!Enters routing information in the routing table for the VRF.

ip route 20.0.0.0 255.0.0.0 FastEthernet0/0/0 20.9.0.1

ip route vrf common 10.22.0.0 255.255.0.0 Null0

ip route vrf common 10.30.0.0 255.255.0.0 2.1.1.1 3

ip route vrf common 10.32.0.0 255.255.0.0 2.2.151.1 2

ip route vrf common 10.33.0.0 255.255.0.0 2.3.101.1 2

no ip http server

ip pim bidir-enable

!

no cdp run

!

Advertising