Configuring A Vpn Routing Session - Cisco Catalyst 4500 Series Configuration Manual

Release ios xe 3.3.0sg and ios 15.1(1)sg
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Configuring a VPN Routing Session

Configuring a VPN Routing Session
Routing within the VPN can be configured with any supported routing protocol (RIP, OSPF, or BGP) or
with static routing. The configuration shown here is for OSPF, but the process is the same for other
protocols.
To configure OSPF in the VPN, perform this task:
Command
Step 1
Switch# configure terminal
Step 2
Switch(config)# router ospf
process-id vrf vrf-name
Step 3
Switch(config-router)#
log-adjacency-changes
Step 4
Switch(config-router)# redistribute
bgp autonomous-system-number subnets
Step 5
Switch(config-router)# network
network-number area area-id
Step 6
Switch(config-router)# end
Step 7
Switch# show ip ospf process-id
Step 8
Switch# copy running-config
startup-config
Use the no router ospf process-id vrf vrf-name global configuration command to disassociate the VPN
forwarding table from the OSPF routing process.
The following examples configure a single VRF named VRF-RED:
Switch(config)# ip vrf VRF-RED
Switch(config-vrf)# rd 1:1
Switch(config-vrf)# exit
Switch(config)# router eigrp virtual-name
Switch(config-router)# address-family ipv4 vrf VRF-RED autonomous-system 1
Switch(config-router-af)# network 10.0.0.0 0.0.0.255
Switch(config-router-af)# topology base
Switch(config-router-topology)# default-metric 10000 100 255 1 1500
Switch(config-router-topology)# exit-af-topology
Switch(config-router-af)# exit-address-family
Configuring BGP PE to CE Routing Sessions
To configure a BGP PE to CE routing session, perform this task:
Command
Step 1
Switch# configure terminal
Step 2
Switch(config)# router bgp
autonomous-system-number
Software Configuration Guide—Release IOS XE 3.3.0SG and IOS 15.1(1)SG
39-12
Purpose
Enters global configuration mode.
Enables OSPF routing, specifies a VPN forwarding table,
and enters router configuration mode.
(Optional) Logs changes in the adjacency state (the default
state).
Sets the switch to redistribute information from the BGP
network to the OSPF network.
Defines a network address and mask on which OSPF runs
and the area ID for that network address.
Returns to privileged EXEC mode.
Verifies the configuration of the OSPF network.
(Optional) Saves your entries in the configuration file.
Purpose
Enters global configuration mode.
Configures the BGP routing process with the AS number
passed to other BGP routers and enters router
configuration mode.
Chapter 39
Configuring VRF-lite
OL-25340-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents