39-13
Software Configuration Guide—Release IOS XE 3.3.0SG and IOS 15.1(1)SG
OL-25340-01
Chapter 39 Configuring VRF-lite
VRF-lite Configuration Example
Use the no router bgp autonomous-system-number global configuration command to delete the BGP
routing process. Use the command with keywords to delete routing characteristics.
VRF-lite Configuration Example
Figure 39-2 is a simplified example of the physical connections in a network similar to that in
Figure 39-1. OSPF is the protocol used in VPN1, VPN2, and the global network. BGP is used in the CE
to PE connections. The example commands show how to configure the CE switch S8 and include the
VRF configuration for switches S20 and S11 and the PE router commands related to traffic with switch
S8. Commands for configuring the other switches are not included but would be similar.
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.
Step 10
Switch# show ip bgp [ipv4] [neighbors]
Verifies BGP configuration.
Step 11
Switch# copy running-config
startup-config
(Optional) Saves your entries in the configuration file.
Command Purpose