38-85
Catalyst 3750 SwitchSoftware Configuration Guide
OL-8550-09
Chapter38 Configuring IP Unicast Routing
Configuring Multi-VRF CE
Configuring a VPN Routing Session
Routing within the VPN can be configured with any supported routing protocol (RIP, OSPF, EIGRP, or
BGP) or with static routing. The configuration shown here is for OSPF, but the process is the same for
other protocols.
Note To configure an EIGRP routing process to run within a VRF instance, you must configure an
autonomous-system number by entering the autonomous-system autonomous-system-number
address-family configuration mode command.
Beginning in privileged EXEC mode, follow these steps to configure OSPF in the VPN:
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
Beginning in privileged EXEC mode, follow these steps to configure a BGP PE to CE routing session:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 router ospf process-id vrf vrf-name Enable OSPF routing, specify a VPN forwarding table, and enter router
configuration mode.
Step3 log-adjacency-changes (Optional) Log changes in the adjacency state. This is the default state.
Step4 redistribute bgp
autonomous-system-number subnets
Set the switch to redistribute information from the BGP network to the
OSPF network.
Step5 network network-number area area-id Define a network address and mask on which OSPF runs and the area
ID for that network address.
Step6 end Return to privileged EXEC mode.
Step7 show ip ospf process-id Verify the configuration of the OSPF network.
Step8 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 router bgp autonomous-system-number Configure the BGP routing process with the AS number passed to other
BGP routers, and enter router configuration mode.
Step3 network network-number mask
network-mask
Specify a network and mask to announce using BGP.
Step4 redistribute ospf process-id match
internal
Set the switch to redistribute OSPF internal routes.
Step5 network network-number area area-id Define a network address and mask on which OSPF runs and the area
ID for that network address.