A SERVICE OF

logo

26-6
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter 26 Configuring VRF-lite
Configuring BGP PE to CE Routing Sessions
To configure OSPF in the VPN, perform this task:
Use the no router ospf process-id vrf vrf-name global configuration command to disassociate the VPN
forwarding table from the OSPF routing process.
Configuring BGP PE to CE Routing Sessions
To configure a BGP PE to CE routing session, perform this task:
Command Purpose
Step 1
Switch# configure terminal
Enters global configuration mode.
Step 2
Switch(config)# router ospf
process-id
vrf
vrf-name
Enables OSPF routing, specifies a VPN forwarding table,
and enters router configuration mode.
Step 3
Switch(config-router)#
log-adjacency-changes
(Optional) Logs changes in the adjacency state. This is the
default state.
Step 4
Switch(config-router)# redistribute
bgp
autonomous-system-number
subnets
Sets the switch to redistribute information from the BGP
network to the OSPF network.
Step 5
Switch(config-router)# network
network-number
area
area-id
Defines a network address and mask on which OSPF runs
and the area ID for that network address.
Step 6
Switch(config-router)# end
Returns to privileged EXEC mode.
Step 7
Switch# show ip ospf
process-id
Verifies the configuration of the OSPF network.
Step 8
Switch# copy running-config
startup-config
(Optional) Saves your entries in the configuration file.
Command Purpose
Step 1
Switch# configure terminal
Enters global configuration mode.
Step 2
Switch(config)# router bgp
autonomous-system-number
Configures the BGP routing process with the AS number
passed to other BGP routers and enters router
configuration mode.
Step 3
Switch(config-router)# network
network-number
mask
network-mask
Specifies a network and mask to announce using BGP.
Step 4
Switch(config-router)# redistribute
ospf
process-id
match internal
Sets the switch to redistribute OSPF internal routes.
Step 5
Switch(config-router)# network
network-number
area
area-id
Defines a network address and mask on which OSPF runs
and the area ID for that network address.
Step 6
Switch(config-router-af)#
address-family ipv4 vrf
vrf-name
Defines BGP parameters for PE to CE routing sessions and
enters VRF address-family mode.
Step 7
Switch(config-router-af)# neighbor
address
remote-as
as-number
Defines a BGP session between PE and CE routers.
Step 8
Switch(config-router-af)# neighbor
address
activate
Activates the advertisement of the IPv4 address family.
Step 9
Switch(config-router-af)# end
Returns to privileged EXEC mode.