39-14
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
Figure 39-2 VRF-lite Configuration Example
Configuring Switch S8
On switch S8, enable routing and configure VRF.
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# ip routing
Switch(config)# ip vrf v11
Switch(config-vrf)# rd 800:1
Switch(config-vrf)# route-target export 800:1
Switch(config-vrf)# route-target import 800:1
Switch(config-vrf)# exit
Switch(config)# ip vrf v12
Switch(config-vrf)# rd 800:2
Switch(config-vrf)# route-target export 800:2
Switch(config-vrf)# route-target import 800:2
Switch(config-vrf)# exit
Configure the loopback and physical interfaces on switch S8. Fast Ethernet interface 3/5 is a trunk
connection to the PE. Interfaces 3/7 and 3/11 connect to VPNs:
Switch(config)# interface loopback1
Switch(config-if)# ip vrf forwarding v11
Switch(config-if)# ip address 8.8.1.8 255.255.255.0
Switch(config-if)# exit
Switch(config)# interface loopback2
Switch(config-if)# ip vrf forwarding v12
Switch(config-if)# ip address 8.8.2.8 255.255.255.0
Catalyst 4500
Switch S8
Switch S20
VPN1
VPN2
CE
Global network
208.0.0.0
Fast
Ethernet
3/8
Fast
Ethernet
3/5
99722
Si
Router
PE
Catalyst 4500
Switch S9
CE
Si
Switch S10
108.0.0.0
Fast
Ethernet
3/7
Switch S11
118.0.0.0
Fast
Ethernet
3/11
Switch S16
168.0.0.0
Fast
Ethernet
3/3
VPN1
VPN2
Global network
Switch S13
Switch S14
Switch S15
CE = Customer edge device
PE = Provider edge router